changeset 5157:b055ed64871f

[gaim-migrate @ 5521] Less evil. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 18 Apr 2003 01:48:03 +0000
parents 3db711442e0f
children 67a72f9fede8
files src/gtkpounce.c
diffstat 1 files changed, 2 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkpounce.c	Fri Apr 18 01:15:28 2003 +0000
+++ b/src/gtkpounce.c	Fri Apr 18 01:48:03 2003 +0000
@@ -758,28 +758,11 @@
 		g_object_unref(G_OBJECT(pixbuf));
 
 		/* Build the menu item */
-		item = gtk_menu_item_new_with_label(buddy);
+		item = gtk_image_menu_item_new_with_label(buddy);
+		gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image);
 		gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
 		gtk_widget_show(item);
 
-		/* Do some evil, see some evil, speak some evil, continued. */
-		box = gtk_hbox_new(FALSE, 0);
-
-		label = gtk_bin_get_child(GTK_BIN(item));
-		g_object_ref(label);
-		gtk_container_remove(GTK_CONTAINER(item), label);
-
-		gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 0);
-		gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 4);
-
-		g_object_unref(label);
-
-		gtk_container_add(GTK_CONTAINER(item), box);
-
-		gtk_widget_show(label);
-		gtk_widget_show(image);
-		gtk_widget_show(box);
-
 		/* Set our callbacks. */
 		g_signal_connect(G_OBJECT(item), "activate", cb, pounce);
 	}