Re: Deprecations for 3.x

On Wed, May 12, 2010 at 4:24 PM, Shaun McCance <shaunm gnome org> wrote:
On Wed, 2010-05-12 at 09:29 +0200, Cody Russell wrote:
> 2/ Corner resize grips.  I want to add support for this directly to
> GtkWindow anyway.
Is anybody actively working on this? Are there ways of doing this that
don't a) require vertical padding a'la GtkStatusBar, or b) unilaterally
cover up whatever is in the bottom right corner?

A lot of document-viewing applications have a GtkScrolledWindow that
hit the bottom right. If both the vertical and horizontal scrollbars
are visible, there's some really nice dead space there.

Yeah, I've got some code for this.  I've got some I was working on as part of client-side-decorations, and I've also got some that's independent of that branch.  I'm doing some merging and cleaning up of csd code, I'll get some new stuff pushed up into git soon.  I'm in Belgium right now, but I'm planning to do this ASAP when I get home next week.

For most Gnome and GTK apps, developers are encouraged to use a certain amount of padding, so the grips don't get in the way.  But as you point out, scrolled windows are an exception to that and usually go straight up to the window border. My corner-grip branch (without csd) I think does something kind of ugly, and the scrollbar checks the toplevel GtkWindow to find out if it's got a corner resize grip and positions/sizes itself accordingly.  It feels slightly hackish, but it looks and behaves find imo.  There may be some other situations where something similar needs to be done though.

But yeah, if an app fails to set some padding and has, for example, a text editor widget then the corner resize grip would draw over it.

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