[gnome-control-center] region: Use header bar in the input options dialog



commit be277759bb06e9c71e6bf8b7229bf2b4f3e0b45b
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 13 14:10:55 2015 +0100

    region: Use header bar in the input options dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757516

 panels/region/cc-input-options.c |    2 +-
 panels/region/input-options.ui   |   29 -----------------------------
 2 files changed, 1 insertions(+), 30 deletions(-)
---
diff --git a/panels/region/cc-input-options.c b/panels/region/cc-input-options.c
index a72ef63..38c4545 100644
--- a/panels/region/cc-input-options.c
+++ b/panels/region/cc-input-options.c
@@ -180,5 +180,5 @@ cc_input_options_class_init (CcInputOptionsClass *klass)
 GtkWidget *
 cc_input_options_new (GtkWidget *parent)
 {
-        return g_object_new (CC_TYPE_INPUT_OPTIONS, "transient-for", parent, NULL);
+        return g_object_new (CC_TYPE_INPUT_OPTIONS, "transient-for", parent, "use-header-bar", TRUE, NULL);
 }
diff --git a/panels/region/input-options.ui b/panels/region/input-options.ui
index ad5a144..875fa73 100644
--- a/panels/region/input-options.ui
+++ b/panels/region/input-options.ui
@@ -12,32 +12,6 @@
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <property name="spacing">2</property>
-        <child internal-child="action_area">
-          <object class="GtkButtonBox" id="dialog-action_area1">
-            <property name="can_focus">False</property>
-            <property name="layout_style">end</property>
-            <child>
-              <object class="GtkButton" id="ok-button">
-                <property name="label" translatable="yes">_Close</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="expand">False</property>
-                <property name="fill">True</property>
-                <property name="position">1</property>
-              </packing>
-            </child>
-          </object>
-          <packing>
-            <property name="expand">False</property>
-            <property name="fill">True</property>
-            <property name="pack_type">end</property>
-            <property name="position">0</property>
-          </packing>
-        </child>
         <child>
           <object class="GtkGrid" id="grid1">
             <property name="visible">True</property>
@@ -222,8 +196,5 @@
         </child>
       </object>
     </child>
-    <action-widgets>
-      <action-widget response="-5">ok-button</action-widget>
-    </action-widgets>
   </template>
 </interface>


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