aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-15 22:35:37 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-15 22:35:37 +0100
commit9819c2ee11af87fe567a2438e072dfd08774bb3d (patch)
treef1a2e8def4717f2e6fe0669e00141a1e0997da38 /src/service.c
parent32df70ed9a55a9ec66c1689a007df9714bee16f5 (diff)
downloadayatana-indicator-power-9819c2ee11af87fe567a2438e072dfd08774bb3d.tar.gz
ayatana-indicator-power-9819c2ee11af87fe567a2438e072dfd08774bb3d.tar.bz2
ayatana-indicator-power-9819c2ee11af87fe567a2438e072dfd08774bb3d.zip
Add fallback code that produces a warning (using zenity), if we don't know how to handle certain actions.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index c86df15..25806e4 100644
--- a/src/service.c
+++ b/src/service.c
@@ -819,6 +819,12 @@ on_statistics_activated (GSimpleAction * a G_GNUC_UNUSED,
execute_command (cmd);
g_free (cmd);
}
+ else
+ {
+ zenity_warning ("dialog-warning",
+ _("Warning"),
+ _("The Ayatana Power Indicator does not support evoking the\npower statistics application your desktop environment, yet.\n\nPlease report this to the developers at:\nhttps://github.com/ArcticaProject/ayatana-indicator-power/issues"));
+ }
}
static void