Mercurial > pidgin.yaz
comparison console/libgnt/gntmarshal.c @ 14343:0387a167f342
[gaim-migrate @ 17044]
A WM can now act on keystrokes. As an example, the sample WM will toggle
the buddylist on pressing Alt+b.
Mouse clicking and scrolling is now supported in most/all widgets.
To use a WM, you need to add "wm=/path/to/wm.so" under [general] in ~/.gntrc.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 26 Aug 2006 12:54:39 +0000 |
parents | cd2da4b079cf |
children | 52022b0a9405 |
comparison
equal
deleted
inserted
replaced
14342:12156328fb4f | 14343:0387a167f342 |
---|---|
164 data2); | 164 data2); |
165 g_value_set_boolean(ret_value, ret); | 165 g_value_set_boolean(ret_value, ret); |
166 } | 166 } |
167 | 167 |
168 | 168 |
169 void gnt_closure_marshal_BOOLEAN__INT_INT_INT(GClosure *closure, | |
170 GValue *ret_value, | |
171 guint n_param_values, | |
172 const GValue *param_values, | |
173 gpointer invocation_hint, | |
174 gpointer marshal_data) | |
175 { | |
176 typedef gboolean (*func) (gpointer data1, int, int, int, gpointer data2); | |
177 register func callback; | |
178 register GCClosure *cc = (GCClosure*)closure; | |
179 register gpointer data1, data2; | |
180 gboolean ret; | |
181 | |
182 g_return_if_fail(ret_value != NULL); | |
183 g_return_if_fail(n_param_values == 4); | |
184 | |
185 if (G_CCLOSURE_SWAP_DATA(closure)) | |
186 { | |
187 data1 = closure->data; | |
188 data2 = g_value_peek_pointer(param_values + 0); | |
189 } | |
190 else | |
191 { | |
192 data1 = g_value_peek_pointer(param_values + 0); | |
193 data2 = closure->data; | |
194 } | |
195 | |
196 callback = (func) (marshal_data ? marshal_data : cc->callback); | |
197 ret = callback(data1, | |
198 g_value_get_int(param_values + 1) , | |
199 g_value_get_int(param_values + 2) , | |
200 g_value_get_int(param_values + 3) , | |
201 data2); | |
202 g_value_set_boolean(ret_value, ret); | |
203 } | |
204 | |
205 |