[gnome-control-center/wip/jsparber/background: 8/11] background: change description for open in File and open in photo apps
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jsparber/background: 8/11] background: change description for open in File and open in photo apps
- Date: Sat, 17 Feb 2018 21:05:20 +0000 (UTC)
commit d326949cb09480b6cc45b712333c4d1043132cc8
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 d8ed1fa6a..64ed4a64f 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -564,8 +564,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]