diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-23 16:04:02 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-23 16:04:02 -0500 |
commit | a8ea5a0304e5ee14ee93532f0bc960c99039356a (patch) | |
tree | 43450ce75dc7c9ba675b10867ffec0b740c9d374 /src/notifier.c | |
parent | 1f98321fa6139105a1b427a2dac2b4e2b0642dd6 (diff) | |
download | ayatana-indicator-power-a8ea5a0304e5ee14ee93532f0bc960c99039356a.tar.gz ayatana-indicator-power-a8ea5a0304e5ee14ee93532f0bc960c99039356a.tar.bz2 ayatana-indicator-power-a8ea5a0304e5ee14ee93532f0bc960c99039356a.zip |
remove now-unused code that tests whether the Notify server supports actions
Diffstat (limited to 'src/notifier.c')
-rw-r--r-- | src/notifier.c | 23 |
1 files changed, 0 insertions, 23 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; } /*** |