comparison console/libgnt/gntutils.c @ 13864:c7d84d4c5afa

[gaim-migrate @ 16328] Change the internals of GntTree. The change was required to accommodate expand/collapsing of the groups. I have added tooltips for Groups as well, which shows the online/total count. Do we like it? I have also added emblems at the beginning of the names of the buddies to indicate their status. Currently I am using ASCII-emblems ('o' for available, '.' for away, 'x' for offline (but I am not showing any offline buddies yet)), but I plan on using some cool unicode-emblems Sean suggested to me. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 24 Jun 2006 10:10:53 +0000
parents 0e1e59770cb0
children 3dbcbc5e57e1
comparison
equal deleted inserted replaced
13863:cf3eb9f311b2 13864:c7d84d4c5afa
96 g_value_get_int(param_values + 1) , 96 g_value_get_int(param_values + 1) ,
97 g_value_get_int(param_values + 2) , 97 g_value_get_int(param_values + 2) ,
98 data2); 98 data2);
99 } 99 }
100 100
101 void gnt_closure_marshal_VOID__POINTER_POINTER(GClosure *closure,
102 GValue *ret_value,
103 guint n_param_values,
104 const GValue *param_values,
105 gpointer invocation_hint,
106 gpointer marshal_data)
107 {
108 typedef void (*func) (gpointer data1, gpointer, gpointer, gpointer data2);
109 register func callback;
110 register GCClosure *cc = (GCClosure*)closure;
111 register gpointer data1, data2;
112
113 g_return_if_fail(n_param_values == 3);
114
115 if (G_CCLOSURE_SWAP_DATA(closure))
116 {
117 data1 = closure->data;
118 data2 = g_value_peek_pointer(param_values + 0);
119 }
120 else
121 {
122 data1 = g_value_peek_pointer(param_values + 0);
123 data2 = closure->data;
124 }
125
126 callback = (func) (marshal_data ? marshal_data : cc->callback);
127 callback(data1,
128 g_value_get_pointer(param_values + 1) ,
129 g_value_get_pointer(param_values + 2) ,
130 data2);
131 }
132