# HG changeset patch # User Sadrul Habib Chowdhury # Date 1155147552 0 # Node ID fec4fadf30c9b144f474baa5c2667fb649ef3288 # Parent ccbd43daa1a36db6d84000a073206ab4c2da2ebf [gaim-migrate @ 16683] Minor adjustments. committer: Tailor Script diff -r ccbd43daa1a3 -r fec4fadf30c9 console/gntblist.c --- a/console/gntblist.c Wed Aug 09 18:00:38 2006 +0000 +++ b/console/gntblist.c Wed Aug 09 18:19:12 2006 +0000 @@ -101,7 +101,6 @@ gnt_tree_remove(GNT_TREE(ggblist->tree), node); node->ui_data = NULL; - /* XXX: Depending on the node, we may want to remove the group/contact node if necessary */ if (GAIM_BLIST_NODE_IS_BUDDY(node)) { GaimGroup *group = gaim_buddy_get_group((GaimBuddy*)node); @@ -648,17 +647,33 @@ } } -/* XXX: This still doesn't do anything, because request doesn't have a ui yet */ static void gg_blist_remove_node_cb(GaimBlistNode *node, GaimBlistNode *null) { + char *primary, *sec = NULL; + const char *name; + + if (GAIM_BLIST_NODE_IS_BUDDY(node)) + name = gaim_buddy_get_name((GaimBuddy*)node); + else if (GAIM_BLIST_NODE_IS_CHAT(node)) + name = gaim_chat_get_name((GaimChat*)node); + else if (GAIM_BLIST_NODE_IS_GROUP(node)) + { + name = ((GaimGroup*)node)->name; + sec = _("Removing this group will also remove all the buddies in the group"); + } + else + return; + + primary = g_strdup_printf(_("Are you sure you want to remove %s?"), name); + /* XXX: anything to do with the returned ui-handle? */ gaim_request_action(node, _("Confirm Remove"), - _("Are you sure you want to remove ..."), NULL, /* XXX: tidy up */ + primary, sec, 1, node, 2, _("Remove"), gg_blist_remove_node, - _("No"), NULL); - + _("Cancel"), NULL); + g_free(primary); } static void diff -r ccbd43daa1a3 -r fec4fadf30c9 console/gntrequest.c --- a/console/gntrequest.c Wed Aug 09 18:00:38 2006 +0000 +++ b/console/gntrequest.c Wed Aug 09 18:19:12 2006 +0000 @@ -182,7 +182,7 @@ window = setup_request_window(title, primary, secondary, GAIM_REQUEST_ACTION); - box = gnt_hbox_new(TRUE); + box = gnt_hbox_new(FALSE); gnt_box_add_widget(GNT_BOX(window), box); for (i = 0; i < actioncount; i++) {