[gnome-control-center/wip/gbsneto/connection-editor: 8/8] network: Explicitly add a headerbar to the connection editor



commit ac0c03ecda64b39e7e01157dbffd6b57db2b575b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun May 21 16:36:45 2017 -0300

    network: Explicitly add a headerbar to the connection editor
    
    This headerbar widget will be used by the following patches in
    order to add a new "landing" page.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779841

 .../network/connection-editor/connection-editor.ui |   44 ++++++++++++-------
 1 files changed, 28 insertions(+), 16 deletions(-)
---
diff --git a/panels/network/connection-editor/connection-editor.ui 
b/panels/network/connection-editor/connection-editor.ui
index 4495c72..f421794 100644
--- a/panels/network/connection-editor/connection-editor.ui
+++ b/panels/network/connection-editor/connection-editor.ui
@@ -10,23 +10,35 @@
     <property name="default_height">300</property>
     <property name="type_hint">dialog</property>
     <property name="use_header_bar">1</property>
-    <child type="action">
-      <object class="GtkButton" id="details_cancel_button">
-        <property name="label" translatable="yes">_Cancel</property>
+    <child type="titlebar">
+      <object class="GtkHeaderBar" id="headerbar">
         <property name="visible">True</property>
-        <property name="can_focus">True</property>
-        <property name="receives_default">True</property>
-        <property name="use_underline">True</property>
-      </object>
-    </child>
-    <child type="action">
-      <object class="GtkButton" id="details_apply_button">
-        <property name="label" translatable="yes">_Apply</property>
-        <property name="visible">True</property>
-        <property name="can_focus">True</property>
-        <property name="can_default">True</property>
-        <property name="receives_default">True</property>
-        <property name="use_underline">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkButton" id="details_cancel_button">
+            <property name="label" translatable="yes">_Cancel</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="details_apply_button">
+            <property name="label" translatable="yes">_Apply</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="can_default">True</property>
+            <property name="receives_default">True</property>
+            <property name="use_underline">True</property>
+          </object>
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
       </object>
     </child>
     <child internal-child="vbox">


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