diff options
author | monsta <[email protected]> | 2016-01-26 14:51:00 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-26 14:51:00 +0300 |
commit | 8c6ccab6ec19507bf262892719f94e5c345f1ab6 (patch) | |
tree | 877548a1d2d7b6a718bdc3c812e818c75d19f010 /mate-screenshot/src/mate-screenshot.c | |
parent | 05ccd83502c546c7878d38435b91c13b62b6201c (diff) | |
download | mate-utils-8c6ccab6ec19507bf262892719f94e5c345f1ab6.tar.bz2 mate-utils-8c6ccab6ec19507bf262892719f94e5c345f1ab6.tar.xz |
screenshot: properly disable effects and delay when launched with -ai
fixes https://github.com/mate-desktop/mate-utils/issues/133
Diffstat (limited to 'mate-screenshot/src/mate-screenshot.c')
-rw-r--r-- | mate-screenshot/src/mate-screenshot.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |