From: Richard Purdie <rpurdie@rpsys.net>
To: Paul Sokolovsky <pmiscml@gmail.com>
Cc: openembedded-devel@openembedded.org,
Tomas Frydrych <tf@o-hand.com>,
angstrom-distro-devel@linuxtogo.org
Subject: Re: [RFC] Smallscreen mod for GtkFileChooser
Date: Thu, 10 Jan 2008 10:30:08 +0000 [thread overview]
Message-ID: <1199961008.4666.17.camel@localhost.localdomain> (raw)
In-Reply-To: <456018236.20080110111917@gmail.com>
Hi,
The reply below is from Tomas who wrote that patch and who isn't
subscribed here but is cc'd.
Richard
On Thu, 2008-01-10 at 11:19 +0200, Paul Sokolovsky wrote:
> So, what we see is that the design of the dialog is changed,
> simplifying it to just a file list, parent dir button, and buttons for
> mounted filesystems
This UI was designed for certain purposes; if someone can come with a
better UI for a small screen, by all means, but any additional element
added to the dialog is significantly impacting usuability due to the
visible file list shrinking (and I would be curious to know what is
missing there).
> (same icons appeared in Angstrom image).
If the icons are all the same, it is because the theme does not provide
icons for the particular media types; not the filechooser fault.
> There're still "desktop" gaps and dialog sizing (3/4 of screen width,
> no resize with matchbox).
The internal gaps of the filechooser were tweaked for a QVGA screen
(the gaps around the outside of the filechooser and the buttons are
consistent for all Gtk dialogs and would need to be patched elsewhere).
Overall, the dialog is as big as Gtk thinks it needs be; in that
particular screen shot it would benefit from being both wider (and
perhaps taller), but this is less of an issue on a landscape screen.
> Looking at the patches, there's filechooser-respect-style.patch,
> whose name and quick scan suggests that at least gaps might be
> configurable by theme, but we have what we have and OE's "standard"
> themes like Clearlooks and GPE Default. Also, I'm not gtk+ styling
> expert, but for me it looks like it just does different arithmetic
> with the numbers hardcoded as they were before ;-(.
The respect-style patch does two things: (a) it removes the set_style()
virtual function that was preventing styling via theme; (b) it adjust
some of the geometry to reduce space waste (BTW, this patch is no longer
present in 2.12.x patch set, the geometry might need to be tweaked a
bit).
> Main patch is filechooser-default.patch, and its size (~200k for
> gtk+ 2.10, ~400k for 2.12) and content suggests that it was an
> implementation for older gtk+, or completely different code, so it
> removes large content of pristine gtk+'s file and replaces it with
> something else.
Yep, that was initially a patch for 2.6, ported up to 2.10 (the size of
the patch is due to the fact that I have removed as much of the dead
code as possible). For 2.12 I have just replaced the
gtkfilechooserdefault.c file with the patched one from 2.10, as the
gtkfilechooserdefault is increasing developing in ways that are not
really beneficial for the embedded use, and a complete replacement is
needed.
(The patches also add functionality, notably the root-folder property
that makes it possible to specify that the user should not be able to
descent below certain location in the fs tree.)
> *1) To make Angstrom work well now, and in sustainable manner (that includes
> applying as little and as short patches as possible, which would do as
> little as possible changes to the upstream, if the upstream can be made
> well enough usable with such small changes.
In this case, this is a false premise; the default gtk filechooser is
unsuitable for embedded HW, and an ever increasing portion of its code
is related to features that just cannot be easily used on a small screen
(most of it really: bookmarks, recent files, the wretched navigation
bar). IMO, a small patch is not a viable long-term solution. It would be
ideal if an alternate implementation for GtkFileChooserDefault could be
pushed into Gtk and could be enabled via a configure option (something
like --enable-embedded-tweaks), but I gathered that this is unlikely to
happen.
Tomas
next prev parent reply other threads:[~2008-01-10 10:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-06 21:56 [RFC] Smallscreen mod for GtkFileChooser Paul Sokolovsky
2008-01-07 16:51 ` Florian Boor
2008-01-08 14:34 ` Paul Sokolovsky
2008-01-08 16:49 ` Richard Purdie
2008-01-10 9:19 ` Paul Sokolovsky
2008-01-10 10:30 ` Richard Purdie [this message]
2008-01-10 16:41 ` Paul Sokolovsky
2008-01-10 10:47 ` [Angstrom-devel] " Florian Boor
2008-01-10 12:31 ` Joaquim Duran
2008-01-10 12:28 ` Florian Boor
2008-01-10 14:35 ` Joaquim Duran
2008-01-11 8:16 ` problem when i compile image ohviey1
2008-01-11 8:50 ` pHilipp Zabel
2008-01-10 16:51 ` [Angstrom-devel] [RFC] Smallscreen mod for GtkFileChooser Paul Sokolovsky
2008-01-10 17:11 ` Florian Boor
2008-01-10 17:30 ` Paul Sokolovsky
2008-01-10 11:08 ` Michael 'Mickey' Lauer
2008-01-11 22:45 ` [Angstrom-devel] " Paul Sokolovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1199961008.4666.17.camel@localhost.localdomain \
--to=rpurdie@rpsys.net \
--cc=angstrom-distro-devel@linuxtogo.org \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.org \
--cc=pmiscml@gmail.com \
--cc=tf@o-hand.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.