[Xfce4-commits] [panel-plugins/xfce4-mpc-plugin] 09/10: Remove horrible hack to reorder menu childs
noreply at xfce.org
noreply at xfce.org
Sun May 1 13:24:37 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-mpc-plugin.
commit df4e85e4cb08094c93089799a46f10ed5cf002bc
Author: Landry Breuil <landry at xfce.org>
Date: Sun May 1 13:23:56 2016 +0200
Remove horrible hack to reorder menu childs
---
panel-plugin/xfce4-mpc-plugin.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index f1b0c02..e13a015 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -362,7 +362,7 @@ mpc_output_toggled(GtkWidget *widget, t_mpc* mpc)
static void
mpc_update_outputs(t_mpc* mpc)
{
- GtkWidget* menu, *chkitem;
+ GtkWidget *chkitem;
int i,j=0, old_nb_outputs = mpc->nb_outputs;
MpdData * data = mpd_server_get_output_devices(mpc->mo);
DBG("!");
@@ -376,9 +376,6 @@ mpc_update_outputs(t_mpc* mpc)
chkitem = gtk_check_menu_item_new_with_label (data->output_dev->name);
g_signal_connect (G_OBJECT(chkitem), "toggled", G_CALLBACK (mpc_output_toggled), mpc);
xfce_panel_plugin_menu_insert_item(mpc->plugin,GTK_MENU_ITEM(chkitem));
- /* XXX HACK */
- menu = g_object_get_data (G_OBJECT (mpc->plugin), I_("xfce-panel-plugin-menu"));
- gtk_menu_reorder_child(GTK_MENU(menu),chkitem, 12 + i); /* 12 is after 'Outputs' menuitem */
gtk_widget_show (chkitem);
mpc->mpd_outputs[i] = g_new(t_mpd_output,1);
mpc->mpd_outputs[i]->id = data->output_dev->id;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list