[gimp/gtk3-port: 403/460] plug-ins: undeprecate script-fu-interface.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 403/460] plug-ins: undeprecate script-fu-interface.c
- Date: Sun, 20 May 2018 15:45:28 +0000 (UTC)
commit 97abb7f71878bc96ae25ea6b018117129a5b77c7
Author: Michael Natterer <mitch gimp org>
Date: Thu May 10 20:33:49 2018 +0200
plug-ins: undeprecate script-fu-interface.c
plug-ins/script-fu/script-fu-interface.c | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/script-fu/script-fu-interface.c b/plug-ins/script-fu/script-fu-interface.c
index 6fb4c8c..50088bb 100644
--- a/plug-ins/script-fu/script-fu-interface.c
+++ b/plug-ins/script-fu/script-fu-interface.c
@@ -62,6 +62,8 @@ typedef struct
gchar *last_command;
gint command_count;
gint consec_command_count;
+
+ gboolean running;
} SFInterface;
@@ -752,11 +754,7 @@ script_fu_response (GtkWidget *widget,
gint response_id,
SFScript *script)
{
- GtkWidget *action_area;
-
- action_area = gtk_dialog_get_action_area (GTK_DIALOG (sf_interface->dialog));
-
- if (! gtk_widget_is_sensitive (action_area))
+ if (sf_interface->running)
return;
switch (response_id)
@@ -766,8 +764,21 @@ script_fu_response (GtkWidget *widget,
break;
case GTK_RESPONSE_OK:
+ sf_interface->running = TRUE;
+
gtk_widget_set_sensitive (sf_interface->grid, FALSE);
- gtk_widget_set_sensitive (action_area, FALSE);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (sf_interface->dialog),
+ GTK_RESPONSE_HELP,
+ FALSE);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (sf_interface->dialog),
+ RESPONSE_RESET,
+ FALSE);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (sf_interface->dialog),
+ GTK_RESPONSE_CANCEL,
+ FALSE);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (sf_interface->dialog),
+ GTK_RESPONSE_OK,
+ FALSE);
script_fu_ok (script);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]