[gnome-software/gnome-3-22] Remove 'Sandboxed' from search results
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] Remove 'Sandboxed' from search results
- Date: Fri, 25 Nov 2016 18:02:54 +0000 (UTC)
commit 334cb0a9dd38b19112916910ddb558aa2b23861d
Author: Kalev Lember <klember redhat com>
Date: Fri Nov 25 18:52:00 2016 +0100
Remove 'Sandboxed' from search results
https://bugzilla.gnome.org/show_bug.cgi?id=770279
src/gs-app-row.c | 33 ---------------------------------
src/gs-app-row.ui | 48 ------------------------------------------------
src/gs-shell-search.c | 1 -
3 files changed, 0 insertions(+), 82 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 186b99b..94629ea 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -49,12 +49,9 @@ typedef struct
GtkWidget *label_warning;
GtkWidget *label_origin;
GtkWidget *label_installed;
- GtkWidget *box_sandboxed;
- GtkWidget *image_sandboxed;
gboolean colorful;
gboolean show_folders;
gboolean show_buttons;
- gboolean show_sandbox;
gboolean show_source;
gboolean show_codec;
gboolean show_update;
@@ -344,25 +341,6 @@ gs_app_row_refresh (GsAppRow *app_row)
gtk_widget_set_visible (priv->label_origin, FALSE);
}
- /* sandboxed */
- if (priv->show_sandbox) {
- if (gs_app_get_kudos (priv->app) & GS_APP_KUDO_SANDBOXED_SECURE) {
- gtk_widget_set_visible (priv->box_sandboxed, TRUE);
- gtk_image_set_from_icon_name (GTK_IMAGE (priv->image_sandboxed),
- "security-high-symbolic",
- GTK_ICON_SIZE_SMALL_TOOLBAR);
- } else if (gs_app_get_kudos (priv->app) & GS_APP_KUDO_SANDBOXED) {
- gtk_widget_set_visible (priv->box_sandboxed, TRUE);
- gtk_image_set_from_icon_name (GTK_IMAGE (priv->image_sandboxed),
- "security-medium-symbolic",
- GTK_ICON_SIZE_SMALL_TOOLBAR);
- } else {
- gtk_widget_set_visible (priv->box_sandboxed, FALSE);
- }
- } else {
- gtk_widget_set_visible (priv->box_sandboxed, FALSE);
- }
-
/* installed tag */
if (!priv->show_buttons) {
switch (gs_app_get_state (priv->app)) {
@@ -678,8 +656,6 @@ gs_app_row_class_init (GsAppRowClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, label_warning);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, label_origin);
gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, label_installed);
- gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, box_sandboxed);
- gtk_widget_class_bind_template_child_private (widget_class, GsAppRow, image_sandboxed);
}
static void
@@ -754,15 +730,6 @@ gs_app_row_set_show_buttons (GsAppRow *app_row, gboolean show_buttons)
}
void
-gs_app_row_set_show_sandbox (GsAppRow *app_row, gboolean show_sandbox)
-{
- GsAppRowPrivate *priv = gs_app_row_get_instance_private (app_row);
-
- priv->show_sandbox = show_sandbox;
- gs_app_row_refresh (app_row);
-}
-
-void
gs_app_row_set_show_source (GsAppRow *app_row, gboolean show_source)
{
GsAppRowPrivate *priv = gs_app_row_get_instance_private (app_row);
diff --git a/src/gs-app-row.ui b/src/gs-app-row.ui
index 5710308..ee72608 100644
--- a/src/gs-app-row.ui
+++ b/src/gs-app-row.ui
@@ -127,54 +127,6 @@
<property name="fill">False</property>
</packing>
</child>
- <child>
- <object class="GtkBox" id="box_sandboxed">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">horizontal</property>
- <property name="margin_top">6</property>
- <property name="spacing">3</property>
- <property name="halign">start</property>
- <property name="valign">start</property>
- <child>
- <object class="GtkImage" id="image_sandboxed">
- <property name="visible">True</property>
- <property name="pixel_size">16</property>
- <property name="valign">center</property>
- <property name="halign">start</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="label_sandboxed">
- <property name="label" translatable="yes" comments="security
sandbox">Sandboxed</property>
- <property name="visible">True</property>
- <property name="xalign">0.0</property>
- <property name="yalign">0.5</property>
- <property name="halign">start</property>
- <property name="ellipsize">end</property>
- <style>
- <class name="app-row-origin-text"/>
- <class name="dim-label"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
</object>
<packing>
<property name="fill">True</property>
diff --git a/src/gs-shell-search.c b/src/gs-shell-search.c
index 9edd794..3968f12 100644
--- a/src/gs-shell-search.c
+++ b/src/gs-shell-search.c
@@ -134,7 +134,6 @@ gs_shell_search_get_search_cb (GObject *source_object,
for (i = 0; i < gs_app_list_length (list); i++) {
app = gs_app_list_index (list, i);
app_row = gs_app_row_new (app);
- gs_app_row_set_show_sandbox (GS_APP_ROW (app_row), TRUE);
if (!gs_app_has_quirk (app, AS_APP_QUIRK_PROVENANCE) ||
gs_utils_list_has_app_fuzzy (list, app))
gs_app_row_set_show_source (GS_APP_ROW (app_row), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]