~indicator-applet-developers/ubuntu/precise/libindicator/upstream

« back to all changes in this revision

Viewing changes to libindicator/indicator-object.c

Setting up the move signal, which required custom marshallers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include "indicator.h"
29
29
#include "indicator-object.h"
 
30
#include "indicator-object-marshal.h"
30
31
 
31
32
/**
32
33
        IndicatorObjectPrivate:
54
55
enum {
55
56
        ENTRY_ADDED,
56
57
        ENTRY_REMOVED,
 
58
        ENTRY_MOVED,
57
59
        LAST_SIGNAL
58
60
};
59
61
 
116
118
                                               NULL, NULL,
117
119
                                               g_cclosure_marshal_VOID__POINTER,
118
120
                                               G_TYPE_NONE, 1, G_TYPE_POINTER, G_TYPE_NONE);
 
121
        /**
 
122
                IndicatorObject::entry-moved:
 
123
                @arg0: The #IndicatorObject object
 
124
                
 
125
                Signaled when an entry is removed and should
 
126
                be removed by the person using this object.
 
127
        */
 
128
        signals[ENTRY_MOVED] = g_signal_new (INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED,
 
129
                                             G_TYPE_FROM_CLASS(klass),
 
130
                                             G_SIGNAL_RUN_LAST,
 
131
                                             G_STRUCT_OFFSET (IndicatorObjectClass, entry_moved),
 
132
                                             NULL, NULL,
 
133
                                             _indicator_object_marshal_VOID__POINTER_UINT_UINT,
 
134
                                             G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_NONE);
119
135
 
120
136
        return;
121
137
}