[9770] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: please heeeeeeeelpp: gtk_window_position (.., GTK_WIN_POS_CENTER);

daemon@ATHENA.MIT.EDU (Adam Kopacz)
Mon Nov 2 15:53:58 1998

From: Adam Kopacz <adam.k@idnet.de>
To: gtk-list@redhat.com
Cc: devious@verinet.com
In-Reply-To: <ybeaf2aj9eu.fsf@fresnel.labs.redhat.com>
Date: Mon, 2 Nov 1998 21:54:10 +0100
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hi Owen Taylor,

> Well if you use a GtkWindow GTK+ can take care of getting things right
> for you.

we use only gdk in qiv..
 
> But, in this case, I believe you need to set the window manager hints
> to indicate that the window manager should obey the requested position
> - you would do this by calling gdk_window_set_hints().

and for what is the atribute_mask in:
win=gdk_window_new(NULL,&attr,ATTRIBUTES_MASK); ??
i already set there:
#define ATTRIBUTES_MASK (GDK_WA_X | GDK_WA_Y) 
but it is ignored :(

the same with your set_hits :-( =>
#define WINDOW_FLAGS (GDK_HINT_POS | GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE)

gdk_window_set_hints(win, (screen_x - org_w) / 2, (screen_y - org_h) / 2,
                     org_w, org_h, org_w, org_h, WINDOW_FLAGS );   
gdk_window_show(win); 

the set_hits function has no effects (fvwm2) :-(

gdk/gtk is an older cvs 1.1.2..

-- 
Adam Kopacz - kLoGraFX 
Kieselgrund 39 | D-68239 Mannheim | Phone/Fax: +49 621 4816775 
eMail: Adam.K@klografx.de | web: http://www.klografx.de/


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post