[gnome-software] Remove the tags from the details page
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Remove the tags from the details page
- Date: Mon, 11 Jul 2016 14:39:27 +0000 (UTC)
commit e8711230b4fc2a697669a1c31e4b90da86171aa2
Author: Richard Hughes <richard hughsie com>
Date: Mon Jul 11 14:51:19 2016 +0100
Remove the tags from the details page
src/gs-shell-details.c | 20 -------------
src/gs-shell-details.ui | 72 -----------------------------------------------
2 files changed, 0 insertions(+), 92 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 8fb77b5..f7a5d66 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -107,10 +107,6 @@ struct _GsShellDetails
GtkWidget *label_details_version_value;
GtkWidget *label_failed;
GtkWidget *label_pending;
- GtkWidget *label_details_tag_nonfree;
- GtkWidget *label_details_tag_3rdparty;
- GtkWidget *label_details_tag_webapp;
- GtkWidget *label_details_tag_extension;
GtkWidget *label_details_info_text;
GtkWidget *label_license_nonfree_details;
GtkWidget *list_box_addons;
@@ -916,9 +912,7 @@ gs_shell_details_refresh_all (GsShellDetails *self)
/* set the tags buttons */
if (gs_app_get_kind (self->app) == AS_APP_KIND_WEB_APP) {
- gtk_widget_set_visible (self->label_details_tag_webapp, TRUE);
show_nonfree = FALSE;
- gtk_widget_set_visible (self->label_details_tag_3rdparty, FALSE);
gtk_widget_set_visible (self->label_details_info_text, TRUE);
gtk_label_set_label (GTK_LABEL (self->label_details_info_text),
/* TRANSLATORS: this is the warning box */
@@ -932,24 +926,19 @@ gs_shell_details_refresh_all (GsShellDetails *self)
is_3rd_party = !gs_app_has_quirk (self->app,
AS_APP_QUIRK_PROVENANCE);
- gtk_widget_set_visible (self->label_details_tag_webapp, FALSE);
-
if (!show_nonfree && is_3rd_party) {
- gtk_widget_set_visible (self->label_details_tag_3rdparty, TRUE);
gtk_widget_set_visible (self->label_details_info_text, TRUE);
gtk_label_set_label (GTK_LABEL (self->label_details_info_text),
/* TRANSLATORS: this is the warning box */
_("This software comes from a 3rd party."));
} else if (show_nonfree && is_3rd_party) {
show_nonfree = TRUE;
- gtk_widget_set_visible (self->label_details_tag_3rdparty, TRUE);
gtk_widget_set_visible (self->label_details_info_text, TRUE);
gtk_label_set_label (GTK_LABEL (self->label_details_info_text),
/* TRANSLATORS: this is the warning box */
_("This software comes from a 3rd party and may contain non-free
components."));
} else if (show_nonfree && !is_3rd_party) {
show_nonfree = TRUE;
- gtk_widget_set_visible (self->label_details_tag_3rdparty, FALSE);
gtk_widget_set_visible (self->label_details_info_text, TRUE);
gtk_label_set_label (GTK_LABEL (self->label_details_info_text),
/* TRANSLATORS: this is the warning box */
@@ -957,14 +946,9 @@ gs_shell_details_refresh_all (GsShellDetails *self)
} else {
/* free and not 3rd party */
show_nonfree = FALSE;
- gtk_widget_set_visible (self->label_details_tag_3rdparty, FALSE);
gtk_widget_set_visible (self->label_details_info_text, FALSE);
}
}
- gtk_widget_set_visible (self->label_details_tag_extension,
- gs_app_get_kind (self->app) == AS_APP_KIND_SHELL_EXTENSION);
-
- gtk_widget_set_visible (self->label_details_tag_nonfree, show_nonfree);
/* hide the kudo details for non-desktop software */
switch (gs_app_get_kind (self->app)) {
@@ -1998,10 +1982,6 @@ gs_shell_details_class_init (GsShellDetailsClass *klass)
gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_details_version_value);
gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_failed);
gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_pending);
- gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_details_tag_nonfree);
- gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_details_tag_3rdparty);
- gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_details_tag_webapp);
- gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_details_tag_extension);
gtk_widget_class_bind_template_child (widget_class, GsShellDetails, label_details_info_text);
gtk_widget_class_bind_template_child (widget_class, GsShellDetails, list_box_addons);
gtk_widget_class_bind_template_child (widget_class, GsShellDetails, box_reviews);
diff --git a/src/gs-shell-details.ui b/src/gs-shell-details.ui
index aaaf388..6f0ba1f 100644
--- a/src/gs-shell-details.ui
+++ b/src/gs-shell-details.ui
@@ -1052,78 +1052,6 @@
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
- <object class="GtkBox" id="box_details_info_tags">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">12</property>
- <child>
- <object class="GtkLabel" id="label_details_tag_nonfree">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">non-free</property>
- <style>
- <class name="app-row-tag"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label_details_tag_3rdparty">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">3rd party</property>
- <style>
- <class name="app-row-tag"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label_details_tag_webapp">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">web app</property>
- <style>
- <class name="app-row-tag"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label_details_tag_extension">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">shell extension</property>
- <style>
- <class name="app-row-tag"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">3</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
<object class="GtkBox" id="box_details_info2">
<property name="visible">True</property>
<property name="can_focus">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]