# HG changeset patch # User Sean Egan # Date 1082996352 0 # Node ID 48c6552be3724885b6dc416281e750e4540937c5 # Parent 7001af79521ff2f81a99c15e18e16618a3d777b0 [gaim-migrate @ 9579] I started a plugin yesterday and I wanted to commit this new signal I needed before it got hard to keep in sync (not that that's likely to happen, really). This signal allows plugins to change the text appearing in the tooltips. Is this right? I'm not sure. The signal stuff is far too complicated. committer: Tailor Script diff -r 7001af79521f -r 48c6552be372 src/gtkblist.c --- a/src/gtkblist.c Mon Apr 26 16:11:33 2004 +0000 +++ b/src/gtkblist.c Mon Apr 26 16:19:12 2004 +0000 @@ -2508,7 +2508,8 @@ if(accounttext) g_free(accounttext); } - + gaim_signal_emit(GAIM_GTK_BLIST(gaim_get_blist()), + "drawing-tooltip", node, &text); return text; } @@ -2913,6 +2914,17 @@ gtkblist = g_new0(GaimGtkBuddyList, 1); blist->ui_data = gtkblist; + /* Register some of our own. */ + gaim_signal_register(gtkblist, "drawing-menu", + gaim_marshal_VOID__POINTER_POINTER, NULL, 2, + gaim_value_new(GAIM_TYPE_BOXED, "GtkMenu"), + gaim_value_new(GAIM_TYPE_SUBTYPE, + GAIM_SUBTYPE_BLIST_BUDDY)); + gaim_signal_register(gtkblist, "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)); + /* All of these signal handlers are for the "Raise on Events" option */ gaim_signal_connect(gaim_blist_get_handle(), "buddy-signed-on", gtkblist, GAIM_CALLBACK(raise_on_events_cb), NULL); diff -r 7001af79521f -r 48c6552be372 src/value.h --- a/src/value.h Mon Apr 26 16:11:33 2004 +0000 +++ b/src/value.h Mon Apr 26 16:19:12 2004 +0000 @@ -67,7 +67,8 @@ GAIM_SUBTYPE_CONNECTION, GAIM_SUBTYPE_CONVERSATION, GAIM_SUBTYPE_CONV_WINDOW, - GAIM_SUBTYPE_PLUGIN + GAIM_SUBTYPE_PLUGIN, + GAIM_SUBTYPE_BLIST_NODE } GaimSubType;