[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: stupid questions (setting widget sizes)
- From: Michael ROGERS <M Rogers cs ucl ac uk>
- To: gtk-app-devel-list redhat com
- Subject: Re: stupid questions (setting widget sizes)
- Date: Wed, 30 Jun 1999 20:12:47 +0100
> Actually, what I'd really like to do, is make my apps "intelligent", in
>that they remember what size & position they were when last shut down, and
>then they automagically come back in that config next time you open them.
>
> Using the configure_event, writing to a .rc file, then on startup,
>reading from the .rc file, and gtk_widget_set_usize() /
>gtk_widget_set_uposition()-ing the thing back into place sounds like it
>would do the trick.
>
> And since the user (presumably) already has the window in a place that
>they like it (before they close the window), the usize/uposition-ing of it
>shouldn't cause a major problem, in regards to that --geometry bit... even
>if I don't know the "right" place to put it, the user should...
I agree.
> Or is there already a built-in way of doing this in Gtk?
>
> It's just one of my pet peeves, windows that come up in the same bloody
>place, with the same flipping size (usually wrong) each time, no matter what
>you do :-) ... I like to try to leave out that particular misfeature in my
>apps...
I've brought this up before, and I was told that it's up to the window
manager to remember the size and position of windows. This seems wrong to
me, but I suppose it stops the code being duplicated in every application. :|
I'm going to try to implement this in the wm I'm (very slowly) writing, so
you can wait for that if you can't bring yourself to use Enlightenment. ;)
Michael Rogers
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]