[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: stupid questions (setting widget sizes)
- From: Sean Nichols <SeanNi Attachmate com>
- To: "'gtk-app-devel-list redhat com'" <gtk-app-devel-list redhat com>
- Subject: RE: stupid questions (setting widget sizes)
- Date: Wed, 30 Jun 1999 12:26:42 -0700
Actually, Michael, I suggest you read Havoc's response to this post (and
the thread that ensued).
He talks about using gnome-session to do this via session management.
It's not quite the window manager that's doing it (well... it's sorta both).
And he makes a couple of good points about why the session manager /should/
be doing that rather than each program implementing it on it's own. I've
read what I could on gnome-session, and I agree that in theory, it's the
"correct" way of doing things.
Having said that, I can't seem to get gnome-session to do things properly
(E! 0.15, GNOME 1.0.2/1.0.7/1.0.10), but I'll live with it until it /does/
work right :-)
Oh, and Havoc, I just want to echo Thomas Niederreiter's comment... you
are amazing! Congratulations on the book... if it's 1/4 as useful as you
have been here, I think I'll mosey on down to Chapters to pick meself up a
copy (assuming I can scrounge up the $$$ :-)
-----Original Message-----
From: Michael ROGERS [mailto:M.Rogers@cs.ucl.ac.uk]
Sent: Wednesday, June 30, 1999 12:13
To: gtk-app-devel-list@redhat.com
Subject: Re: stupid questions (setting widget sizes)
> 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
--
To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
"unsubscribe" as the Subject.
Mailing list concerns should be mailed to <listmaster@redhat.com>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]