From: Mark D. <the...@us...> - 2005-01-06 01:27:47
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26852/src Modified Files: gtkblist.c value.h Log Message: The Ever-Vigilant Stu pointed out that it probably wasn't a good idea to allow plugins to modify the internals of a GString. This should take care of that. Index: gtkblist.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkblist.c,v retrieving revision 1.225 retrieving revision 1.226 diff -u -d -p -r1.225 -r1.226 --- gtkblist.c 5 Jan 2005 20:08:18 -0000 1.225 +++ gtkblist.c 6 Jan 2005 01:27:34 -0000 1.226 @@ -2688,7 +2688,7 @@ static char *gaim_get_tooltip_text(GaimB } gaim_signal_emit(gaim_gtk_blist_get_handle(), - "drawing-tooltip", node, &str->str); + "drawing-tooltip", node, str); return g_string_free(str, FALSE); } @@ -4728,7 +4728,7 @@ void gaim_gtk_blist_init(void) gaim_signal_register(gtk_blist_handle, "drawing-tooltip", gaim_marshal_VOID__POINTER_POINTER, NULL, 2, gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_BLIST_NODE), - gaim_value_new_outgoing(GAIM_TYPE_STRING)); + gaim_value_new_outgoing(GAIM_TYPE_BOXED, "GString *")); } void Index: value.h =================================================================== RCS file: /cvsroot/gaim/gaim/src/value.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -p -r1.7 -r1.8 --- value.h 1 Oct 2004 22:08:39 -0000 1.7 +++ value.h 6 Jan 2005 01:27:34 -0000 1.8 @@ -120,7 +120,7 @@ extern "C" { * This function takes a type and, depending on that type, a sub-type * or specific type. * - * If @a type is GAIM_TYPE_POINTER, the next parameter must be a + * If @a type is GAIM_TYPE_BOXED, the next parameter must be a * string representing the specific type. * * If @a type is GAIM_TYPE_SUBTYPE, the next parameter must be a @@ -136,12 +136,13 @@ extern "C" { GaimValue *gaim_value_new(GaimType type, ...); /** - * Creates a new outgoing GaimValue. + * Creates a new outgoing GaimValue. If a value is an "outgoing" value + * it means the value can be modified by plugins and scripts. * * This function takes a type and, depending on that type, a sub-type * or specific type. * - * If @a type is GAIM_TYPE_POINTER, the next parameter must be a + * If @a type is GAIM_TYPE_BOXED, the next parameter must be a * string representing the specific type. * * If @a type is GAIM_TYPE_SUBTYPE, the next parameter must be a |