[gnome-packagekit] Do not show a 'Check now' button in the prefs



commit 689e0f71e8992423ab5f001c57b48616edb19e86
Author: Richard Hughes <richard hughsie com>
Date:   Tue Oct 8 14:40:21 2013 +0100

    Do not show a 'Check now' button in the prefs

 data/gpk-prefs.ui |   16 ----------------
 src/gpk-prefs.c   |   22 ----------------------
 2 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/data/gpk-prefs.ui b/data/gpk-prefs.ui
index c83f63b..7114d9c 100644
--- a/data/gpk-prefs.ui
+++ b/data/gpk-prefs.ui
@@ -36,21 +36,6 @@
               </packing>
             </child>
             <child>
-              <object class="GtkButton" id="button_check_now">
-                <property name="label" translatable="yes">_Check Now</property>
-                <property name="use_action_appearance">False</property>
-                <property name="visible">True</property>
-                <property name="can_focus">True</property>
-                <property name="receives_default">True</property>
-                <property name="use_underline">True</property>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="fill">False</property>
-                <property name="position">1</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkButton" id="button_close">
                 <property name="label">gtk-close</property>
                 <property name="use_action_appearance">False</property>
@@ -411,7 +396,6 @@
     </child>
     <action-widgets>
       <action-widget response="0">button_help</action-widget>
-      <action-widget response="0">button_check_now</action-widget>
       <action-widget response="0">button_close</action-widget>
     </action-widgets>
   </object>
diff --git a/src/gpk-prefs.c b/src/gpk-prefs.c
index 8c11e01..27db239 100644
--- a/src/gpk-prefs.c
+++ b/src/gpk-prefs.c
@@ -89,25 +89,6 @@ gpk_prefs_help_cb (GtkWidget *widget, GpkPrefsPrivate *priv)
 }
 
 /**
- * gpk_prefs_check_now_cb:
- **/
-static void
-gpk_prefs_check_now_cb (GtkWidget *widget, GpkPrefsPrivate *priv)
-{
-       gboolean ret;
-       GError *error = NULL;
-       gchar *command;
-
-       command = g_build_filename (BINDIR, "gpk-update-viewer", NULL);
-       ret = g_spawn_command_line_async (command, &error);
-       if (!ret) {
-               g_warning ("Couldn't execute %s: %s", command, error->message);
-               g_error_free (error);
-       }
-       g_free (command);
-}
-
-/**
  * gpk_prefs_update_freq_combo_changed:
  **/
 static void
@@ -827,9 +808,6 @@ gpk_pack_startup_cb (GtkApplication *application, GpkPrefsPrivate *priv)
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_help"));
        g_signal_connect (widget, "clicked",
                          G_CALLBACK (gpk_prefs_help_cb), priv);
-       widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_check_now"));
-       g_signal_connect (widget, "clicked",
-                         G_CALLBACK (gpk_prefs_check_now_cb), priv);
 
        /* update the combo boxes */
        if (priv->settings_gsd != NULL) {


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