[recipes/inline-editing] Grab focus to the first entry when editing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/inline-editing] Grab focus to the first entry when editing
- Date: Thu, 27 Apr 2017 03:05:52 +0000 (UTC)
commit b7f69f2eba6b95a6d89f3aeb15997a0e1bc2efa5
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]