[gnome-screenshot] Fix file name field in dialog not having focus initially



commit 046f57ea426f911459a9e85b02476ce8a9e25663
Author: Robin Stocker <robin nibor org>
Date:   Fri Apr 5 20:55:47 2013 +0200

    Fix file name field in dialog not having focus initially
    
    This confuses users as the text is highlighted but after starting
    typing, nothing happens.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688061

 src/screenshot-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/screenshot-dialog.c b/src/screenshot-dialog.c
index d1edddb..a990fc6 100644
--- a/src/screenshot-dialog.c
+++ b/src/screenshot-dialog.c
@@ -215,6 +215,7 @@ screenshot_dialog_new (GdkPixbuf *screenshot,
   else
     pos = -1;
 
+  gtk_widget_grab_focus (dialog->filename_entry);
   gtk_editable_select_region (GTK_EDITABLE (dialog->filename_entry),
                              0,
                              pos);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]