[gnome-calendar/gnome-3-22] quick-add-popover: focus entry after calendar selection



commit fa79031d0f106990fca9ea0b895949bd8a1360e9
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Feb 9 07:59:54 2017 +0530

    quick-add-popover: focus entry after calendar selection
    
    Pressing 'Enter' key shall always save the event.
    So focusing on 'Add' button after selecting calendar is redundant.
    
    Instead, focus on the entry, so that the user can add more text without
    manually focusing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778373

 src/gcal-quick-add-popover.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-quick-add-popover.c b/src/gcal-quick-add-popover.c
index f5a4af3..d5e5a40 100644
--- a/src/gcal-quick-add-popover.c
+++ b/src/gcal-quick-add-popover.c
@@ -202,8 +202,8 @@ select_row (GcalQuickAddPopover *self,
   /* Return to the events page */
   gtk_stack_set_visible_child_name (GTK_STACK (self->stack), "events");
 
-  /* Focus back the "Create" button */
-  gtk_widget_grab_focus (self->add_button);
+  /* Focus back the event Entry */
+  gtk_entry_grab_focus_without_selecting (GTK_ENTRY (self->summary_entry));
 
   g_clear_object (&circle_pixbuf);
 }


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