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



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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]