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



commit 131cc9cc4934818e2e9988a2d489abff0d836c15
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 d662caff4..107abc4d5 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -562,8 +562,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 d188dd449..c6aa837c2 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]