Re: [Maybe OT]: Sawfish 'strange' behaviours



On Fri, 2001-12-07 at 13:26, Fabio Rotondo wrote:
Hi,

  I am experiencing problems with SawFish WM and a GTK App I am writing:
if I create a window from an existing GTK window (for eg. by pressing a 
button
on my interface) the newly created window has exactly the same dimension of
the "parent" one.
And there's more: if I resize the new window (let's say I am making it 
bigger)
and then I close my app, when I start it again, the main window is as 
big as the
child window I closed before.
It seems that Sawfish 'remembers' windows sizes. How can I "force" the 
standard
windows size in my GTK app? I have tried gtk_window_default_size() but 
with no
results.

You need to set the wm type and class

Class probably wants to be the same for all the windows.
Where as type wants to be unique (for each type of window).

If your using glade these apear on the widget tab towards the bottom
(make sure you're selecting the window rather than something inside it).

Else I think that it's gtk_window_set_wmclass(window, type, class)

Thanks,

 Fabio


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 

rob




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