Blame SOURCES/0001-network-Make-IPv4-v6-pages-drive-the-scrolledwindow-.patch

a780b2
From 0f7a591fa691bc826cee19ae01a6338145119aee Mon Sep 17 00:00:00 2001
a780b2
From: Carlos Garnacho <carlosg@gnome.org>
a780b2
Date: Thu, 12 Dec 2019 16:20:57 +0100
a780b2
Subject: [PATCH] network: Make IPv4/v6 pages drive the scrolledwindow
a780b2
 adjustments
a780b2
a780b2
Those 2 pages in the connection editor dialog are scrollable, but don't
a780b2
hook focus changes so they drive the adjustments. Make them do so.
a780b2
---
a780b2
 panels/network/connection-editor/ce-page-ip4.c | 3 +++
a780b2
 panels/network/connection-editor/ce-page-ip6.c | 3 +++
a780b2
 panels/network/connection-editor/ip4-page.ui   | 2 +-
a780b2
 panels/network/connection-editor/ip6-page.ui   | 2 +-
a780b2
 4 files changed, 8 insertions(+), 2 deletions(-)
a780b2
a780b2
diff --git a/panels/network/connection-editor/ce-page-ip4.c b/panels/network/connection-editor/ce-page-ip4.c
a780b2
index 400dc433d..d79e9a3dd 100644
a780b2
--- a/panels/network/connection-editor/ce-page-ip4.c
a780b2
+++ b/panels/network/connection-editor/ce-page-ip4.c
a780b2
@@ -515,6 +515,9 @@ connect_ip4_page (CEPageIP4 *page)
a780b2
         gboolean disabled;
a780b2
         guint method, i;
a780b2
 
a780b2
+        gtk_container_set_focus_vadjustment (GTK_CONTAINER (gtk_builder_get_object (CE_PAGE (page)->builder, "main_box")),
a780b2
+                                             gtk_scrolled_window_get_vadjustment (gtk_builder_get_object (CE_PAGE (page)->builder, "page")));
a780b2
+
a780b2
         add_address_section (page);
a780b2
         add_dns_section (page);
a780b2
         add_routes_section (page);
a780b2
diff --git a/panels/network/connection-editor/ce-page-ip6.c b/panels/network/connection-editor/ce-page-ip6.c
a780b2
index 995197504..f7105cc5b 100644
a780b2
--- a/panels/network/connection-editor/ce-page-ip6.c
a780b2
+++ b/panels/network/connection-editor/ce-page-ip6.c
a780b2
@@ -485,6 +485,9 @@ connect_ip6_page (CEPageIP6 *page)
a780b2
         gboolean disabled;
a780b2
         guint method, i;
a780b2
 
a780b2
+        gtk_container_set_focus_vadjustment (GTK_CONTAINER (gtk_builder_get_object (CE_PAGE (page)->builder, "main_box")),
a780b2
+                                             gtk_scrolled_window_get_vadjustment (gtk_builder_get_object (CE_PAGE (page)->builder, "page")));
a780b2
+
a780b2
         add_address_section (page);
a780b2
         add_dns_section (page);
a780b2
         add_routes_section (page);
a780b2
diff --git a/panels/network/connection-editor/ip4-page.ui b/panels/network/connection-editor/ip4-page.ui
a780b2
index fe5d407c9..597987d57 100644
a780b2
--- a/panels/network/connection-editor/ip4-page.ui
a780b2
+++ b/panels/network/connection-editor/ip4-page.ui
a780b2
@@ -10,7 +10,7 @@
a780b2
         <property name="visible">True</property>
a780b2
         <property name="can_focus">False</property>
a780b2
         <child>
a780b2
-          <object class="GtkGrid">
a780b2
+          <object class="GtkGrid" id="main_box">
a780b2
             <property name="visible">True</property>
a780b2
             <property name="can_focus">False</property>
a780b2
             <property name="margin_start">24</property>
a780b2
diff --git a/panels/network/connection-editor/ip6-page.ui b/panels/network/connection-editor/ip6-page.ui
a780b2
index 6d39bd0ec..5164b1004 100644
a780b2
--- a/panels/network/connection-editor/ip6-page.ui
a780b2
+++ b/panels/network/connection-editor/ip6-page.ui
a780b2
@@ -10,7 +10,7 @@
a780b2
         <property name="visible">True</property>
a780b2
         <property name="can_focus">False</property>
a780b2
         <child>
a780b2
-          <object class="GtkGrid">
a780b2
+          <object class="GtkGrid" id="main_box">
a780b2
             <property name="visible">True</property>
a780b2
             <property name="can_focus">False</property>
a780b2
             <property name="margin_start">24</property>
a780b2
-- 
a780b2
2.23.0
a780b2