From 9819c2ee11af87fe567a2438e072dfd08774bb3d Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 15 Mar 2018 22:35:37 +0100 Subject: Add fallback code that produces a warning (using zenity), if we don't know how to handle certain actions. --- src/service.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/service.c') 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 -- cgit v1.2.3