Re: set background image in GtkWindow



В Срд, 03/01/2007 в 14:11 +0100, Jan Gehring пишет:
> Hello,
> 
> i've searched google for a solution for my problem, but nothing i
> found there worked...
> 
> I want to add a background image to my GtkWindow.
> 
> Can somebody tell me how this works?
> 
> Thank you
> 
> Jan

You can use gdk_window_set_back_pixmap function to set pixmap of
GdkWindow

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-set-back-pixmap

GdkWindow for some widgets are accessible after widget is realized with
widget->window.

But basically it won't help you. GtkWindow is just a container, it's
background aren't drawn usually. So you have to set the background for
every widget that has GdkWindow in your GtkWindow.

I suppose it's better not to change background at all. Users like their
gtk theme and the look of the widgets, there is no reason to disturb
them.





Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=



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