From 8e913de4c33af10f9d37a0994bbe0f13e93528b4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 20 Dec 2008 00:02:36 -0600 Subject: Stopping point --- libindicate/indicator.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'libindicate/indicator.h') diff --git a/libindicate/indicator.h b/libindicate/indicator.h index b2ef02e..d9b8075 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -2,20 +2,34 @@ #ifndef INDICATE_INDICATOR_H_INCLUDED__ #define INDICATE_INDICATOR_H_INCLUDED__ 1 -#define INDICATE_TYPE_INDICATOR (indicator_get_type ()) +/* Boilerplate */ +#define INDICATE_TYPE_INDICATOR (indicate_indicator_get_type ()) #define INDICATE_INDICATOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), INDICATE_TYPE_INDICATOR, IndicateIndicator)) #define INDICATE_IS_INDICATOR(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), INDICATE_TYPE_INDICATOR)) +/* This is a signal that signals to the indicator that the user + * has done an action where they'd like this indicator to be + * displayed. */ #define INDICATE_INDICATOR_SIGNAL_DISPLAY "user-display" typedef struct _IndicateIndicator IndicateIndicator; IndicateIndicator * indicate_indicator_new (void); + +/* Should these just be GObject properties? */ void indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * property_name, const gchar * property_value); + +/* Show and hide this indicator */ void indicate_indicator_show (IndicateIndicator * indicator); +void indicate_indicator_hide (IndicateIndicator * indicator); +/* Every entry has an ID, here's how to get it */ guint indicate_indicator_get_id (IndicateIndicator * indicator); +/* Every entry has a type. This should be created by the + * subclass and exported through this pretty function */ +const gchar * indicate_indicator_get_type (IndicateIndicator * indicator); + #endif /* INDICATE_INDICATOR_H_INCLUDED__ */ -- cgit v1.2.3