Mercurial > pidgin
diff src/gtkblist.c @ 9051:826013efffcb
[gaim-migrate @ 9827]
" - Makes (gaim_gtk_)append_blist_node_extended_menu and
(gaim_gtk_)append_blist_node_proto_menu public so that
plugins can use them to duplicate the right-click menus
(Guifications needs this for right-clicking on the
notification)
- Adds extended menu support for Contacts
- Removes the "drawing-menu" signal (It was UI
specific, and no-one except the gevolution plugin used it)
- Updates the gevolution plugin to use the new
blist-node-extended-menu signal (I can't compile the
gevolution plugin here, so my changes should be checked
by someone who can :) )
- Updates the blist signals documentation with the new
blist-node-extended-menu signal
- Updates the signals-test.c plugin to handle
blist-node-extended-menu, wrote/writing-im/chat-msg and
fixes displayed-im/chat-msg handling" --Stu Tomlinson
this moves a string but doesn't change it.
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Mon, 24 May 2004 15:17:49 +0000 |
| parents | 7ab20f829190 |
| children | ed084150a8ef |
line wrap: on
line diff
--- a/src/gtkblist.c Mon May 24 15:15:09 2004 +0000 +++ b/src/gtkblist.c Mon May 24 15:17:49 2004 +0000 @@ -1094,8 +1094,8 @@ } -static void -append_blist_node_proto_menu (GtkWidget *menu, GaimConnection *gc, GaimBlistNode *node) +void +gaim_gtk_append_blist_node_proto_menu (GtkWidget *menu, GaimConnection *gc, GaimBlistNode *node) { GList *l, *ll; gboolean dup_separator = FALSE; @@ -1112,8 +1112,8 @@ } -static void -append_blist_node_extended_menu (GtkWidget *menu, GaimBlistNode *node) +void +gaim_gtk_append_blist_node_extended_menu (GtkWidget *menu, GaimBlistNode *node) { GList *l, *ll; gboolean dup_separator = FALSE; @@ -1139,11 +1139,8 @@ gaim_new_item_from_stock(menu, _("View _Log"), NULL, G_CALLBACK(gtk_blist_menu_showlog_cb), b, 0, 0, NULL); - append_blist_node_proto_menu(menu, b->account->gc, (GaimBlistNode *) b); - append_blist_node_extended_menu(menu, (GaimBlistNode *) b); - - /* moving on to the old ui-specific plugin menus */ - gaim_signal_emit(gaim_gtk_blist_get_handle(), "drawing-menu", menu, b); + gaim_gtk_append_blist_node_proto_menu(menu, b->account->gc, (GaimBlistNode *) b); + gaim_gtk_append_blist_node_extended_menu(menu, (GaimBlistNode *) b); gaim_separator(menu); @@ -1204,7 +1201,7 @@ gaim_new_item_from_stock(menu, _("_Rename"), NULL, G_CALLBACK(show_rename_group), node, 0, 0, NULL); - append_blist_node_extended_menu(menu, node); + gaim_gtk_append_blist_node_extended_menu(menu, node); return menu; } @@ -1228,11 +1225,8 @@ gaim_new_check_item(menu, _("Auto-Join"), G_CALLBACK(gtk_blist_menu_autojoin_cb), node, autojoin); - append_blist_node_proto_menu(menu, c->account->gc, node); - append_blist_node_extended_menu(menu, node); - - /* moving on to the old ui-specific plugin menus */ - gaim_signal_emit(gaim_gtk_blist_get_handle(), "drawing-menu", menu, c); + gaim_gtk_append_blist_node_proto_menu(menu, c->account->gc, node); + gaim_gtk_append_blist_node_extended_menu(menu, node); gaim_separator(menu); @@ -1257,6 +1251,9 @@ node, 0, 0, NULL); gaim_new_item_from_stock(menu, _("_Remove"), GTK_STOCK_REMOVE, G_CALLBACK(gaim_gtk_blist_remove_cb), node, 0, 0, NULL); + + gaim_gtk_append_blist_node_extended_menu(menu, node); + return menu; } @@ -4497,12 +4494,6 @@ gaim_prefs_add_int("/gaim/gtk/blist/tooltip_delay", 500); /* Register our signals */ - gaim_signal_register(gtk_blist_handle, "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(gtk_blist_handle, "gtkblist-created", gaim_marshal_VOID__POINTER, NULL, 1, gaim_value_new(GAIM_TYPE_SUBTYPE,
