diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-09-28 16:49:17 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-09-28 16:49:17 +0100 |
commit | 0ae5a7b8cc51efa8238304e4cc231dbaa1258418 (patch) | |
tree | a3b51e46dd6d91c39f7bf3efb445121a40e81bf3 | |
parent | 255195617b86328ea273dcb615ad6f52318ed26f (diff) |
shell: Make search entry single-iconed
As per Jakub's request.
-rw-r--r-- | shell/gnome-control-center.c | 10 | ||||
-rw-r--r-- | shell/shell.ui | 5 |
2 files changed, 11 insertions, 4 deletions
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c index ce4e430ab..44deac431 100644 --- a/shell/gnome-control-center.c +++ b/shell/gnome-control-center.c @@ -483,12 +483,22 @@ search_entry_changed_cb (GtkEntry *entry, if (!g_strcmp0 (priv->filter_string, "")) { shell_show_overview_page (priv); + g_object_set (G_OBJECT (entry), + "secondary-icon-name", "gtk-find", + "secondary-icon-activatable", FALSE, + "secondary-icon-sensitive", FALSE, + NULL); } else { gtk_tree_model_filter_refilter (GTK_TREE_MODEL_FILTER (priv->search_filter)); gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook), SEARCH_PAGE); + g_object_set (G_OBJECT (entry), + "secondary-icon-name", "gtk-clear", + "secondary-icon-activatable", TRUE, + "secondary-icon-sensitive", TRUE, + NULL); } } diff --git a/shell/shell.ui b/shell/shell.ui index d4d3c6c4a..12e084439 100644 --- a/shell/shell.ui +++ b/shell/shell.ui @@ -46,10 +46,7 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="invisible_char">●</property> - <property name="primary_icon_stock">gtk-find</property> - <property name="secondary_icon_stock">gtk-clear</property> - <property name="secondary_icon_activatable">True</property> - <property name="secondary_icon_sensitive">True</property> + <property name="secondary_icon_stock">gtk-find</property> </object> </child> </object> |