diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2010-01-14 14:30:48 -0500 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2010-01-14 14:30:48 -0500 |
commit | 8cc2e354a6135b0074ecd47349a71bd4700ccf99 (patch) | |
tree | b2361a1d09aca187f48d00604af719f1e92c5bb7 /src/libappindicator/app-indicator.h | |
parent | 1a2eabc1588a888ea1721f8da0964dff0a44847d (diff) | |
parent | bd7118f59345fbf9c7a22fdfb7a65e7f97dfa6c8 (diff) | |
download | libayatana-appindicator-8cc2e354a6135b0074ecd47349a71bd4700ccf99.tar.gz libayatana-appindicator-8cc2e354a6135b0074ecd47349a71bd4700ccf99.tar.bz2 libayatana-appindicator-8cc2e354a6135b0074ecd47349a71bd4700ccf99.zip |
* Upstream Release 0.0.9
* Add fallback support for situations where the NotificationWatcher
isn't available.
Diffstat (limited to 'src/libappindicator/app-indicator.h')
-rw-r--r-- | src/libappindicator/app-indicator.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libappindicator/app-indicator.h b/src/libappindicator/app-indicator.h index a680c33..03656ce 100644 --- a/src/libappindicator/app-indicator.h +++ b/src/libappindicator/app-indicator.h @@ -148,10 +148,12 @@ typedef struct _AppIndicatorPrivate AppIndicatorPrivate; @new_attention_icon: Slot for #AppIndicator::new-attention-icon. @new_status: Slot for #AppIndicator::new-status. @connection_changed: Slot for #AppIndicator::connection-changed. + @fallback: Function that gets called to make a #GtkStatusIcon when + there is no Application Indicator area available. + @unfallback: The function that gets called if an Application + Indicator area appears after the fallback has been created. @app_indicator_reserved_1: Reserved for future use. @app_indicator_reserved_2: Reserved for future use. - @app_indicator_reserved_3: Reserved for future use. - @app_indicator_reserved_4: Reserved for future use. The signals and external functions that make up the #AppIndicator class object. @@ -174,11 +176,14 @@ struct _AppIndicatorClass { gboolean connected, gpointer user_data); + /* Overridable Functions */ + GtkStatusIcon * (*fallback) (AppIndicator * indicator); + void (*unfallback) (AppIndicator * indicator, + GtkStatusIcon * status_icon); + /* Reserved */ void (*app_indicator_reserved_1)(void); void (*app_indicator_reserved_2)(void); - void (*app_indicator_reserved_3)(void); - void (*app_indicator_reserved_4)(void); }; /** @@ -223,6 +228,7 @@ AppIndicatorCategory app_indicator_get_category (AppIndicator * AppIndicatorStatus app_indicator_get_status (AppIndicator *self); const gchar * app_indicator_get_icon (AppIndicator *self); const gchar * app_indicator_get_attention_icon (AppIndicator *self); +GtkMenu * app_indicator_get_menu (AppIndicator *self); G_END_DECLS |