Mercurial > pidgin
diff src/buddy.c @ 5032:cb700c07ee07
[gaim-migrate @ 5375]
Rewrote the buddy pounce code. It's now core/UI split, and may allow for
more advanced stuff later. Pounce actions are now a UI thing, and the
backend logic for registering, unregistering, and activating pouncs is now
in core. Also, the buddy pounce dialog was redesigned.
Oh, and there are new pounce types. You can now choose from:
* Sign on
* Sign off
* Away
* Return from away
* Idle
* Return from idle
* Buddy starts typing
* Buddy stops typing
Should work. I've been using it for some time. If you find a bug, though,
let me know.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 05 Apr 2003 10:14:21 +0000 |
parents | 8e55a4d362a3 |
children | c4b691b0cc0d |
line wrap: on
line diff
--- a/src/buddy.c Sat Apr 05 08:03:10 2003 +0000 +++ b/src/buddy.c Sat Apr 05 10:14:21 2003 +0000 @@ -149,8 +149,7 @@ static void gtk_blist_menu_bp_cb(GtkWidget *w, struct buddy *b) { - show_new_bp(b->name, b->account->gc, b->idle, - b->uc & UC_UNAVAILABLE, NULL); + gaim_gtkpounce_dialog_show(b, NULL); } static void gtk_blist_menu_showlog_cb(GtkWidget *w, struct buddy *b) @@ -1167,8 +1166,8 @@ awaymenu = gtk_item_factory_get_widget(ift, N_("/Tools/Away")); do_away_menu(); - bpmenu = gtk_item_factory_get_widget(ift, N_("/Tools/Buddy Pounce")); - do_bp_menu(); + gtkblist->bpmenu = gtk_item_factory_get_widget(ift, N_("/Tools/Buddy Pounce")); + gaim_gtkpounce_menu_build(gtkblist->bpmenu); protomenu = gtk_item_factory_get_widget(ift, N_("/Tools/Protocol Actions")); do_proto_menu(); @@ -1597,7 +1596,6 @@ } } - gtk_tree_store_set(gtkblist->treemodel, &iter, STATUS_ICON_COLUMN, status, NAME_COLUMN, mark, @@ -1658,7 +1656,6 @@ gtkblist->bbox = gtkblist->tipwindow = NULL; protomenu = NULL; awaymenu = NULL; - bpmenu = NULL; } static void gaim_gtk_blist_set_visible(struct gaim_buddy_list *list, gboolean show)