~cairo-dock-team/ubuntu/precise/cairo-dock/988102

« back to all changes in this revision

Viewing changes to src/cairo-dock-notifications.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2008-09-14 16:26:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080914162612-t6aa8pr2o0qry48o
Tags: 1.6.2.3-0ubuntu1
* New upstream release.
* debian/control
 - Update to 3.8.0 (no change needed).
 - Add libxtst-dev as Build-Depends.
* debian/cairo-dock-data.install
 - Add usr/share/cairo-dock/emblems directory.
* debian/watch
 - Update location.
* debian/rules
 - Add a get-orig-source rule.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#define  __CAIRO_DOCK_NOTIFICATIONS__
4
4
 
5
5
#include <glib.h>
6
 
 
7
 
 
8
 
typedef gboolean (* CairoDockNotificationFunc) (gpointer *data);
 
6
G_BEGIN_DECLS
 
7
 
 
8
 
 
9
typedef gboolean (* CairoDockNotificationFunc) (gpointer *data, gpointer pUserData);
 
10
 
 
11
typedef struct {
 
12
        CairoDockNotificationFunc pFunction;
 
13
        gpointer pUserData;
 
14
        } CairoDockNotificationRecord;
9
15
 
10
16
typedef enum {
11
17
        /// notification appellee lorsque l'utilisateur supprime un lanceur via le menu. data : {Icon, CairoDock}
45
51
*@param pFunction fonction notifiee.
46
52
*@param bRunFirst CAIRO_DOCK_RUN_FIRST pour etre enregistre en 1er, CAIRO_DOCK_RUN_AFTER pour etre enregistreé en dernier.
47
53
*/
48
 
void cairo_dock_register_notification (CairoDockNotificationType iNotifType, CairoDockNotificationFunc pFunction, gboolean bRunFirst);
 
54
void cairo_dock_register_notification (CairoDockNotificationType iNotifType, CairoDockNotificationFunc pFunction, gboolean bRunFirst, gpointer pUserData);
49
55
 
50
56
/**
51
57
*Enleve une fonction de la liste des fonctions appelees par une notification donnee.
52
58
*@param iNotifType type de la notification.
53
59
*@param pFunction fonction notifiee.
54
60
*/
55
 
void cairo_dock_remove_notification_func (CairoDockNotificationType iNotifType, CairoDockNotificationFunc pFunction);
 
61
void cairo_dock_remove_notification_func (CairoDockNotificationType iNotifType, CairoDockNotificationFunc pFunction, gpointer pUserData);
56
62
/**
57
 
*Enleve une fonction de la liste des fonctions appelees par une notification donnee.
 
63
*Appelle toutes les fonctions enregistrees pour une notification donnee.
58
64
*@param iNotifType type de la notification.
59
65
*@param data donnees passees a la fonction notifiee.
60
66
@return TRUE si la notification a ete utilisee par quelqu'un, FALSE si aucune fonction n'est enregistree pour elle.
65
71
/**
66
72
*Enregistre une liste de fonctions devant etre notifiees en premier. La liste est une liste de couples (CairoDockNotificationType, CairoDockNotificationFunc), et doit etre clot par -1.
67
73
*@param iFirstNotifType type de la 1ere notification.
68
 
*@param ... 1ere fonction notifiee, puis couple de (notification, fonction), termine par -1.
 
74
*@param ... 1ere fonction notifiee, puis triplet de (notification, fonction, user_data), termine par -1.
69
75
*/
70
76
void cairo_dock_register_first_notifications (int iFirstNotifType, ...);
71
77
/**
72
78
*Enregistre une liste de fonctions devant etre notifiees en dernier. La liste est une liste de couples (CairoDockNotificationType, CairoDockNotificationFunc), et doit etre clot par -1.
73
79
*@param iFirstNotifType type de la 1ere notification.
74
 
*@param ... 1ere fonction notifiee, puis couple de (notification, fonction), termine par -1.
 
80
*@param ... 1ere fonction notifiee, puis triplet de (notification, fonction, user_data), termine par -1.
75
81
*/
76
82
void cairo_dock_register_last_notifications (int iFirstNotifType, ...);
77
83
/**
82
88
void cairo_dock_remove_notification_funcs (int iFirstNotifType, ...);
83
89
 
84
90
 
 
91
G_END_DECLS
85
92
#endif