summaryrefslogtreecommitdiff
path: root/plugins/shellexecui/shellexecui.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-27 20:46:56 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-06-27 20:46:56 +0200
commit0e25f2b3d4b2ce21a587703a08043d2b98a31d4d (patch)
treee6aab37c75355b09b270bbc874dc2b532cb48624 /plugins/shellexecui/shellexecui.c
parent4934931f6616d7e0c480ac7b5dedfeeaaa2a4fdc (diff)
shellexecui: disallow multiple shellexecui dialogs
Diffstat (limited to 'plugins/shellexecui/shellexecui.c')
-rw-r--r--plugins/shellexecui/shellexecui.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/shellexecui/shellexecui.c b/plugins/shellexecui/shellexecui.c
index 482cec2b..6b6744dd 100644
--- a/plugins/shellexecui/shellexecui.c
+++ b/plugins/shellexecui/shellexecui.c
@@ -345,9 +345,20 @@ init_treeview() {
g_object_unref(liststore);
}
+void
+on_shellexec_conf_dialog_destroy (GObject *object,
+ gpointer user_data)
+{
+ conf_dlg = NULL;
+}
+
+
static gboolean
shellexecui_action_gtk (void *data)
{
+ if (conf_dlg) {
+ return FALSE;
+ }
conf_dlg = create_shellexec_conf_dialog();
gtk_widget_set_size_request (conf_dlg, 400, 400);
gtk_window_set_transient_for(GTK_WINDOW(conf_dlg),