[Goodies-commits] r6677 - ristretto/branches/ristretto-gio/src

Stephan Arts stephan at xfce.org
Fri Feb 13 00:11:48 CET 2009


Author: stephan
Date: 2009-02-12 23:11:48 +0000 (Thu, 12 Feb 2009)
New Revision: 6677

Modified:
   ristretto/branches/ristretto-gio/src/main_window.c
Log:
Add accel_path to play and pause actions



Modified: ristretto/branches/ristretto-gio/src/main_window.c
===================================================================
--- ristretto/branches/ristretto-gio/src/main_window.c	2009-02-12 22:56:39 UTC (rev 6676)
+++ ristretto/branches/ristretto-gio/src/main_window.c	2009-02-12 23:11:48 UTC (rev 6677)
@@ -281,6 +281,8 @@
 
     window->priv->play_action = gtk_action_new ("play", "_Play", "Play slideshow", GTK_STOCK_MEDIA_PLAY);
     window->priv->pause_action = gtk_action_new ("pause", "_Pause", "Pause slideshow", GTK_STOCK_MEDIA_PAUSE);
+    gtk_action_set_accel_path (window->priv->pause_action, "<Actions>/RsttoWindow/play");
+    gtk_action_set_accel_path (window->priv->play_action, "<Actions>/RsttoWindow/play");
     gtk_action_group_add_action (window->priv->action_group,
                                  window->priv->play_action);
     gtk_action_group_add_action (window->priv->action_group,
@@ -893,7 +895,6 @@
 static void
 cb_rstto_main_window_play (GtkWidget *widget, RsttoMainWindow *window)
 {
-    GtkAccelKey key;
     g_debug ("%s", __FUNCTION__);
     gtk_ui_manager_add_ui (window->priv->ui_manager,
                            window->priv->pause_merge_id,
@@ -916,8 +917,6 @@
 static void
 cb_rstto_main_window_pause (GtkWidget *widget, RsttoMainWindow *window)
 {
-    GtkAccelKey key;
-
     g_debug ("%s", __FUNCTION__);
     gtk_ui_manager_add_ui (window->priv->ui_manager,
                            window->priv->play_merge_id,




More information about the Goodies-commits mailing list