aboutsummaryrefslogtreecommitdiff
path: root/src/notifier.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 14:34:44 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 18:33:03 +0100
commit422443fc5c653bfd68aad90a2556a62f1edf1333 (patch)
tree72c941cdab3684b982da1b6e4053aaf0623a2821 /src/notifier.c
parent4d9589837e532df1015f7579439703c0af0164ca (diff)
downloadayatana-indicator-power-422443fc5c653bfd68aad90a2556a62f1edf1333.tar.gz
ayatana-indicator-power-422443fc5c653bfd68aad90a2556a62f1edf1333.tar.bz2
ayatana-indicator-power-422443fc5c653bfd68aad90a2556a62f1edf1333.zip
Make URL dispatcher build-dependency optional and handle battery settings request appropriately.
Diffstat (limited to 'src/notifier.c')
-rw-r--r--src/notifier.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/notifier.c b/src/notifier.c
index f51032e..123ee6f 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -20,8 +20,7 @@
#include "dbus-battery.h"
#include "dbus-shared.h"
#include "notifier.h"
-
-#include <url-dispatcher.h>
+#include "utils.h"
#include <libnotify/notify.h>
@@ -172,7 +171,7 @@ 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);
+ utils_handle_settings_request();
}
static void