Forgot an instance of g_object_new and some other changes are necessary, too.

Mon, 21 May 2007 20:01:40 +0000

author
Gabriel Schulhof <nix@go-nix.ca>
date
Mon, 21 May 2007 20:01:40 +0000
changeset 17377
136e8a8b76da
parent 17376
8987df8d5615
child 17378
a8929d1282a7

Forgot an instance of g_object_new and some other changes are necessary, too.

pidgin/gtkutils.c file | annotate | diff | comparison | revisions
--- 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++) {

mercurial