[gnome-software/gnome-3-16] Remove redundant "OK" button from the updates installed notification
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-16] Remove redundant "OK" button from the updates installed notification
- Date: Mon, 11 May 2015 09:51:05 +0000 (UTC)
commit b1aa052a2417c71be23f87d8ee5d813ef158d99b
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]