aboutsummaryrefslogtreecommitdiff
path: root/libindicate/indicator.h
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-01-12 17:15:43 -0600
committerTed Gould <ted@canonical.com>2009-01-12 17:15:43 -0600
commit514837a37737b049827008f7685de9d49c4034ba (patch)
treeeb759002aa8dd891a2846c22c600ee1dd4461571 /libindicate/indicator.h
parent2dc2f266359d30841fa2970dba0265cb22556b89 (diff)
downloadlibayatana-indicator-514837a37737b049827008f7685de9d49c4034ba.tar.gz
libayatana-indicator-514837a37737b049827008f7685de9d49c4034ba.tar.bz2
libayatana-indicator-514837a37737b049827008f7685de9d49c4034ba.zip
Fleshing out the whole show and hide thing. We should also be signalling when indicators are added or removed from the server.
Diffstat (limited to 'libindicate/indicator.h')
-rw-r--r--libindicate/indicator.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libindicate/indicator.h b/libindicate/indicator.h
index cfa93aa..3c8efc8 100644
--- a/libindicate/indicator.h
+++ b/libindicate/indicator.h
@@ -11,7 +11,7 @@
#define INDICATE_IS_INDICATOR(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), INDICATE_TYPE_INDICATOR))
#define INDICATE_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), INDICATE_TYPE_INDICATOR, IndicateIndicatorClass))
#define INDICATE_IS_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), INDICATE_TYPE_INDICATOR))
-#define INDICATE_INDICATOR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), INDICATE_TYPE_INDICATOR, IndicateIndicatorCLass))
+#define INDICATE_INDICATOR_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), INDICATE_TYPE_INDICATOR, IndicateIndicatorClass))
/* This is a signal that signals to the indicator that the user
* has done an action where they'd like this indicator to be
@@ -29,6 +29,7 @@ struct _IndicateIndicator {
GObject parent;
guint id;
+ gboolean is_visible;
IndicateServer * server;
};
@@ -39,7 +40,7 @@ struct _IndicateIndicatorClass {
void (*show) (IndicateIndicator * indicator, gpointer data);
void (*user_display) (IndicateIndicator * indicator, gpointer data);
- gchar * (*get_type) (IndicateIndicator * indicator);
+ const gchar * (*get_type) (IndicateIndicator * indicator);
};
IndicateIndicator * indicate_indicator_new (void);
@@ -51,6 +52,8 @@ void indicate_indicator_set_property (IndicateIndicator * indicator, const gchar
void indicate_indicator_show (IndicateIndicator * indicator);
void indicate_indicator_hide (IndicateIndicator * indicator);
+gboolean indicate_indicator_is_visible (IndicateIndicator * indicator);
+
/* Every entry has an ID, here's how to get it */
guint indicate_indicator_get_id (IndicateIndicator * indicator);