[gnome-nibbles] Changed from using stock Media elements to just labels Pause/Resume Closes: bgo#704482



commit 675543b01712d882e72aa725031dd5ff7a5cbce6
Author: Bryan Quigley <bryanquigs src gnome org>
Date:   Sun Oct 20 00:23:15 2013 -0400

    Changed from using stock Media elements to just labels Pause/Resume
    Closes: bgo#704482

 src/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index adbb9f4..45170ef 100644
--- a/src/main.c
+++ b/src/main.c
@@ -307,7 +307,7 @@ pause_game_cb (GtkAction * action, gpointer data)
 {
   if (!is_paused) {  //If it's not currently paused, pause the game
     is_paused = TRUE;
-    
+    gtk_action_set_label (action, ("_Resume"));
     if (main_id || restart_id || dummy_id) {
       if (main_id) {
         g_source_remove (main_id);
@@ -325,6 +325,7 @@ pause_game_cb (GtkAction * action, gpointer data)
   }
   else {  //Resume the game
     is_paused = FALSE;
+    gtk_action_set_label (action, ("_Pause"));
     dummy_id = g_timeout_add (500, (GSourceFunc) new_game_2_cb, NULL);
   }
 }


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