Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 307591 | Differences between
and this patch

Collapse All | Expand All

(-)src/toolbar.c (-10 / +8 lines)
Lines 497-513 Link Here
497
static GtkWidget * 
497
static GtkWidget * 
498
get_gtk_image ( GtkWidget *widget, gchar** xpm )
498
get_gtk_image ( GtkWidget *widget, gchar** xpm )
499
{
499
{
500
	GdkPixmap *gdkpixmap	= NULL;
500
    GdkPixbuf *gdkpixbuf    = NULL;
501
    GdkBitmap *mask 		= NULL;
501
    GtkWidget *gtkimage     = NULL;
502
    GtkWidget *gtkimage 	= NULL;
502
    gdkpixbuf = gdk_pixbuf_new_from_xpm_data(xpm);
503
	gdkpixmap = gdk_pixmap_create_from_xpm_d(widget->window, &mask, NULL, xpm);
503
    g_assert ( gdkpixbuf );
504
	g_assert ( gdkpixmap );
504
    gtkimage = gtk_image_new_from_pixbuf ( gdkpixbuf );
505
	gtkimage = gtk_image_new_from_pixmap(gdkpixmap, mask);
506
    g_assert ( gtkimage );
505
    g_assert ( gtkimage );
507
	g_object_unref ( G_OBJECT(gdkpixmap) );
506
    g_object_unref ( (gpointer) gdkpixbuf );
508
    g_object_unref ( G_OBJECT(mask) ); 
507
    gtk_widget_show(gtkimage);
509
	gtk_widget_show(gtkimage);
508
    return gtkimage;
510
	return gtkimage;
511
}
509
}
512
510
513
static void	
511
static void	

Return to bug 307591