changeset 8817:48c6552be372

[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 <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 26 Apr 2004 16:19:12 +0000
parents 7001af79521f
children 552dd5d5641e
files src/gtkblist.c src/value.h
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;