[libhandy/tabs: 52/62] Focus in the demo




commit dd167e961a88a0e0c652989400b49026a6c39a8e
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Sep 11 16:13:45 2020 +0500

    Focus in the demo

 examples/hdy-tab-view-demo-window.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/examples/hdy-tab-view-demo-window.c b/examples/hdy-tab-view-demo-window.c
index e942d56a..46e724a1 100644
--- a/examples/hdy-tab-view-demo-window.c
+++ b/examples/hdy-tab-view-demo-window.c
@@ -98,6 +98,8 @@ tab_new (GSimpleAction *action,
 
   hdy_tab_view_set_selected_page (self->view, page);
 
+  gtk_widget_grab_focus (content);
+
   next_page++;
 }
 


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