[gnome-control-center] common: Add Cancel/OK buttons to the language chooser



commit cf0c9f6134061fadbbe503c6fdde01e693101511
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Jul 4 18:46:40 2014 +0200

    common: Add Cancel/OK buttons to the language chooser
    
    These were lost with the transition to headerbars.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732725

 panels/common/language-chooser.ui |   42 +++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/panels/common/language-chooser.ui b/panels/common/language-chooser.ui
index 6c5d769..9dfca24 100644
--- a/panels/common/language-chooser.ui
+++ b/panels/common/language-chooser.ui
@@ -7,6 +7,44 @@
     <property name="destroy_with_parent">True</property>
     <property name="resizable">False</property>
     <property name="use_header_bar">1</property>
+    <child internal-child="headerbar">
+      <object class="GtkHeaderBar" id="format-chooser-header-bar">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="show_close_button">False</property>
+        <child>
+          <object class="GtkButton" id="ok-button">
+            <property name="label" translatable="yes">_Done</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="use_underline">True</property>
+            <property name="valign">center</property>
+            <style>
+              <class name="text-button"/>
+            </style>
+          </object>
+          <packing>
+            <property name="pack_type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton" id="cancel-button">
+            <property name="label" translatable="yes">_Cancel</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="use_underline">True</property>
+            <property name="valign">center</property>
+            <style>
+              <class name="text-button"/>
+            </style>
+          </object>
+          <packing>
+            <property name="pack_type">start</property>
+          </packing>
+        </child>
+      </object>
+    </child>
     <child internal-child="vbox">
       <object class="GtkBox" id="language-vbox">
         <property name="visible">True</property>
@@ -50,5 +88,9 @@
         </child>
       </object>
     </child>
+    <action-widgets>
+      <action-widget response="-5">ok-button</action-widget>
+      <action-widget response="-6">cancel-button</action-widget>
+    </action-widgets>
   </object>
 </interface>


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