# HG changeset patch # User Richard Laager # Date 1136348363 0 # Node ID d7043c3c793dbca22023d7e31e33fbbe2096c451 # Parent 8ae981f2c9cbacd0ae9597385fd09d35ebf1af22 [gaim-migrate @ 15057] SF Patch #1396249 from Sadrul "The "drawing-tooltip" signal should carry `full' to the plugins so the plugins don't add stuff for every buddy in the contact." committer: Tailor Script diff -r 8ae981f2c9cb -r d7043c3c793d doc/gtkblist-signals.dox --- a/doc/gtkblist-signals.dox Wed Jan 04 04:14:02 2006 +0000 +++ b/doc/gtkblist-signals.dox Wed Jan 04 04:19:23 2006 +0000 @@ -38,7 +38,7 @@ @signaldef drawing-tooltip @signalproto -void (*drawing-tooltip)(GaimBlistNode *node, GString *text); +void (*drawing-tooltip)(GaimBlistNode *node, GString *text, gboolean full); @endsignalproto @signaldesc Emitted just before a tooltip is displayed. @@ -48,6 +48,8 @@ Make sure to free @a *text before you replace it! @param node The blist node for the tooltip. @param text A pointer to the text that will be displayed. + @param full Whether we're doing a full tooltip for the priority buddy or + a compact tooltip for a non-priority buddy. @endsignaldef */ // vim: syntax=c tw=75 et diff -r 8ae981f2c9cb -r d7043c3c793d plugins/ChangeLog.API --- a/plugins/ChangeLog.API Wed Jan 04 04:14:02 2006 +0000 +++ b/plugins/ChangeLog.API Wed Jan 04 04:19:23 2006 +0000 @@ -226,6 +226,7 @@ conversation pointer and a pointer to the flags. * "drawing-tooltip": the second argument is now a GString* instead of a char** + * "drawing-tooltip": added the "full" argument * "chat-invited" handlers can now return a value to control what happens to the invite (accept, reject, prompt the user). * "buddy-typing" and "buddy-typing-stopped": replaced the GaimConversation* diff -r 8ae981f2c9cb -r d7043c3c793d src/gtkblist.c --- a/src/gtkblist.c Wed Jan 04 04:14:02 2006 +0000 +++ b/src/gtkblist.c Wed Jan 04 04:19:23 2006 +0000 @@ -2792,7 +2792,7 @@ } gaim_signal_emit(gaim_gtk_blist_get_handle(), - "drawing-tooltip", node, str); + "drawing-tooltip", node, str, full); return g_string_free(str, FALSE); } @@ -5051,9 +5051,10 @@ GAIM_SUBTYPE_BLIST)); gaim_signal_register(gtk_blist_handle, "drawing-tooltip", - gaim_marshal_VOID__POINTER_POINTER, NULL, 2, + gaim_marshal_VOID__POINTER_POINTER_UINT, NULL, 3, gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_BLIST_NODE), - gaim_value_new_outgoing(GAIM_TYPE_BOXED, "GString *")); + gaim_value_new_outgoing(GAIM_TYPE_BOXED, "GString *"), + gaim_value_new(GAIM_TYPE_BOOLEAN)); gaim_signal_connect(gaim_blist_get_handle(), "buddy-signed-on", gtk_blist_handle, GAIM_CALLBACK(buddy_signonoff_cb), NULL);