From: <sa...@us...> - 2006-08-02 13:37:16
|
Revision: 16617 Author: sadrul Date: 2006-08-02 06:37:13 -0700 (Wed, 02 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16617&view=rev Log Message: ----------- Minor tweaks to the context-menu in the buddylist. Modified Paths: -------------- trunk/console/gntblist.c Modified: trunk/console/gntblist.c =================================================================== --- trunk/console/gntblist.c 2006-08-02 08:12:04 UTC (rev 16616) +++ trunk/console/gntblist.c 2006-08-02 13:37:13 UTC (rev 16617) @@ -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 */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |