comparison src/gtkblist.c @ 10477:5cb55bcad11b

[gaim-migrate @ 11764] 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. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 06 Jan 2005 01:27:34 +0000
parents d02e70b5d197
children 1ac8f10ce68d
comparison
equal deleted inserted replaced
10476:d02e70b5d197 10477:5cb55bcad11b
2686 if (!g_ascii_strcasecmp(b->name, "chipx86")) 2686 if (!g_ascii_strcasecmp(b->name, "chipx86"))
2687 g_string_append(str, _("\n<b>Status:</b> Rockin'")); 2687 g_string_append(str, _("\n<b>Status:</b> Rockin'"));
2688 } 2688 }
2689 2689
2690 gaim_signal_emit(gaim_gtk_blist_get_handle(), 2690 gaim_signal_emit(gaim_gtk_blist_get_handle(),
2691 "drawing-tooltip", node, &str->str); 2691 "drawing-tooltip", node, str);
2692 2692
2693 return g_string_free(str, FALSE); 2693 return g_string_free(str, FALSE);
2694 } 2694 }
2695 2695
2696 struct _emblem_data { 2696 struct _emblem_data {
4726 GAIM_SUBTYPE_BLIST)); 4726 GAIM_SUBTYPE_BLIST));
4727 4727
4728 gaim_signal_register(gtk_blist_handle, "drawing-tooltip", 4728 gaim_signal_register(gtk_blist_handle, "drawing-tooltip",
4729 gaim_marshal_VOID__POINTER_POINTER, NULL, 2, 4729 gaim_marshal_VOID__POINTER_POINTER, NULL, 2,
4730 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_BLIST_NODE), 4730 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_BLIST_NODE),
4731 gaim_value_new_outgoing(GAIM_TYPE_STRING)); 4731 gaim_value_new_outgoing(GAIM_TYPE_BOXED, "GString *"));
4732 } 4732 }
4733 4733
4734 void 4734 void
4735 gaim_gtk_blist_uninit(void) { 4735 gaim_gtk_blist_uninit(void) {
4736 gaim_signals_unregister_by_instance(gaim_gtk_blist_get_handle()); 4736 gaim_signals_unregister_by_instance(gaim_gtk_blist_get_handle());