[gnome-screenshot] application: show interactive dialog when cancelling area selection
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] application: show interactive dialog when cancelling area selection
- Date: Wed, 23 Jan 2013 15:43:32 +0000 (UTC)
commit 050bea90b850d8164e66624b18b1b838bc7176dc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jan 23 10:41:54 2013 -0500
application: show interactive dialog when cancelling area selection
When in interactive mode, and the area selection is cancelled, show the
interactive dialog again instead of just quitting.
https://bugzilla.gnome.org/show_bug.cgi?id=692386
src/screenshot-application.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-application.c b/src/screenshot-application.c
index c3295d5..95aa284 100644
--- a/src/screenshot-application.c
+++ b/src/screenshot-application.c
@@ -457,10 +457,17 @@ rectangle_found_cb (GdkRectangle *rectangle,
ScreenshotApplication *self = user_data;
if (rectangle != NULL)
- finish_prepare_screenshot (self, rectangle);
+ {
+ finish_prepare_screenshot (self, rectangle);
+ }
else
- /* user dismissed the rectangle with Esc, no error; just quit */
- g_application_release (G_APPLICATION (self));
+ {
+ /* user dismissed the area selection, possibly show the dialog again */
+ g_application_release (G_APPLICATION (self));
+
+ if (screenshot_config->interactive)
+ screenshot_show_interactive_dialog (self);
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]