Re: [gtk-list] Re: gtk--: Problem with Gtk_Pixmap!



Tero Pulkkinen <terop@students.cc.tut.fi> writes:

> I've been thinking of making extra method to Gtk_Pixmap() to help people
> load xpm's, that has been constantly a problem and the current ways of
> doing it are ugly :)

I (sort-of) tackled this problem with my Pixmap Factory gtk-- widget :

Here's a code snippet :

  GtkStyle *dstyle = ...;

  Pixmap_Factory pf(dstyle, GTK_WIDGET(gtkobject)->window);

and then you can :

  Gtk_Pixmap *p = pf.new_pixmap("foo.xpm");

-- 
					Guillaume.
					http://www.worldnet.fr/~glaurent



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