Re: Icons



Jeff Shipman <shippy nmt edu> writes:

> Well, I created my pixmap and mask, and I tried
> just passing NULL for both windows, but when
> I do this, I get:
> 
> Gdk-CRITICAL **: file gdkwindow.c: line 2034 (gdk_window_set_icon): assertion `window != NULL' failed.

Well, one of the windows has to be the window you set the
icon for, right? GTK+ can't just mind-read what window
you wat to set the icon on ;-)

You need to pass in toplevel->window, and as Havoc said, to avoid
that being null, you need to:

 "gdk_window_set_icon(). Call it in a signal handler connected to the
 "realize" signal on a GtkWindow with gtk_signal_connect_after()."

Regards,
                                        Owen




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