Re: Render an image as background on Gtk::VBox

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

 



Hello,

no - there is no direct way. VBox is one of the many
windowless widgets in gtk - and having them is one of the
good ideas in the class hierarchy.

Thus you'd have to go the standard way to solve problems
in gtk (for instance when having varying heights in a Gtk::HBox): 
Wrap a widget with another. You cannot work fluently with gtk 
without getting used to that without any anger. Here the usual 
way is probably to add the VBox to an EventBox 
(with keep_above = False, what is the default). 
Note, that even Gtk::Frame is windowless.

The second problem then is to produce a Pixmap from a file.
Imho these pixmaps are outdated relics of X11 (respective
the X11-abstraction Gdk) - images on the XServer to save memory 
and footprint on the clients. And - when i have got it right - 
the gtk team is working on client-side pixmaps. Unfortunately there are
no converting functions between pixbuf and pixmap - imho those were much
more important. On X11 and Windows

gtk.gdk.pixmap_create_from_xpm() is working 

(that means on Windows: Accepts the .bmp-format).

The better way to provide a pixmap as the background is most
probably that via a rc-file - that will certainly always be more
independent of any concrete implementations.

Good luck, Joost
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux