aboutsummaryrefslogtreecommitdiff
path: root/src/notifier.h
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-21 13:48:18 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-21 13:48:18 -0500
commitf5bf7f99724796a21dc05676d613ed47c624bfd1 (patch)
tree56f7a58e0c0e4136830b453382bf1c322c3be3ca /src/notifier.h
parent125f6f6d02e195a668704ac8f8c7ca87940432b9 (diff)
downloadayatana-indicator-power-f5bf7f99724796a21dc05676d613ed47c624bfd1.tar.gz
ayatana-indicator-power-f5bf7f99724796a21dc05676d613ed47c624bfd1.tar.bz2
ayatana-indicator-power-f5bf7f99724796a21dc05676d613ed47c624bfd1.zip
don't show clickable actions if the Notify server doesn't support them.
Diffstat (limited to 'src/notifier.h')
-rw-r--r--src/notifier.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/notifier.h b/src/notifier.h
index c1c5a1b..cab053f 100644
--- a/src/notifier.h
+++ b/src/notifier.h
@@ -29,9 +29,10 @@
G_BEGIN_DECLS
/* standard GObject macros */
-#define INDICATOR_POWER_NOTIFIER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), INDICATOR_TYPE_POWER_NOTIFIER, IndicatorPowerNotifier))
-#define INDICATOR_TYPE_POWER_NOTIFIER (indicator_power_notifier_get_type())
-#define INDICATOR_IS_POWER_NOTIFIER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), INDICATOR_TYPE_POWER_NOTIFIER))
+#define INDICATOR_POWER_NOTIFIER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), INDICATOR_TYPE_POWER_NOTIFIER, IndicatorPowerNotifier))
+#define INDICATOR_TYPE_POWER_NOTIFIER (indicator_power_notifier_get_type())
+#define INDICATOR_IS_POWER_NOTIFIER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), INDICATOR_TYPE_POWER_NOTIFIER))
+#define INDICATOR_POWER_NOTIFIER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), INDICATOR_TYPE_POWER_NOTIFIER, IndicatorPowerNotifierClass))
typedef struct _IndicatorPowerNotifier IndicatorPowerNotifier;
typedef struct _IndicatorPowerNotifierClass IndicatorPowerNotifierClass;
@@ -59,6 +60,10 @@ struct _IndicatorPowerNotifier
struct _IndicatorPowerNotifierClass
{
GObjectClass parent_class;
+
+ /*< private >*/
+ gint instance_count;
+ gboolean interactive;
};
/***