From 8c6ccab6ec19507bf262892719f94e5c345f1ab6 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 26 Jan 2016 14:51:00 +0300 Subject: screenshot: properly disable effects and delay when launched with -ai fixes https://github.com/mate-desktop/mate-utils/issues/133 --- mate-screenshot/src/mate-screenshot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c index c7f88dbd..6515f565 100644 --- a/mate-screenshot/src/mate-screenshot.c +++ b/mate-screenshot/src/mate-screenshot.c @@ -326,6 +326,7 @@ create_effects_frame (GtkWidget *outer_vbox, #else main_vbox = gtk_vbox_new (FALSE, 6); #endif + gtk_widget_set_sensitive (main_vbox, !take_area_shot); gtk_box_pack_start (GTK_BOX (outer_vbox), main_vbox, FALSE, FALSE, 0); gtk_widget_show (main_vbox); effects_vbox = main_vbox; @@ -516,6 +517,7 @@ create_screenshot_frame (GtkWidget *outer_vbox, #else delay_hbox = gtk_hbox_new (FALSE, 6); #endif + gtk_widget_set_sensitive (delay_hbox, !take_area_shot); gtk_box_pack_start (GTK_BOX (vbox), delay_hbox, FALSE, FALSE, 0); gtk_widget_show (delay_hbox); -- cgit v1.2.1