RE: [gtk-list] how to attach a pixmap to a GtkWindow as the background
- From: "Xu, Jiang" <Jiang Xu echostar com>
- To: "'gtk-list redhat com'" <gtk-list redhat com>
- Subject: RE: [gtk-list] how to attach a pixmap to a GtkWindow as the background
- Date: Wed, 25 Aug 1999 13:00:59 -0600
I rewrite the question, so it should be clear:
I want to attach a pixmap to a GtkWindow as the background, there is
a function 'gdk_window_set_back_pixmap`
but this function 'gdk_window_set_back_pixmap` only supports
> GdkWindow, but my application is using GtkWindow which let me can add
> other widgets to the window.
>
> So I wonder how I can attach a pixmap to a GtkWindow as the background?
> Or, How to get the associate GdkWindow from a GtkWindow, so that I can
> use that function?
> Or, How to create a GtkWindow from a GdkWindow which is already get a
> pixmap background by using that function.
> Or, any other way?
>
In struct _GtkWidget, there is a parameter called GdkWindow *window.
But, if using 'windows1=gtk_window_new(..)' it won't set that parameter,
which means windows1->window=NULL, it does not
link to a GdkWindow, and same as button,table.....
> If anyone know, please teach me ASAP, it is very urgent!!!! because I
> must attach a pixmap to a GtkWindow as the background right now.
>
> Thanks very much!
>
>
> Previously, you (Jiang XU) wrote:
> > I try to attach a pixmap (declare as GdkPixmap *) as the background
> > picture of the top level window (or pop up window, or dialog),so that
> I
> > can put other widgets in the window without affecting the background
> > picture. But I don't know how to attach the pixmap as the property
> > (background) of the window, so need help!
> >
> > If anyone knows please teach ASAP!
> >
> > thanks very much
> >
> > John
>
> use 'gdk_window_set_back_pixmap(GdkWindow *window, GdkPixmap *pixmap,
> gint parent_relative)'
>
> Jay
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com <
> /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]