# HG changeset patch # User Gabriel Schulhof # Date 1179777700 0 # Node ID 45fcb1611bef4749c84159a9d0a974b685420a58 # Parent 923051464e88fcbb544eb834d82622c7c029afaf Forgot an instance of g_object_new and some other changes are necessary, too. diff -r 923051464e88 -r 45fcb1611bef pidgin/gtkutils.c --- a/pidgin/gtkutils.c Mon May 21 17:04:08 2007 +0000 +++ b/pidgin/gtkutils.c Mon May 21 20:01:40 2007 +0000 @@ -484,9 +484,9 @@ /* Create the label */ label = gtk_label_new (lbl); - gtk_widget_show (lbl); + gtk_widget_show (label); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); - gtk_misc_set_alignment(GTK_MISC(label, 0.0, 0.5)); + gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_container_add(GTK_CONTAINER(item), hbox); gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); @@ -661,7 +661,8 @@ aop_menu = g_malloc0(sizeof(AopMenu)); aop_menu->default_item = -1; - aop_menu->menu = g_object_new(GTK_TYPE_MENU, "visible", TRUE, NULL); + aop_menu->menu = gtk_menu_new(); + gtk_widget_show(aop_menu->menu); sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); for (p = list, i = 0; p != NULL; p = p->next, i++) {