Re: GtkImage problem



On Fri, May 04, 2007 at 05:26:40PM -0700, beginner.c wrote:
> 
> Compile error
> passing argument 1 of 'gtk_image_set_from_file' from incompatible pointer
> type

Do what it says and typecast the variable with GTK_IMAGE().

> Runtime errors
> (process:12275): GLib-GObject-CRITICAL **: gtype.c:2242: initialization
> assertion failed, use IA__g_type_init() prior to this function

Do what is says and call gtk_init() (g_type_init() would not
be enough for you use Gtk+ too) as you have to in any Gtk+
program.

Yeti

--
http://gwyddion.net/



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