aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-23 16:04:02 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-23 16:04:02 -0500
commita8ea5a0304e5ee14ee93532f0bc960c99039356a (patch)
tree43450ce75dc7c9ba675b10867ffec0b740c9d374 /src
parent1f98321fa6139105a1b427a2dac2b4e2b0642dd6 (diff)
downloadayatana-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')
-rw-r--r--src/notifier.c23
-rw-r--r--src/notifier.h1
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;
};
/***