gnome-games r7211 - trunk/aisleriot



Author: chpe
Date: Sun Jan 13 22:08:59 2008
New Revision: 7211
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7211&view=rev

Log:
Add action tooltips (reusing existing strings) in the GtkActionEntry structs,
so they are set as tooltips for the toolitems too.


Modified:
   trunk/aisleriot/window.c

Modified: trunk/aisleriot/window.c
==============================================================================
--- trunk/aisleriot/window.c	(original)
+++ trunk/aisleriot/window.c	Sun Jan 13 22:08:59 2008
@@ -1947,9 +1947,10 @@
     /* Menu item actions */
     { "NewGame", GAMES_STOCK_NEW_GAME, NULL,
       ACTION_ACCEL ("<ctrl>N", NULL),
-      NULL,
+      ACTION_TOOLTIP (N_("Start a new game")),
       G_CALLBACK (new_game_cb) },
-    { "RestartGame", GAMES_STOCK_RESTART_GAME, NULL, NULL, NULL,
+    { "RestartGame", GAMES_STOCK_RESTART_GAME, NULL, NULL,
+       ACTION_TOOLTIP (N_("Restart the game")),
       G_CALLBACK (restart_game) },
     { "Select", GTK_STOCK_INDEX, N_("_Select Game..."),
       ACTION_ACCEL ("<ctrl>O", NULL),
@@ -1959,16 +1960,20 @@
     { "Statistics", GTK_STOCK_ADD, N_("S_tatistics"), NULL,
       ACTION_TOOLTIP (N_("Show gameplay statistics")),
       G_CALLBACK (statistics_cb) },
-    { "CloseWindow", GTK_STOCK_CLOSE, NULL, NULL, NULL,
+    { "CloseWindow", GTK_STOCK_CLOSE, NULL, NULL,
+      ACTION_TOOLTIP (N_("Close this window")),
       G_CALLBACK (close_window_cb) },
-    { "UndoMove", GAMES_STOCK_UNDO_MOVE, NULL, NULL, NULL,
+    { "UndoMove", GAMES_STOCK_UNDO_MOVE, NULL, NULL,
+      ACTION_TOOLTIP (N_("Undo the last move")),
       G_CALLBACK (undo_cb) },
-    { "RedoMove", GAMES_STOCK_REDO_MOVE, NULL, NULL, NULL,
+    { "RedoMove", GAMES_STOCK_REDO_MOVE, NULL, NULL,
+      ACTION_TOOLTIP (N_("Redo the undone move")),
       G_CALLBACK (redo_cb) },
     { "Deal", GTK_STOCK_OK /* FIXMEchpe */, _("_Deal"), "<control>D",
       ACTION_TOOLTIP (N_("Deal next card or cards")),
       G_CALLBACK (deal_cb) },
-    { "Hint", GAMES_STOCK_HINT, NULL, NULL, NULL,
+    { "Hint", GAMES_STOCK_HINT, NULL, NULL,
+      ACTION_TOOLTIP (N_("Get a hint for your next move")),
       G_CALLBACK (show_hint_cb) },
     { "Contents", GAMES_STOCK_CONTENTS, NULL, NULL,
       ACTION_TOOLTIP (N_("View help for Aisleriot")),
@@ -1977,7 +1982,8 @@
       ACTION_ACCEL ("<shift>F1", NULL),
       ACTION_TOOLTIP (N_("View help for this game")),
       G_CALLBACK (help_on_game_cb) },
-    { "About", GTK_STOCK_ABOUT, NULL, NULL, NULL,
+    { "About", GTK_STOCK_ABOUT, NULL, NULL,
+      ACTION_TOOLTIP (N_("About this game")),
       G_CALLBACK (help_about_cb) },
 
     /* Toolbar-only actions */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]