[Xfce4-commits] r29169 - xfce4-mixer/branches/xfce_4_4/panel-plugin

Danny Milosavljevic dannym at xfce.org
Sun Jan 11 18:59:09 CET 2009


Author: dannym
Date: 2009-01-11 17:59:09 +0000 (Sun, 11 Jan 2009)
New Revision: 29169

Modified:
   xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c
Log:
fix bug# 3651 (block panel menu), thanks, Mike.

Modified: xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c
===================================================================
--- xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c	2009-01-11 17:15:12 UTC (rev 29168)
+++ xfce4-mixer/branches/xfce_4_4/panel-plugin/plugin.c	2009-01-11 17:59:09 UTC (rev 29169)
@@ -127,6 +127,8 @@
 {
     t_mixer *mixer = (t_mixer *) user_data;
 
+    xfce_panel_plugin_unblock_menu (mixer->temp_plugin);
+
     xfce_mixer_prefbox_save_preferences (mixer->prefbox, mixer->prefs);
  
     mixer_write_config(mixer->temp_plugin, mixer);
@@ -149,11 +151,13 @@
 
     mixer = (t_mixer *) user_data;
     
+    xfce_panel_plugin_block_menu (plugin);
+
     /* TODO TRANSLATE TITLE OR SOMETHING */
 
     dialog = GTK_DIALOG (
              gtk_dialog_new_with_buttons (xfce_panel_plugin_get_name (plugin), 
-                                          GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(plugin))), 
+                                          NULL, 
                                           GTK_DIALOG_DESTROY_WITH_PARENT,
                                           GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, 
                                           NULL));




More information about the Xfce4-commits mailing list