[gnome-software] origin popover row: Change label for branch field to "Channel" for snaps.
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] origin popover row: Change label for branch field to "Channel" for snaps.
- Date: Wed, 2 Oct 2019 14:10:04 +0000 (UTC)
commit 4f067900bb3301af1dcb41e547f646ac17347247
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Aug 29 07:39:49 2019 +0300
origin popover row: Change label for branch field to "Channel" for snaps.
Channel is the terminology used with Snaps.
src/gs-origin-popover-row.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/gs-origin-popover-row.c b/src/gs-origin-popover-row.c
index 0e02d742..66aa4deb 100644
--- a/src/gs-origin-popover-row.c
+++ b/src/gs-origin-popover-row.c
@@ -93,6 +93,16 @@ refresh_ui (GsOriginPopoverRow *row)
} else {
gtk_widget_hide (priv->branch_box);
}
+
+ if (gs_app_get_bundle_kind (priv->app) == AS_BUNDLE_KIND_SNAP) {
+ /* TRANSLATORS: the title for Snap channels */
+ gtk_label_set_text (GTK_LABEL (priv->branch_title), _("Channel"));
+ gtk_label_set_text (GTK_LABEL (priv->version_label), gs_app_get_version (priv->app));
+ gtk_widget_show (priv->version_box);
+ } else {
+ /* TRANSLATORS: the title for Flatpak branches */
+ gtk_label_set_text (GTK_LABEL (priv->branch_title), _("Branch"));
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]