This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 3c2524ca84b6d5b8897c2d29b7849e1f3c9236ec
Author: Stephan Haller <no...@froevel.de>
Date:   Wed Jan 20 08:23:25 2016 +0100

    Add new signal "application-launched" to XfdashboardApplication which can 
be used by any object to indicate that it launched an application successfully. 
It just has to provide the corresponding GAppInfo for the launched application.
---
 xfdashboard/application.c |   13 +++++++++++++
 xfdashboard/application.h |    2 ++
 2 files changed, 15 insertions(+)

diff --git a/xfdashboard/application.c b/xfdashboard/application.c
index d7a25c7..340a093 100644
--- a/xfdashboard/application.c
+++ b/xfdashboard/application.c
@@ -111,6 +111,7 @@ enum
        SIGNAL_SUSPEND,
        SIGNAL_RESUME,
        SIGNAL_THEME_CHANGED,
+       SIGNAL_APPLICATION_LAUNCHED,
 
        /* Actions */
        ACTION_EXIT,
@@ -989,6 +990,18 @@ static void 
xfdashboard_application_class_init(XfdashboardApplicationClass *klas
                                                1,
                                                XFDASHBOARD_TYPE_THEME);
 
+       XfdashboardApplicationSignals[SIGNAL_APPLICATION_LAUNCHED]=
+               g_signal_new("application-launched",
+                                               G_TYPE_FROM_CLASS(klass),
+                                               G_SIGNAL_RUN_LAST,
+                                               
G_STRUCT_OFFSET(XfdashboardApplicationClass, application_launched),
+                                               NULL,
+                                               NULL,
+                                               g_cclosure_marshal_VOID__OBJECT,
+                                               G_TYPE_NONE,
+                                               1,
+                                               G_TYPE_APP_INFO);
+
        XfdashboardApplicationSignals[ACTION_EXIT]=
                g_signal_new("exit",
                                                G_TYPE_FROM_CLASS(klass),
diff --git a/xfdashboard/application.h b/xfdashboard/application.h
index 957b6df..00f2454 100644
--- a/xfdashboard/application.h
+++ b/xfdashboard/application.h
@@ -89,6 +89,8 @@ struct _XfdashboardApplicationClass
 
        void (*theme_changed)(XfdashboardApplication *self, XfdashboardTheme 
*inTheme);
 
+       void (*application_launched)(XfdashboardApplication *self, GAppInfo 
*inAppInfo);
+
        /* Binding actions */
        gboolean (*exit)(XfdashboardApplication *self,
                                                XfdashboardFocusable *inSource,

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to