From 0a9cc2a474ff583c928e109468f20330aae0603c Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 12 Nov 2015 08:49:00 +0100 Subject: Drop unnecessary dependency on Ubuntu's url-dispatcher. --- src/notifier.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/notifier.c') diff --git a/src/notifier.c b/src/notifier.c index 5608662..8a799f4 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -21,8 +21,6 @@ #include "dbus-shared.h" #include "notifier.h" -#include - #include #include @@ -167,14 +165,6 @@ notification_clear (IndicatorPowerNotifier * self) } } -static void -on_battery_settings_clicked(NotifyNotification * nn G_GNUC_UNUSED, - char * action G_GNUC_UNUSED, - gpointer user_data G_GNUC_UNUSED) -{ - url_dispatch_send("settings:///system/battery", NULL, NULL); -} - static void on_dismiss_clicked(NotifyNotification * nn G_GNUC_UNUSED, char * action G_GNUC_UNUSED, @@ -250,7 +240,6 @@ notification_show(IndicatorPowerNotifier * self) notify_notification_set_hint(nn, "x-ayatana-snap-decisions-timeout", g_variant_new_int32(INT32_MAX)); notify_notification_set_timeout(nn, NOTIFY_EXPIRES_NEVER); notify_notification_add_action(nn, "dismiss", _("OK"), on_dismiss_clicked, NULL, NULL); - notify_notification_add_action(nn, "settings", _("Battery settings"), on_battery_settings_clicked, NULL, NULL); } /* if we can show it, keep it */ -- cgit v1.2.3