[Xfce4-commits] <xfce4-panel:devel> * Only send the save signal when the plugin menu is not blocked.

Nick Schermer nick at xfce.org
Tue Aug 11 20:24:45 CEST 2009


Updating branch refs/heads/devel
         to 1bb25f2d3af9a7f2a0467c49906b4a11ddef0c95 (commit)
       from 557effe985654248d26ded3f9bdd336a604e1657 (commit)

commit 1bb25f2d3af9a7f2a0467c49906b4a11ddef0c95
Author: Nick Schermer <nick at xfce.org>
Date:   Fri Oct 10 21:22:04 2008 +0200

    * Only send the save signal when the plugin menu is not blocked.

 libxfce4panel/xfce-panel-plugin.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index 6251a3e..9727251 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -882,8 +882,9 @@ xfce_panel_plugin_save (XfcePanelPluginProvider *provider)
 {
   panel_return_if_fail (XFCE_IS_PANEL_PLUGIN (provider));
 
-  /* emit signal */
-  g_signal_emit (G_OBJECT (provider), plugin_signals[SAVE], 0);
+  /* only send the save signal if the plugin is not locked */
+  if (XFCE_PANEL_PLUGIN (provider)->priv->menu_blocked == 0)
+    g_signal_emit (G_OBJECT (provider), plugin_signals[SAVE], 0);
 }
 
 



More information about the Xfce4-commits mailing list