[gnome-control-center] search: special case gnome-control-center
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] search: special case gnome-control-center
- Date: Mon, 18 Feb 2013 15:51:26 +0000 (UTC)
commit 48553a06f331aca1ff92007b3bcd31cb912203ec
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Feb 18 16:37:48 2013 +0100
search: special case gnome-control-center
Settings search is special in the shell, because it's not configurable
and it is always at the top, so hide it from the search panel.
https://bugzilla.gnome.org/show_bug.cgi?id=694101
panels/search/cc-search-panel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/search/cc-search-panel.c b/panels/search/cc-search-panel.c
index 5a8dae4..fc010bb 100644
--- a/panels/search/cc-search-panel.c
+++ b/panels/search/cc-search-panel.c
@@ -343,6 +343,12 @@ search_panel_add_one_app_info (CcSearchPanel *self,
GtkWidget *box, *w;
GIcon *icon;
+ /* gnome-control-center is special cased in the shell,
+ and is not configurable */
+ if (g_strcmp0 (g_app_info_get_id (app_info),
+ "gnome-control-center.desktop") == 0)
+ return;
+
/* reset valignment of the list box */
gtk_widget_set_valign (self->priv->list_box, GTK_ALIGN_FILL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]