changeset 7299:2737c287f84d

[gaim-migrate @ 7883] Reverse the calls for connecting a signal and setting the active state of a check menu item in gaim_new_check_item(). The way it was set was causing some odd things to happen, but reversing it doesn't break a thing. I checked. Really. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 19 Oct 2003 02:00:00 +0000
parents caca74a75e4c
children 41bbe5534441
files src/gtkutils.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutils.c	Sun Oct 19 01:34:24 2003 +0000
+++ b/src/gtkutils.c	Sun Oct 19 02:00:00 2003 +0000
@@ -457,11 +457,11 @@
 	if (menu)
 		gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
 
+	gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), checked);
+
 	if (sf)
 		g_signal_connect(G_OBJECT(menuitem), "activate", sf, data);
 
-	gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), checked);
-
 	gtk_widget_show_all(menuitem);
 
 	return menuitem;