Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11332) request: reinstate return for "turn done"
Home

[Freeciv-Dev] (PR#11332) request: reinstate return for "turn done"

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx, teroajk@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11332) request: reinstate return for "turn done"
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Wed, 15 Dec 2004 09:17:41 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11332 >

> [jdorje - Wed Dec 15 08:36:11 2004]:
> 
> There's already a patch to add a tooltip to the turn-done button. 
> Should we use this or can something better be written?

Here's Chris's patch with the helpdata.txt changes removed and a minor
tweak.


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.81.2.13
diff -u -r1.81.2.13 gui_main.c
--- client/gui-gtk-2.0/gui_main.c       3 Dec 2004 20:27:05 -0000       
1.81.2.13
+++ client/gui-gtk-2.0/gui_main.c       15 Dec 2004 17:15:07 -0000
@@ -644,6 +644,7 @@
   GtkWidget *frame, *table, *table2, *paned, *sw, *text;
   GtkStyle *style;
   int i;
+  char buf[256];
   struct Sprite *sprite;
 
   GtkWidget *notebook, *statusbar;
@@ -847,7 +848,10 @@
 
   g_signal_connect(turn_done_button, "clicked",
                    G_CALLBACK(end_turn_callback), NULL);
- 
+
+  my_snprintf(buf, sizeof(buf), "%s:\n%s", _("Turn Done"), _("Shift+Return"));
+  gtk_tooltips_set_tip(main_tips, turn_done_button, buf, "");
+
   /* Selected unit status */
 
   unit_info_frame = gtk_frame_new("");

[Prev in Thread] Current Thread [Next in Thread]