[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 04/04: Removed extra items from the plugin menu.
noreply at xfce.org
noreply at xfce.org
Wed Mar 4 03:40:03 CET 2015
This is an automated email from the git hooks/post-receive script.
andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-pulseaudio-plugin.
commit eb226f9212456b1144e2e9881eecb2fe453794b6
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Mar 4 02:39:50 2015 +0000
Removed extra items from the plugin menu.
---
panel-plugin/pulseaudio-plugin.c | 37 -------------------------------------
1 file changed, 37 deletions(-)
diff --git a/panel-plugin/pulseaudio-plugin.c b/panel-plugin/pulseaudio-plugin.c
index 6859732..409a379 100644
--- a/panel-plugin/pulseaudio-plugin.c
+++ b/panel-plugin/pulseaudio-plugin.c
@@ -315,35 +315,9 @@ pulseaudio_plugin_mute_pressed (const char *keystring,
static void
-pulseaudio_plugin_mixer_item_activate_cb (PulseaudioPlugin *pulseaudio_plugin,
- GtkMenuItem *menu_item)
-{
- const gchar *command;
- GError *error = NULL;
-
- g_return_if_fail (IS_PULSEAUDIO_PLUGIN (pulseaudio_plugin));
-
- command = pulseaudio_config_get_mixer_command (pulseaudio_plugin->config);
- if (!xfce_spawn_command_line_on_screen (gtk_widget_get_screen (GTK_WIDGET (menu_item)),
- command, FALSE, FALSE, &error))
- {
- xfce_dialog_show_error (NULL, error,
- _("Could not execute the command \"%s\". "
- "Ensure that either the location of the command "
- "is included in the PATH environment variable or "
- "that you are providing the full path to the "
- "command."), command);
- g_error_free (error);
- }
-}
-
-
-static void
pulseaudio_plugin_construct (XfcePanelPlugin *plugin)
{
PulseaudioPlugin *pulseaudio_plugin = PULSEAUDIO_PLUGIN (plugin);
- GtkWidget *mixer_menu_item;
- GtkWidget *separator;
#ifdef HAVE_IDO
ido_init();
@@ -377,17 +351,6 @@ pulseaudio_plugin_construct (XfcePanelPlugin *plugin)
/* volume controller */
pulseaudio_plugin->volume = pulseaudio_volume_new ();
- /* menu items */
- separator = gtk_separator_menu_item_new ();
- xfce_panel_plugin_menu_insert_item (plugin, GTK_MENU_ITEM (separator));
- gtk_widget_show (separator);
-
- mixer_menu_item = gtk_menu_item_new_with_mnemonic (_("Run Audio Mi_xer"));
- xfce_panel_plugin_menu_insert_item (plugin, GTK_MENU_ITEM (mixer_menu_item));
- g_signal_connect_swapped (G_OBJECT (mixer_menu_item), "activate",
- G_CALLBACK (pulseaudio_plugin_mixer_item_activate_cb), pulseaudio_plugin);
- gtk_widget_show (mixer_menu_item);
-
/* instantiate a button box */
pulseaudio_plugin->button = pulseaudio_button_new (pulseaudio_plugin,
pulseaudio_plugin->config,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list