[gitg] Use headerbar in the preferences dialog



commit fd9d6c780e97e53bd11544555b9c15c499183f51
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Mon Apr 14 11:01:30 2014 +0300

    Use headerbar in the preferences dialog
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727068

 gitg/gitg-application.vala            |    4 ---
 gitg/resources/ui/gitg-preferences.ui |   35 +--------------------------------
 2 files changed, 1 insertions(+), 38 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index 99b061f..b9d351e 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -240,10 +240,6 @@ public class Application : Gtk.Application
                        d_preferences.destroy.connect((w) => {
                                d_preferences = null;
                        });
-
-                       d_preferences.response.connect((w, r) => {
-                               d_preferences.destroy();
-                       });
                }
 
                if (wnds != null)
diff --git a/gitg/resources/ui/gitg-preferences.ui b/gitg/resources/ui/gitg-preferences.ui
index 4bd6b55..ed765e9 100644
--- a/gitg/resources/ui/gitg-preferences.ui
+++ b/gitg/resources/ui/gitg-preferences.ui
@@ -7,43 +7,13 @@
     <property name="default_width">400</property>
     <property name="default_height">500</property>
     <property name="type_hint">dialog</property>
+    <property name="use_header_bar">1</property>
     <property name="title" translatable="yes">Preferences</property>
     <child internal-child="vbox">
       <object class="GtkBox" id="dialog-vbox1">
         <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>
-              <placeholder/>
-            </child>
-            <child>
-              <object class="GtkButton" id="button1">
-                <property name="label">gtk-close</property>
-                <property name="use_action_appearance">False</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
-                <property name="use_action_appearance">False</property>
-                <property name="use_stock">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="GtkNotebook" id="notebook_elements">
             <property name="visible">True</property>
@@ -59,8 +29,5 @@
         </child>
       </object>
     </child>
-    <action-widgets>
-      <action-widget response="-7">button1</action-widget>
-    </action-widgets>
   </object>
 </interface>


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