changeset 14020:13e7ba964993

[gaim-migrate @ 16617] Minor tweaks to the context-menu in the buddylist. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 02 Aug 2006 13:37:13 +0000
parents 19a1812e6c46
children ef8490f9e823
files console/gntblist.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 */