Re: Icons
- From: Owen Taylor <otaylor redhat com>
- To: Jeff Shipman <shippy nmt edu>
- Cc: GTK List <gtk-list gnome org>
- Subject: Re: Icons
- Date: 27 Feb 2001 22:09:30 -0500
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]