[gnome-software] Remove redundant "OK" button from the updates installed notification



commit d54f269b3b1837c800cb0e0f0ed39e5f633d67cb
Author: Kalev Lember <kalevlember gmail com>
Date:   Mon May 11 11:46:28 2015 +0200

    Remove redundant "OK" button from the updates installed notification
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747182

 src/gs-application.c    |   13 -------------
 src/gs-update-monitor.c |    1 -
 2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index ffa8503..de7ba3a 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -437,18 +437,6 @@ launch_activated (GSimpleAction *action,
 }
 
 static void
-clear_offline_updates (GSimpleAction *action,
-                      GVariant      *parameter,
-                      gpointer       data)
-{
-       _cleanup_error_free_ GError *error = NULL;
-       if (!pk_offline_clear_results (NULL, &error)) {
-               g_warning ("Failure clearing offline update message: %s",
-                          error->message);
-       }
-}
-
-static void
 show_offline_updates_error (GSimpleAction *action,
                            GVariant      *parameter,
                            gpointer       data)
@@ -496,7 +484,6 @@ static GActionEntry actions[] = {
        { "details", details_activated, "(ss)", NULL, NULL },
        { "filename", filename_activated, "(s)", NULL, NULL },
        { "launch", launch_activated, "s", NULL, NULL },
-       { "clear-offline-updates", clear_offline_updates, NULL, NULL, NULL },
        { "show-offline-update-error", show_offline_updates_error, NULL, NULL, NULL },
        { "install-resources", install_resources_activated, "(sass)", NULL, NULL },
        { "nop", NULL, NULL, NULL }
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index dfd037e..f318375 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -167,7 +167,6 @@ show_installed_updates_notification (GsUpdateMonitor *monitor)
                g_notification_add_button (notification, _("Show Details"), "app.show-offline-update-error");
                g_notification_set_default_action (notification, "app.show-offline-update-error");
        }
-       g_notification_add_button (notification, _("OK"), "app.clear-offline-updates");
 
        g_application_send_notification (monitor->application, "offline-updates", notification);
 }


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