From 0c312c160b796c6c724c26e8a1063843c23b9ba3 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 8 Sep 2014 16:14:45 -0500 Subject: drop our gcc -Weverything fixes in notifier.c so that they don't step on the changes in lp-1296431-low-power-snap-decisions --- src/notifier.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +#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; -- cgit v1.2.3