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 89689 - GnomeFileEntry doesn't work properly if packed in a modal window
GnomeFileEntry doesn't work properly if packed in a modal window
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: general
2.2.x
Other Linux
: High normal
: ---
Assigned To: libgnomeui maintainers
libgnomeui maintainers
Depends on:
Blocks:
 
 
Reported: 2002-08-02 11:08 UTC by Christophe Fergeau
Modified: 2007-01-10 11:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
makes the file selector modal if the file entry is packed in a modal window (1.97 KB, patch)
2002-08-02 11:18 UTC, Christophe Fergeau
none Details | Review
updated patch (1.18 KB, patch)
2005-07-01 15:14 UTC, Kjartan Maraas
none Details | Review

Description Christophe Fergeau 2002-08-02 11:08:57 UTC
If a GnomeFileEntry is packed in a modal window, when the user click on the
browse button, the file selector which appears is unresponsive since it's
not modal, the user has to kill the app to exit.
This issue appears in several control-center capplets (I noticed it in
theme and sound capplets), that's why I marked it as major.
Steps to reproduce in the theme capplet:
* launch gnome-theme-properties
* click install new theme
* click browse
* the app freezes

The attached patch tests if the entry is in a modal window, and creates a
modal file selector if it is (patch to come in a few minutes, it still
needs some tests)
Comment 1 Christophe Fergeau 2002-08-02 11:12:45 UTC
Pushing priority since it's really easy to reproduce,and makes GNOME
looks unpolished.
Comment 2 Christophe Fergeau 2002-08-02 11:18:23 UTC
Created attachment 10216 [details] [review]
makes the file selector modal if the file entry is packed in a modal window
Comment 3 Luis Villa 2002-08-03 16:55:06 UTC
Is there some reason why the correct fix isn't at the application
level? (all the control-center capplets are now fixed, for example.)
Comment 4 Christophe Fergeau 2002-08-03 17:04:57 UTC
They weren't last time I updated, but if they are now, that's ok
But I think that's a little broken to let libgnomeui create a non
modal file selector when the file entry is modal since we know that
will freeze the application, and it's easy to fix at the libgnomeui
level. Not fixing it is a little like saying "the user of the library
obviously knows that it should inform libgnomeui that its file entry
is in a modal window before trying to use it". Since I don't think
it's clearly stated in the documentation, and that's not really
obvious what you have done wrong when you try to use a file entry and
your app freeze, I think libgnomeui should have this patch and force
the modality when necessary
Comment 5 Christophe Fergeau 2002-08-03 17:28:13 UTC
The bugs in control center capplets are fixed, so I lower the priority
and importance of the bug. But I still think it's more appropriate to
put that in libgnomeui rather than have a workaround in each modal app
using a file entry.
Comment 6 Kjartan Maraas 2003-05-01 13:06:42 UTC
Is this still relevant?
Comment 7 Kjartan Maraas 2004-01-18 17:51:14 UTC
Does the new file selector change this in any way?
Comment 8 Luis Villa 2004-02-22 00:16:36 UTC
Federico? Is this still relevant?
Comment 9 James Cape 2004-05-10 04:40:59 UTC
This problem still occurs, even with the new file-chooser.
Comment 10 Kjartan Maraas 2005-07-01 15:12:56 UTC
The patch doesn't apply any longer. I'm uploading an updated patch for review.
Christoph, does this look like it does the same thing that was intended?
Comment 11 Kjartan Maraas 2005-07-01 15:14:22 UTC
Created attachment 48506 [details] [review]
updated patch
Comment 12 Kjartan Maraas 2007-01-10 11:38:10 UTC
Commited.