diff options
author | Ted Gould <ted@gould.cx> | 2010-08-03 15:55:21 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-03 15:55:21 -0500 |
commit | fc9d5d4f762493d0b8378b12ac6c8451e5b9683b (patch) | |
tree | 01575b20e87d2e63621108a33f8fbddcc990faf8 /src/app-indicator.c | |
parent | e0f472f173a2bb2931f7ddbb1c5bd3d25af5f462 (diff) | |
download | libayatana-appindicator-fc9d5d4f762493d0b8378b12ac6c8451e5b9683b.tar.gz libayatana-appindicator-fc9d5d4f762493d0b8378b12ac6c8451e5b9683b.tar.bz2 libayatana-appindicator-fc9d5d4f762493d0b8378b12ac6c8451e5b9683b.zip |
Adding in a signal to tell when the label is updated.
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r-- | src/app-indicator.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index ce79165..ec153c6 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -89,6 +89,7 @@ enum { NEW_ICON, NEW_ATTENTION_ICON, NEW_STATUS, + NEW_LABEL, CONNECTION_CHANGED, LAST_SIGNAL }; @@ -374,6 +375,23 @@ app_indicator_class_init (AppIndicatorClass *klass) G_TYPE_STRING); /** + AppIndicator::new-label: + @arg0: The #AppIndicator object + @arg1: The string for the label + @arg1: The string for the guide + + Emitted when either #AppIndicator:label or #AppIndicator:label-guide are + changed. + */ + signals[NEW_LABEL] = g_signal_new (APP_INDICATOR_SIGNAL_NEW_LABEL, + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (AppIndicatorClass, new_label), + NULL, NULL, + g_cclosure_marshal_VOID__STRING_STRING, + G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); + + /** AppIndicator::connection-changed: @arg0: The #AppIndicator object @arg1: Whether we're connected or not |