[Xfce4-commits] <xfce4-screenshooter:master> Add default responses for the dialogs (bug #6880).

Jérôme Guelfucci noreply at xfce.org
Tue Dec 7 14:44:02 CET 2010


Updating branch refs/heads/master
         to 67995de822ffc2a1d58536e08f8a5f3952d5bdae (commit)
       from 0195996f78dad79726e6671ca4fb493a9f99d8b9 (commit)

commit 67995de822ffc2a1d58536e08f8a5f3952d5bdae
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sun Nov 28 21:33:29 2010 +0100

    Add default responses for the dialogs (bug #6880).

 lib/screenshooter-dialogs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index e90c9ed..8680118 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -703,6 +703,7 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
   gtk_window_set_resizable (GTK_WINDOW (dlg), FALSE);
   gtk_container_set_border_width (GTK_CONTAINER (dlg), 0);
   gtk_window_set_icon_name (GTK_WINDOW (dlg), "applets-screenshooter");
+  gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_OK);
 
   /* Create the main alignment for the dialog */
   main_alignment = gtk_alignment_new (0, 0, 1, 1);
@@ -894,6 +895,7 @@ GtkWidget *screenshooter_actions_dialog_new (ScreenshotData *sd)
   gtk_window_set_resizable (GTK_WINDOW (dlg), FALSE);
   gtk_container_set_border_width (GTK_CONTAINER (dlg), 0);
   gtk_window_set_icon_name (GTK_WINDOW (dlg), "applets-screenshooter");
+  gtk_dialog_set_default_response (GTK_DIALOG (dlg), GTK_RESPONSE_OK);
 
   /* Create the main alignment for the dialog */
   main_alignment = gtk_alignment_new (0, 0, 1, 1);



More information about the Xfce4-commits mailing list