[Xfce4-commits] [apps/xfce4-screenshooter] 37/38: Correctly unblock menu after closing properties dialog
noreply at xfce.org
noreply at xfce.org
Fri Apr 28 03:07:33 CEST 2017
This is an automated email from the git hooks/post-receive script.
andre pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit c3aea8c0294c063d016fa5d2631940cd86a71d03
Author: Andre Miranda <andre42m at gmail.com>
Date: Tue Apr 18 22:39:21 2017 -0300
Correctly unblock menu after closing properties dialog
---
panel-plugin/screenshooter-plugin.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/screenshooter-plugin.c b/panel-plugin/screenshooter-plugin.c
index 8ebea72..837056a 100644
--- a/panel-plugin/screenshooter-plugin.c
+++ b/panel-plugin/screenshooter-plugin.c
@@ -252,16 +252,18 @@ screenshooter_plugin_write_rc_file (XfcePanelPlugin *plugin, PluginData *pd)
static void
cb_dialog_response (GtkWidget *dlg, int response, PluginData *pd)
{
+ g_object_set_data (G_OBJECT (pd->plugin), "dialog", NULL);
+ gtk_widget_destroy (dlg);
+
+ /* Unblock the menu */
+ xfce_panel_plugin_unblock_menu (pd->plugin);
+
if (response == GTK_RESPONSE_OK)
{
- g_object_set_data (G_OBJECT (pd->plugin), "dialog", NULL);
- gtk_widget_destroy (dlg);
-
/* Update tooltips according to the chosen option */
set_panel_button_tooltip (pd);
- /* Unblock the menu and save options */
- xfce_panel_plugin_unblock_menu (pd->plugin);
+ /* Save options */
screenshooter_plugin_write_rc_file (pd->plugin, pd);
}
else if (response == GTK_RESPONSE_HELP)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list