[gnome-software] Don't show search entry on installed list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't show search entry on installed list
- Date: Fri, 30 Aug 2013 17:18:08 +0000 (UTC)
commit 7fa25e91cd98aed03cc8d567dd3b718916d9a7d1
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 30 13:14:16 2013 -0400
Don't show search entry on installed list
It is more confusing than helpful, because it might also
filter the installed list.
src/gs-shell-installed.c | 4 ----
src/gs-shell.c | 2 +-
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index d516184..2226f17 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -349,10 +349,6 @@ gs_shell_installed_refresh (GsShellInstalled *shell_installed)
if (gs_shell_get_mode (priv->shell) == GS_SHELL_MODE_INSTALLED) {
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "buttonbox_main"));
gtk_widget_show (widget);
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "search_bar"));
- gtk_widget_show (widget);
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "entry_search"));
- gtk_entry_set_text (GTK_ENTRY (widget), "");
}
resort_list (shell_installed);
diff --git a/src/gs-shell.c b/src/gs-shell.c
index a4ae173..1125c1f 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -261,7 +261,7 @@ window_keypress_handler (GtkWidget *window, GdkEvent *event, GsShell *shell)
gchar *old_text, *new_text;
if (gs_shell_get_mode (shell) != GS_SHELL_MODE_OVERVIEW &&
- gs_shell_get_mode (shell) != GS_SHELL_MODE_INSTALLED)
+ gs_shell_get_mode (shell) != GS_SHELL_MODE_SEARCH)
return GDK_EVENT_PROPAGATE;
if (!gdk_event_get_keyval (event, &keyval) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]