[gnome-control-center] common: Update language chooser dialog title and buttons to match design



commit a2401d8f9a5f012d888191a41091e9689dfba2bb
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Aug 22 11:49:15 2018 +1200

    common: Update language chooser dialog title and buttons to match design
    
    Update to use "Select Language" and "Select" as per:
    https://wiki.gnome.org/Design/SystemSettings/RegionAndLanguage

 panels/common/cc-language-chooser.c  | 10 +++++-----
 panels/common/cc-language-chooser.ui |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/panels/common/cc-language-chooser.c b/panels/common/cc-language-chooser.c
index 445952a51..1e23a07f8 100644
--- a/panels/common/cc-language-chooser.c
+++ b/panels/common/cc-language-chooser.c
@@ -39,7 +39,7 @@
 struct _CcLanguageChooser {
         GtkDialog parent_instance;
 
-        GtkWidget *done_button;
+        GtkWidget *select_button;
         GtkWidget *no_results;
         GtkListBoxRow *more_item;
         GtkWidget *search_bar;
@@ -295,7 +295,7 @@ set_locale_id (CcLanguageChooser *chooser,
         g_autoptr(GList) children = NULL;
         GList *l;
 
-        gtk_widget_set_sensitive (chooser->done_button, FALSE);
+        gtk_widget_set_sensitive (chooser->select_button, FALSE);
 
         children = gtk_container_get_children (GTK_CONTAINER (chooser->language_listbox));
         for (l = children; l; l = l->next) {
@@ -309,7 +309,7 @@ set_locale_id (CcLanguageChooser *chooser,
                         gboolean is_extra;
 
                         gtk_widget_set_opacity (check, 1.0);
-                        gtk_widget_set_sensitive (chooser->done_button, TRUE);
+                        gtk_widget_set_sensitive (chooser->select_button, TRUE);
 
                         /* make sure the selected language is shown */
                         is_extra = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (row), "is-extra"));
@@ -344,7 +344,7 @@ row_activated (GtkListBox        *box,
         if (g_strcmp0 (new_locale_id, chooser->language) == 0) {
                 gtk_dialog_response (GTK_DIALOG (chooser),
                                      gtk_dialog_get_response_for_widget (GTK_DIALOG (chooser),
-                                                                         chooser->done_button));
+                                                                         chooser->select_button));
         } else {
                 set_locale_id (chooser, new_locale_id);
         }
@@ -425,7 +425,7 @@ cc_language_chooser_class_init (CcLanguageChooserClass *klass)
 
         gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/control-center/common/cc-language-chooser.ui");
 
-        gtk_widget_class_bind_template_child (widget_class, CcLanguageChooser, done_button);
+        gtk_widget_class_bind_template_child (widget_class, CcLanguageChooser, select_button);
         gtk_widget_class_bind_template_child (widget_class, CcLanguageChooser, search_bar);
         gtk_widget_class_bind_template_child (widget_class, CcLanguageChooser, language_filter_entry);
         gtk_widget_class_bind_template_child (widget_class, CcLanguageChooser, language_listbox);
diff --git a/panels/common/cc-language-chooser.ui b/panels/common/cc-language-chooser.ui
index b9e735419..5fa52d1dc 100644
--- a/panels/common/cc-language-chooser.ui
+++ b/panels/common/cc-language-chooser.ui
@@ -2,13 +2,13 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
   <template class="CcLanguageChooser" parent="GtkDialog">
-    <property name="title" translatable="yes">Language</property>
+    <property name="title" translatable="yes">Select Language</property>
     <property name="modal">True</property>
     <property name="destroy_with_parent">True</property>
     <property name="default_height">350</property>
     <child type="action">
-      <object class="GtkButton" id="done_button">
-        <property name="label" translatable="yes">_Done</property>
+      <object class="GtkButton" id="select_button">
+        <property name="label" translatable="yes">_Select</property>
         <property name="visible">True</property>
         <property name="sensitive">False</property>
         <property name="can_focus">True</property>
@@ -66,7 +66,7 @@
       </object>
     </child>
     <action-widgets>
-      <action-widget response="-5" default="true">done_button</action-widget>
+      <action-widget response="-5" default="true">select_button</action-widget>
       <action-widget response="-6">cancel_button</action-widget>
     </action-widgets>
   </template>


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