# HG changeset patch # User Sadrul Habib Chowdhury # Date 1154525833 0 # Node ID 13e7ba964993365f52b2b2582fb459551a527e1c # Parent 19a1812e6c46ca6ade95266d4173efe03002efed [gaim-migrate @ 16617] Minor tweaks to the context-menu in the buddylist. committer: Tailor Script diff -r 19a1812e6c46 -r 13e7ba964993 console/gntblist.c --- a/console/gntblist.c Wed Aug 02 06:24:38 2006 +0000 +++ b/console/gntblist.c Wed Aug 02 13:37:13 2006 +0000 @@ -393,7 +393,10 @@ { void (*callback)(GaimBlistNode *, gpointer); callback = (void (*)(GaimBlistNode *, gpointer))action->callback; - callback(node, action->data); + if (callback) + callback(node, action->data); + else + return; } remove_context_menu(ggblist); @@ -521,7 +524,8 @@ window = gnt_vbox_new(FALSE); gnt_box_set_toplevel(GNT_BOX(window), TRUE); gnt_box_set_title(GNT_BOX(window), title); - + + gnt_widget_set_size(context, 0, g_list_length(GNT_TREE(context)->list)); gnt_box_add_widget(GNT_BOX(window), context); /* Set the position for the popup */