Re: [gtk-list] Re: gtk--: Problem with Gtk_Pixmap!
- From: Guillaume Laurent <glaurent worldnet fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: gtk--: Problem with Gtk_Pixmap!
- Date: 07 Mar 1998 18:47:58 +0100
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]