aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-09-08 16:14:45 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-09-08 16:14:45 -0500
commit0c312c160b796c6c724c26e8a1063843c23b9ba3 (patch)
treec2e81c0f6dacae243edad5d57284958c83fadc11
parentb2d6637b66e5293d67dc34d75b50dea3baf6db07 (diff)
downloadayatana-indicator-power-0c312c160b796c6c724c26e8a1063843c23b9ba3.tar.gz
ayatana-indicator-power-0c312c160b796c6c724c26e8a1063843c23b9ba3.tar.bz2
ayatana-indicator-power-0c312c160b796c6c724c26e8a1063843c23b9ba3.zip
drop our gcc -Weverything fixes in notifier.c so that they don't step on the changes in lp-1296431-low-power-snap-decisions
-rw-r--r--src/notifier.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/notifier.c b/src/notifier.c
index 9835d4f..81cd6f1 100644
--- a/src/notifier.c
+++ b/src/notifier.c
@@ -25,6 +25,8 @@
#include <glib/gi18n.h>
+#define HINT_INTERACTIVE "x-canonical-switch-to-application"
+
typedef enum
{
POWER_LEVEL_CRITICAL,
@@ -97,7 +99,7 @@ power_level_to_dbus_string (const PowerLevel power_level)
}
}
-static PowerLevel
+PowerLevel
get_battery_power_level (IndicatorPowerDevice * battery)
{
static const double percent_critical = 2.0;
@@ -176,6 +178,7 @@ notification_show(IndicatorPowerNotifier * self)
body = g_strdup_printf(_("%.0f%% charge remaining"), pct);
nn = notify_notification_new(_("Battery Low"), body, NULL);
g_free (body);
+ /*notify_notification_set_hint(nn, HINT_INTERACTIVE, g_variant_new_boolean(TRUE));*/
/* if we can show it, keep it */
error = NULL;