[gnome-software] category page: Use the same labels on the sort button as within the list
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] category page: Use the same labels on the sort button as within the list
- Date: Mon, 19 Feb 2018 23:37:56 +0000 (UTC)
commit 2c572fe529b5645028347a578606a3cb06750eb1
Author: Kalev Lember <klember redhat com>
Date: Tue Feb 20 00:04:55 2018 +0100
category page: Use the same labels on the sort button as within the list
https://gitlab.gnome.org/GNOME/gnome-software/issues/303
src/gs-category-page.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-category-page.c b/src/gs-category-page.c
index 480e1c6a..1939d487 100644
--- a/src/gs-category-page.c
+++ b/src/gs-category-page.c
@@ -95,14 +95,12 @@ static void
gs_category_page_sort_by_type (GsCategoryPage *self,
SubcategorySortType sort_type)
{
- const gchar *button_label;
+ g_autofree gchar *button_label;
if (sort_type == SUBCATEGORY_SORT_TYPE_NAME)
- /* TRANSLATORS: button text when apps have been sorted alphabetically */
- button_label = _("Sorted by Name");
+ g_object_get (self->sort_name_button, "text", &button_label, NULL);
else
- /* TRANSLATORS: button text when apps have been sorted by their rating */
- button_label = _("Sorted by Rating");
+ g_object_get (self->sort_rating_button, "text", &button_label, NULL);
gtk_label_set_text (GTK_LABEL (self->subcats_sort_button_label), button_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]