[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk
Subject: Re: Icons
From: Owen Taylor <otaylor () redhat ! com>
Date: 2001-02-28 3:09:30
[Download RAW message or body]
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
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic