After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340478 - fixes for GnomeIconEntry
fixes for GnomeIconEntry
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: general
CVS HEAD
Other Linux
: Normal normal
: future
Assigned To: libgnomeui maintainers
libgnomeui maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-03 00:07 UTC by Travis Watkins
Modified: 2006-06-08 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.37 KB, patch)
2006-05-03 00:08 UTC, Travis Watkins
none Details | Review
new (2.06 KB, patch)
2006-05-03 04:18 UTC, Travis Watkins
none Details | Review
try #3 (2.05 KB, patch)
2006-05-04 12:21 UTC, Travis Watkins
accepted-commit_now Details | Review

Description Travis Watkins 2006-05-03 00:07:51 UTC
The following patch provides some much needed fixes for GnomeIconEntry.

  * update icon list when a new dir is selected
  * disable preview area in file chooser, not needed as we're selecting a directory
  * filter out non-directory items in the file chooser

This third fix doesn't seem to work though. No errors, it just doesn't seem to apply the filter. When I put the filter in the update_preview function it would filter correctly but only once you've selected something in the list. I could use some help making it work right.
Comment 1 Travis Watkins 2006-05-03 00:08:35 UTC
Created attachment 64710 [details] [review]
patch
Comment 2 Travis Watkins 2006-05-03 04:18:35 UTC
Created attachment 64719 [details] [review]
new

This patch fixes the problem with the filter, now does everything the summary says.
Comment 3 Travis Watkins 2006-05-04 12:21:17 UTC
Created attachment 64803 [details] [review]
try #3

The old patch would occasionally fail to apply the filter or have a flash of unfiltered data, this one doesn't seem to have that problem.
Comment 4 Travis Watkins 2006-05-05 14:50:58 UTC
In HEAD:

2006-05-05  Travis Watkins  <alleykat@gmail.com>

        * libgnomeui/gnome-icon-entry.c: Autoupdate icon list on dir change
        and remove preview widget.
        * libgnomeui/gnome-file-entry.c: Filter out regular files when using
        with directory-entry.
        Closes bug #340478.
Comment 5 Jens Elkner 2006-06-08 12:35:05 UTC
Well, try #3 works, but: I think it is very convinient, that if a user has to choose (which is almost equivalent with browse) a directory, it is helpful to see its content. So it is ok and appreciated to show all files, but gray them out aka disable them for selection.

The main problem is, that the dialog does not clearly states, what it expects from the user. A title like "... : Choose a folder" or "...: Choose a file" or "...: Choose files" would be (I guess) a quite simple thing to do with a very valueable result ...

And last but not least, the problem, which has been resolved by the patch is, that the dialog should reflect the users choice immediately...

Please have a look at bug #344164 - wrt. my findings that would be the best aka from a usual (non-technical) user expected variant...