Mercurial > pidgin.yaz
comparison pidgin/gtkutils.c @ 17225:45fcb1611bef
Forgot an instance of g_object_new and some other changes are necessary, too.
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Mon, 21 May 2007 20:01:40 +0000 |
parents | 5e89c6d85d6e |
children | fe8a1051aa0a |
comparison
equal
deleted
inserted
replaced
17224:923051464e88 | 17225:45fcb1611bef |
---|---|
482 if (sg) | 482 if (sg) |
483 gtk_size_group_add_widget(sg, image); | 483 gtk_size_group_add_widget(sg, image); |
484 | 484 |
485 /* Create the label */ | 485 /* Create the label */ |
486 label = gtk_label_new (lbl); | 486 label = gtk_label_new (lbl); |
487 gtk_widget_show (lbl); | 487 gtk_widget_show (label); |
488 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); | 488 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); |
489 gtk_misc_set_alignment(GTK_MISC(label, 0.0, 0.5)); | 489 gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); |
490 | 490 |
491 gtk_container_add(GTK_CONTAINER(item), hbox); | 491 gtk_container_add(GTK_CONTAINER(item), hbox); |
492 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); | 492 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); |
493 gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); | 493 gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); |
494 | 494 |
659 else | 659 else |
660 list = purple_connections_get_all(); | 660 list = purple_connections_get_all(); |
661 | 661 |
662 aop_menu = g_malloc0(sizeof(AopMenu)); | 662 aop_menu = g_malloc0(sizeof(AopMenu)); |
663 aop_menu->default_item = -1; | 663 aop_menu->default_item = -1; |
664 aop_menu->menu = g_object_new(GTK_TYPE_MENU, "visible", TRUE, NULL); | 664 aop_menu->menu = gtk_menu_new(); |
665 gtk_widget_show(aop_menu->menu); | |
665 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | 666 sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); |
666 | 667 |
667 for (p = list, i = 0; p != NULL; p = p->next, i++) { | 668 for (p = list, i = 0; p != NULL; p = p->next, i++) { |
668 PurplePluginProtocolInfo *prpl_info = NULL; | 669 PurplePluginProtocolInfo *prpl_info = NULL; |
669 PurplePlugin *plugin; | 670 PurplePlugin *plugin; |