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



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/




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