diff console/libgnt/gntmenu.c @ 14900:065e7ac30338

[gaim-migrate @ 17672] Rearranging a bunch of stuff. Users shouldn't notice any change, apart from the added ability to bind keys for the window-manager. I will update the manual in a while. I need to know how to revert a commit in case things go terribly wrong. ... I am going to remind everyone that Dido is AWESOME! committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 05 Nov 2006 17:28:33 +0000
parents 70623f0d5cdc
children 1bd0456fe1c3
line wrap: on
line diff
--- a/console/libgnt/gntmenu.c	Sun Nov 05 14:57:05 2006 +0000
+++ b/console/libgnt/gntmenu.c	Sun Nov 05 17:28:33 2006 +0000
@@ -175,7 +175,7 @@
 gnt_menu_destroy(GntWidget *widget)
 {
 	GntMenu *menu = GNT_MENU(widget);
-	g_list_foreach(menu->list, (GFunc)g_object_run_dispose, NULL);
+	g_list_foreach(menu->list, (GFunc)g_object_unref, NULL);
 	g_list_free(menu->list);
 	org_destroy(widget);
 }
@@ -252,7 +252,7 @@
 {
 	GntWidget *widget = GNT_WIDGET(instance);
 	GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_NO_SHADOW | GNT_WIDGET_NO_BORDER |
-			GNT_WIDGET_CAN_TAKE_FOCUS);
+			GNT_WIDGET_CAN_TAKE_FOCUS | GNT_WIDGET_TRANSIENT);
 	GNTDEBUG;
 }