diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/notifier.c | 23 | ||||
-rw-r--r-- | src/notifier.h | 1 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/notifier.c b/src/notifier.c index 81662ca..f9f3ff6 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -109,15 +109,6 @@ notification_show(IndicatorPowerNotifier * self) notification_clear (self); -#if 0 /* using Ephemeral no-button notifications for right now; - however this will likely change so I'm not tearing the - NotifierClass.interactive code out just yet */ - - /* only show clickable notifications if the Notify server supports them */ - if (!INDICATOR_POWER_NOTIFIER_GET_CLASS(self)->interactive) - return; -#endif - p = self->priv; /* create the notification */ @@ -327,19 +318,6 @@ indicator_power_notifier_init (IndicatorPowerNotifier * self) { g_critical("Unable to initialize libnotify! Notifications might not be shown."); } - else - { - /* See if the notification server supports clickable actions... */ - GList * caps; - GList * l; - klass->interactive = FALSE; - caps = notify_get_server_caps(); - for (l=caps; l!=NULL && !klass->interactive; l=l->next) - if (!g_strcmp0 ("actions", (const char*)l->data)) - klass->interactive = TRUE; - g_list_free_full (caps, g_free); - } - g_debug ("Will show popups on low battery: %d", (int)klass->interactive); } } @@ -383,7 +361,6 @@ indicator_power_notifier_class_init (IndicatorPowerNotifierClass * klass) g_object_class_install_properties (object_class, LAST_PROP, properties); klass->instance_count = 0; - klass->interactive = FALSE; } /*** diff --git a/src/notifier.h b/src/notifier.h index 0e3ad99..dddb6e9 100644 --- a/src/notifier.h +++ b/src/notifier.h @@ -63,7 +63,6 @@ struct _IndicatorPowerNotifierClass /*< private >*/ gint instance_count; - gboolean interactive; }; /*** |