[network-manager-applet/lr/mobile-wizard-fixes: 7/8] nma/mobile-wizard: fix the title on the country page



commit 9d6ac4f36ce15ddec873016402e26465d1fe7546
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Mar 15 16:52:11 2019 +0100

    nma/mobile-wizard: fix the title on the country page
    
    The label is confusing and the tree view header is redundant. Fix the
    label and remove the header.

 src/libnma/nma-mobile-wizard.c  | 2 +-
 src/libnma/nma-mobile-wizard.ui | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libnma/nma-mobile-wizard.c b/src/libnma/nma-mobile-wizard.c
index 4d47209b..9715c56e 100644
--- a/src/libnma/nma-mobile-wizard.c
+++ b/src/libnma/nma-mobile-wizard.c
@@ -930,7 +930,7 @@ country_setup (NMAMobileWizard *self)
                                         NULL);
 
        renderer = gtk_cell_renderer_text_new ();
-       column = gtk_tree_view_column_new_with_attributes (_("Country or region"),
+       column = gtk_tree_view_column_new_with_attributes (NULL,
                                                           renderer,
                                                           "text", COUNTRIES_COL_NAME,
                                                           NULL);
diff --git a/src/libnma/nma-mobile-wizard.ui b/src/libnma/nma-mobile-wizard.ui
index 5e5f2a62..749c7acf 100644
--- a/src/libnma/nma-mobile-wizard.ui
+++ b/src/libnma/nma-mobile-wizard.ui
@@ -186,7 +186,7 @@
           <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="label" translatable="yes">Country or Region List:</property>
+            <property name="label" translatable="yes">Country or region:</property>
             <property name="xalign">0</property>
           </object>
           <packing>
@@ -209,6 +209,7 @@
                 <property name="hexpand">True</property>
                 <property name="vexpand">True</property>
                 <property name="model">country_sort</property>
+                <property name="headers_visible">False</property>
                 <property name="search_column">0</property>
                 <signal name="row-activated" handler="country_update_continue" swapped="yes"/>
                 <child internal-child="selection">


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