diff options
author | Ted Gould <ted@gould.cx> | 2010-08-04 12:46:49 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-04 12:46:49 -0500 |
commit | 4dea77d518cd6b1106452735f265ff2366c4dc9c (patch) | |
tree | 92571baa13f4dcd6767d1a6768aa4e90dc79baa0 /src | |
parent | e33d50bdee8e3e04277f4c3c3f45ff60d3bbbb45 (diff) | |
download | libayatana-appindicator-4dea77d518cd6b1106452735f265ff2366c4dc9c.tar.gz libayatana-appindicator-4dea77d518cd6b1106452735f265ff2366c4dc9c.tar.bz2 libayatana-appindicator-4dea77d518cd6b1106452735f265ff2366c4dc9c.zip |
Adding signal for label changing.
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 8 | ||||
-rw-r--r-- | src/application-service-appstore.h | 1 | ||||
-rw-r--r-- | src/application-service-marshal.list | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 2f53ecf..d25c022 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -92,6 +92,7 @@ enum { APPLICATION_ADDED, APPLICATION_REMOVED, APPLICATION_ICON_CHANGED, + APPLICATION_LABEL_CHANGED, LAST_SIGNAL }; @@ -141,6 +142,13 @@ application_service_appstore_class_init (ApplicationServiceAppstoreClass *klass) NULL, NULL, _application_service_marshal_VOID__INT_STRING, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_STRING, G_TYPE_NONE); + signals[APPLICATION_LABEL_CHANGED] = g_signal_new ("application-label-changed", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (ApplicationServiceAppstoreClass, application_label_changed), + NULL, NULL, + _application_service_marshal_VOID__INT_STRING_STRING, + G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_NONE); dbus_g_object_type_install_info(APPLICATION_SERVICE_APPSTORE_TYPE, &dbus_glib__application_service_server_object_info); diff --git a/src/application-service-appstore.h b/src/application-service-appstore.h index e8ba8c1..34c7b1c 100644 --- a/src/application-service-appstore.h +++ b/src/application-service-appstore.h @@ -46,6 +46,7 @@ struct _ApplicationServiceAppstoreClass { void (*application_added) (ApplicationServiceAppstore * appstore, gchar *, gint, gchar *, gchar *, gpointer); void (*application_removed) (ApplicationServiceAppstore * appstore, gint, gpointer); void (*application_icon_changed)(ApplicationServiceAppstore * appstore, gint, const gchar *, gpointer); + void (*application_label_changed)(ApplicationServiceAppstore * appstore, gint, const gchar *, const gchar *, gpointer); }; struct _ApplicationServiceAppstore { diff --git a/src/application-service-marshal.list b/src/application-service-marshal.list index 506bb00..90bd64e 100644 --- a/src/application-service-marshal.list +++ b/src/application-service-marshal.list @@ -17,4 +17,5 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see <http://www.gnu.org/licenses/>. VOID: STRING, INT, STRING, STRING, STRING, STRING, STRING +VOID: INT, STRING, STRING VOID: INT, STRING |