[gnome-screenshot] Fix file name field in dialog not having focus initially
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] Fix file name field in dialog not having focus initially
- Date: Fri, 5 Apr 2013 20:57:46 +0000 (UTC)
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]