[75] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Button with Image for Toolbar

daemon@ATHENA.MIT.EDU (Otto Hammersmith)
Sat May 10 12:27:56 1997

Date: Sat, 10 May 1997 12:27:45 -0400
From: Otto Hammersmith <otto@redhat.com>
To: gtk-list@redhat.com
In-Reply-To: <33743BF0.106D930F@aibon.ping.de>; from Sascha Ziemann on Sat, May 10, 1997 at 11:12:16AM +0200
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Sat, May 10, 1997 at 11:12:16AM +0200, Sascha Ziemann wrote:
> Otto Hammersmith wrote:
> > Check the prototype for gtk_pixmap_new.  You're passing it a bitmap
> > when it's expecting a pixmap.  Try using gdk_pixmap_create_from_data.
> 
> GdkPixmap *
> gdk_bitmap_create_from_data (GdkWindow *window,
> 			     gchar     *data,
> 			     gint       width,
> 			     gint       height)
> GtkWidget*
> gtk_pixmap_new (GdkPixmap *normal,
> 		GdkPixmap *active,
> 		GdkPixmap *prelight,
> 		GdkPixmap *selected,
> 		GdkPixmap *insensitive)
> 
> gdk_bitmap_create_from_data returns a GdkPixmap type and gtk_pixmap_new
> wants such a type. I can not see any type conflict.

That's what we call a brain fart.  Doh.

-- 
					-Otto.

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post