Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10599) Place the cursor at the end during inputline hi
Home

[Freeciv-Dev] (PR#10599) Place the cursor at the end during inputline hi

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10599) Place the cursor at the end during inputline history traversing
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Mon, 18 Oct 2004 17:02:56 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10599 >

Requested by Per.

Index: client/gui-gtk-2.0/gui_main.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/gui_main.c,v
retrieving revision 1.83
diff -u -r1.83 gui_main.c
--- client/gui-gtk-2.0/gui_main.c       18 Oct 2004 23:49:27 -0000      1.83
+++ client/gui-gtk-2.0/gui_main.c       19 Oct 2004 00:00:52 -0000
@@ -286,8 +286,10 @@
     }
   }
 
-  if (data)
+  if (data) {
     gtk_entry_set_text(GTK_ENTRY(w), data);
+    gtk_editable_set_position(GTK_EDITABLE(w), -1);
+  }
   return keypress;
 }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10599) Place the cursor at the end during inputline history traversing, Vasco Alexandre da Silva Costa <=