[gnome-control-center/wip/jsparber/background: 4/12] background: change description for open in File and open in photo apps



commit 419165781dec486ddbd698b9ad8f731dbadc8421
Author: Julian Sparber <julian sparber net>
Date:   Mon Feb 5 13:22:09 2018 +0100

    background: change description for open in File and open in photo apps
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788515

 panels/background/cc-background-panel.c |    5 ++++-
 panels/background/data/background.ui    |    4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 883e7b7..ea550e6 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -775,8 +775,11 @@ cc_background_panel_init (CcBackgroundPanel *panel)
 
   if (!is_gnome_photos_installed ()) {
     gtk_widget_hide (widget);
+    gtk_label_set_text (GTK_LABEL (WID ("description-label")), _("The background can also be set from 
Files"));
+  }
+  else {
+    gtk_label_set_text (GTK_LABEL (WID ("description-label")), _("The background can also be set from Photos 
or Files"));
   }
-
   widget = WID ("open-picture-folder");
   g_signal_connect (G_OBJECT (widget), "clicked",
                     G_CALLBACK (on_open_picture_folder), panel);
diff --git a/panels/background/data/background.ui b/panels/background/data/background.ui
index d188dd4..c6aa837 100644
--- a/panels/background/data/background.ui
+++ b/panels/background/data/background.ui
@@ -179,10 +179,10 @@
                             <property name="orientation">vertical</property>
                             <property name="spacing">16</property>
                             <child>
-                              <object class="GtkLabel">
+                              <object class="GtkLabel" id="description-label">
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
-                                <property name="label" translatable="yes">Photos or Files can be used to set 
any image as the background</property>
+                                <property name="label" translatable="yes"></property>
                               </object>
                               <packing>
                                 <property name="expand">False</property>


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