[recipes] Grab focus to the first entry when editing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Grab focus to the first entry when editing
- Date: Fri, 28 Apr 2017 01:48:39 +0000 (UTC)
commit 56e4f05995246e48993d369eadc51b6a93c1949c
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 26 23:04:02 2017 -0400
Grab focus to the first entry when editing
This makes sense, since we want to interact with the entries.
src/gr-ingredients-viewer-row.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gr-ingredients-viewer-row.c b/src/gr-ingredients-viewer-row.c
index 8fede04..9d3f690 100644
--- a/src/gr-ingredients-viewer-row.c
+++ b/src/gr-ingredients-viewer-row.c
@@ -269,6 +269,7 @@ edit_ingredient (GrIngredientsViewerRow *row)
gtk_stack_set_visible_child_name (GTK_STACK (row->unit_stack), "unit_entry");
gtk_stack_set_visible_child_name (GTK_STACK (row->ingredient_stack), "ingredient_entry");
+ gtk_widget_grab_focus (row->unit_entry);
g_signal_emit (row, signals[EDIT], 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]