Gtk_pixmap warning ...



Hi again,

Thanx for the help, I really appreciate it.
Another problem I have is a warning I get all
the time.
I use the following code to create a pixmap :

GtkWidget *
new_pixmap (char  *filename,
	    GdkWindow *window,
	    GdkColor  *transparent)
{
  GtkWidget *wpixmap;
  GdkPixmap *pixmap;
  GdkBitmap *mask;

  pixmap = gdk_pixmap_create_from_xpm ( window, &mask, transparent, filename);
  wpixmap = gtk_pixmap_new (pixmap, mask);

  return wpixmap;
}

and then I call like that :

GtkWidget *my_win;

my_win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_toolbar_append_item (GTK_TOOLBAR (toolbar),
       "Exit", "Exit ...", "Exit",
       new_pixmap ("pixmaps/exit.xpm", my_win->window,
	&my_win->style->white_gc),
	GTK_SIGNAL_FUNC (exit_app), toolbar);

and I get : 
** WARNING **: Creating pixmap from xpm with NULL window and colormap
all the time ...

Thanx,
Mike &

-- 
                                           ////
                                          (@ @)
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-\O/-OOo-=-=-=-=
    Mike D. Flouris   -   Institute of Computer Science
       Foundation for Research & Technology, Hellas.
            http://www.ics.forth.gr/~flouris



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