[sword-devel] I cannot set icon in GTK
sword-devel@crosswire.org
sword-devel@crosswire.org
Tue, 13 Aug 2002 06:52:22 +0600
mainwin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(mainwin), prog_name);
gtk_window_set_default_size(GTK_WINDOW(mainwin), 600, 400);
GdkPixbuf *icon16 = gdk_pixbuf_new_from_file("ld16.png", &error);
gtk_window_set_icon(GTK_WINDOW(mainwin), icon16);
It gives the error message:
(ldedit:2166): Gtk-CRITICAL **: file gtkwindow.c: line 2086
(gtk_window_realize_icon): assertion `info->icon_pixmap == NULL' failed
What is wrong? (I use GTK 2.)
--
Victor Porton (porton@ex-code.com)