[quadrapassel] Add tooltips to the pause/play button



commit e9b80e01b6b24a47a6f73942ca9ea70cecef292d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Feb 16 11:27:56 2014 -0600

    Add tooltips to the pause/play button

 src/quadrapassel.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/quadrapassel.vala b/src/quadrapassel.vala
index 74c98fa..6965dd6 100644
--- a/src/quadrapassel.vala
+++ b/src/quadrapassel.vala
@@ -140,6 +140,7 @@ public class Quadrapassel : Gtk.Application
                                                                 Gtk.IconSize.DIALOG);
         pause_play_button.add (pause_play_button_image);
         pause_play_button.action_name = "app.new-game";
+        pause_play_button.tooltip_text = _("Start a new game");
         pause_play_button.valign = Gtk.Align.CENTER;
         pause_play_button.halign = Gtk.Align.CENTER;
         pause_play_button.relief = Gtk.ReliefStyle.NONE;
@@ -661,10 +662,12 @@ public class Quadrapassel : Gtk.Application
             pause_play_button_image.set_from_icon_name (rtl ? "media-playback-start-rtl-symbolic" :
                                                               "media-playback-start-symbolic",
                                                         Gtk.IconSize.DIALOG);
+            pause_play_button.tooltip_text = _("Unpause the game");
         }
         else
         {
             pause_play_button_image.set_from_icon_name ("media-playback-pause-symbolic", 
Gtk.IconSize.DIALOG);
+            pause_play_button.tooltip_text = _("Pause the game");
         }
     }
 
@@ -678,6 +681,7 @@ public class Quadrapassel : Gtk.Application
         pause_action.set_enabled (false);
         pause_play_button_image.set_from_icon_name ( "view-refresh-symbolic" , Gtk.IconSize.DIALOG);
         pause_play_button.action_name = "app.new-game";
+        pause_play_button.tooltip_text = _("Start a new game");
 
         if (game.score > 0)
         {


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