[gnome-software] Temporarily drop the --search-value commandline option



commit edd7bf9b4920d155644194ba8d06a1cd361f5ae7
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 17 22:29:08 2013 -0400

    Temporarily drop the --search-value commandline option
    
    Also drop the gs_shell_set_search_value() function that
    backs it. This functionality will come back later.

 src/gs-application.c |    9 ---------
 src/gs-shell.c       |   12 ------------
 src/gs-shell.h       |    2 --
 3 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 8ef3f1f..3a578c1 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -190,7 +190,6 @@ gs_application_command_line (GApplication        *application,
        GsApplication *app = GS_APPLICATION (application);
        GOptionContext *context;
        gchar *mode = NULL;
-       gchar *search_value = NULL;
        gboolean help = FALSE;
        gboolean verbose = FALSE;
        const GOptionEntry options[] = {
@@ -198,10 +197,6 @@ gs_application_command_line (GApplication       *application,
                  /* TRANSLATORS: this is a command line option, please don't
                   * translate the option names between ‘’ */
                  _("Start up mode: either ‘updates’, ‘updated’, ‘search’, ‘installed’ or ‘overview’"), 
_("MODE") },
-               { "search-value", '\0', 0, G_OPTION_ARG_STRING, &search_value,
-                 /* TRANSLATORS: this is a command line option, please don't
-                  * translate the option names between ‘’ */
-                 _("The search term to use when starting the UI"), _("SEARCH") },
                { "verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, NULL, NULL },
                { "help", '?', 0, G_OPTION_ARG_NONE, &help, NULL, NULL },
 
@@ -247,10 +242,6 @@ gs_application_command_line (GApplication       *application,
                        gs_shell_set_mode (app->shell, GS_SHELL_MODE_OVERVIEW);
                } else if (g_strcmp0 (mode, "updated") == 0) {
                        gs_shell_set_mode (app->shell, GS_SHELL_MODE_UPDATED);
-               } else if (g_strcmp0 (mode, "search") == 0) {
-                       if (search_value != NULL)
-                               gs_shell_set_search_value (app->shell, search_value);
-                       gs_shell_set_mode (app->shell, GS_SHELL_MODE_SEARCH);
                } else {
                        g_warning ("Mode '%s' not recognised", mode);
                }
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 2c4ea4e..e7deafb 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -555,18 +555,6 @@ gs_shell_set_mode (GsShell *shell, GsShellMode mode)
        gs_shell_change_mode (shell, mode, NULL, NULL, TRUE);
 }
 
-/**
- * gs_shell_set_search_value:
- **/
-void
-gs_shell_set_search_value (GsShell *shell, const gchar *search_value)
-{
-       GsShellPrivate *priv = shell->priv;
-       GtkWidget *widget;
-       widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "entry_search"));
-       gtk_entry_set_text (GTK_ENTRY (widget), search_value);
-}
-
 GsShellMode
 gs_shell_get_mode (GsShell *shell)
 {
diff --git a/src/gs-shell.h b/src/gs-shell.h
index a2beb7e..d56e1c7 100644
--- a/src/gs-shell.h
+++ b/src/gs-shell.h
@@ -72,8 +72,6 @@ void           gs_shell_refresh               (GsShell        *shell,
                                                 GCancellable   *cancellable);
 void            gs_shell_set_mode              (GsShell        *shell,
                                                 GsShellMode     mode);
-void            gs_shell_set_search_value      (GsShell        *shell,
-                                                const gchar    *search_value);
 GsShellMode     gs_shell_get_mode              (GsShell        *shell);
 void            gs_shell_show_app              (GsShell        *shell,
                                                 GsApp          *app);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]