changeset 3669:f82c5470044e

[gaim-migrate @ 3799] here committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 13 Oct 2002 23:16:25 +0000
parents 5b82f99d028d
children 773dbe57e635
files src/buddy.c
diffstat 1 files changed, 0 insertions(+), 50 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Sun Oct 13 23:06:22 2002 +0000
+++ b/src/buddy.c	Sun Oct 13 23:16:25 2002 +0000
@@ -2518,56 +2518,6 @@
 	return menuitem;
 }
 
-GtkWidget *gaim_new_item_with_pixmap(GtkWidget *menu, const char *str, char **xpm, GtkSignalFunc sf, gpointer data,
-				     guint accel_key, guint accel_mods, char *mod)
-{
-	GtkWidget *menuitem;
-	GtkWidget *hbox;
-	GtkWidget *label;
-	GtkWidget *pixmap;
-	GdkPixmap *pm;
-	GdkBitmap *mask;
-
-	menuitem = gtk_menu_item_new();
-	if (menu)
-		gtk_menu_append(GTK_MENU(menu), menuitem);
-	if (sf)
-		/* passing 1 is necessary so if we sign off closing the account editor doesn't exit */
-		gtk_signal_connect(GTK_OBJECT(menuitem), "activate", sf, data);
-	gtk_widget_show(menuitem);
-
-	/* Create our container */
-	hbox = gtk_hbox_new(FALSE, 2);
-	gtk_container_add(GTK_CONTAINER(menuitem), hbox);
-	gtk_widget_show(hbox);
-
-	/* Create our pixmap and pack it */
-	gtk_widget_realize(menu->parent);
-	pm = gdk_pixmap_create_from_xpm_d(menu->parent->window, &mask, NULL, xpm);
-	pixmap = gtk_pixmap_new(pm, mask);
-	gtk_widget_show(pixmap);
-	gdk_pixmap_unref(pm);
-	gdk_bitmap_unref(mask);
-	gtk_box_pack_start(GTK_BOX(hbox), pixmap, FALSE, FALSE, 2);
-
-	/* Create our label and pack it */
-	label = gtk_label_new(str);
-	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 2);
-	gtk_widget_show(label);
-
-	if (mod) {
-		label = gtk_label_new(mod);
-		gtk_box_pack_end(GTK_BOX(hbox), label, FALSE, FALSE, 2);
-		gtk_widget_show(label);
-	}
-
-	if (accel_key) {
-		gtk_widget_add_accelerator(menuitem, "activate", accel, accel_key,
-					   accel_mods, GTK_ACCEL_LOCKED);
-	}
-
-	return menuitem;
-}