diff options
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 | ||||
-rw-r--r-- | src/application-service.xml | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index dfd932e..f24b36f 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -70,6 +70,7 @@ struct _Application { enum { APPLICATION_ADDED, APPLICATION_REMOVED, + APPLICATION_ICON_CHANGED, LAST_SIGNAL }; @@ -107,6 +108,13 @@ application_service_appstore_class_init (ApplicationServiceAppstoreClass *klass) NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT, G_TYPE_NONE); + signals[APPLICATION_ICON_CHANGED] = g_signal_new ("application-icon-changed", + G_TYPE_FROM_CLASS(klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (ApplicationServiceAppstore, application_icon_changed), + NULL, NULL, + _application_service_marshal_VOID__INT_STRING, + G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_STRING, G_TYPE_NONE); dbus_g_object_type_install_info(APPLICATION_SERVICE_APPSTORE_TYPE, diff --git a/src/application-service-appstore.h b/src/application-service-appstore.h index edf1a37..7ab20c5 100644 --- a/src/application-service-appstore.h +++ b/src/application-service-appstore.h @@ -47,6 +47,7 @@ struct _ApplicationServiceAppstore { 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); }; GType application_service_appstore_get_type (void); diff --git a/src/application-service-marshal.list b/src/application-service-marshal.list index a122bf8..99d13c0 100644 --- a/src/application-service-marshal.list +++ b/src/application-service-marshal.list @@ -17,3 +17,4 @@ # 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 +VOID: INT, STRING diff --git a/src/application-service.xml b/src/application-service.xml index fdd25bb..57d429b 100644 --- a/src/application-service.xml +++ b/src/application-service.xml @@ -39,6 +39,10 @@ with this program. If not, see <http://www.gnu.org/licenses/>. <signal name="ApplicationRemoved"> <arg type="i" name="position" direction="out" /> </signal> + <signal name="ApplicationIconChanged"> + <arg type="i" name="position" direction="out" /> + <arg type="s" name="icon_name" direction="out" /> + </signal> </interface> </node> |