Mercurial > pidgin.yaz
changeset 12713:d7043c3c793d
[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 <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 04 Jan 2006 04:19:23 +0000 |
parents | 8ae981f2c9cb |
children | 668067774cf5 |
files | doc/gtkblist-signals.dox plugins/ChangeLog.API src/gtkblist.c |
diffstat | 3 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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*
--- 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);