[Xfce4-commits] <parole:master> Remove stop menu item from tray plugin.
Sean Davis
noreply at xfce.org
Thu Mar 7 00:42:01 CET 2013
Updating branch refs/heads/master
to a5a9c5636b41e1308e1bd4a78b1ec4bad700f817 (commit)
from 109aa9086543c2d25e8227a07fc52c3e76a9d7a1 (commit)
commit a5a9c5636b41e1308e1bd4a78b1ec4bad700f817
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Mar 6 18:39:59 2013 -0500
Remove stop menu item from tray plugin.
src/plugins/tray/tray-provider.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/plugins/tray/tray-provider.c b/src/plugins/tray/tray-provider.c
index 4d89d74..5c46305 100644
--- a/src/plugins/tray/tray-provider.c
+++ b/src/plugins/tray/tray-provider.c
@@ -92,13 +92,6 @@ play_pause_activated_cb (TrayProvider *tray)
parole_provider_player_pause (tray->player);
else if ( tray->state == PAROLE_STATE_PAUSED )
parole_provider_player_resume (tray->player);
-}
-
-static void
-stop_activated_cb (TrayProvider *tray)
-{
- menu_selection_done_cb (tray);
- parole_provider_player_stop (tray->player);
}
static void
@@ -126,15 +119,6 @@ popup_menu_cb (GtkStatusIcon *icon, guint button,
gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
/*
- * Stop
- */
- mi = gtk_image_menu_item_new_from_stock (GTK_STOCK_MEDIA_STOP, NULL);
- gtk_widget_set_sensitive (mi, tray->state >= PAROLE_STATE_PAUSED);
- gtk_widget_show (mi);
- g_signal_connect_swapped (mi, "activate", G_CALLBACK (stop_activated_cb), tray);
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
-
- /*
* Open
*/
mi = gtk_image_menu_item_new_from_stock (GTK_STOCK_OPEN, NULL);
More information about the Xfce4-commits
mailing list