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 408210 - Incorrect signals emitted when gtk_file_chooser_set_current_folder() called?
Incorrect signals emitted when gtk_file_chooser_set_current_folder() called?
Status: RESOLVED DUPLICATE of bug 327243
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2007-02-15 12:36 UTC by Andrew Cowie
Modified: 2007-09-26 02:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Program to test this bug (708 bytes, application/octet-stream)
2007-02-15 14:39 UTC, Vreixo Formoso
Details

Description Andrew Cowie 2007-02-15 12:36:39 UTC
If you instantiate a GtkFileChooserButton, connect to the "selection-changed" signal, then call gtk_file_chooser_set_current_folder() on it with some new directory path, a strange thing occurs [when the main loop fires up].

You get *two* hits on "selection-changed" and *zero* hits on "current-folder-changed". I have a hard time understanding why that would be, especially since no file has been selected, and the folder most certainly changed.

I realize that all the GtkFileChooser signals are marked as "somewhat internal" and "you shouldn're really have to touch these", but since GtkFileChooseButton _isn't_ a Dialog, you can't be 'running' it and waiting for the result code, can you?

In all other respects, exposing "selection-changed" has been fine, so I'm hoping that there's just some horrible mixup somewhere.

[I first noticed this when we did the language binding of FileChooser and friends in java-gnome 4.0.2. Vreixo Formoso Lopes, the person who actually contributed our code for FileChooser's setCurrentFolder(), created a C test case that duplicates the situation. I've asked him to attach his code to this report]

AfC
Comment 1 Vreixo Formoso 2007-02-15 14:39:46 UTC
Created attachment 82608 [details]
Program to test this bug
Comment 2 Vreixo Formoso 2007-02-15 14:43:47 UTC
Comment on attachment 82608 [details]
Program to test this bug

A little test program that exposes this situation
Comment 3 Andrew Cowie 2007-09-26 02:29:53 UTC

*** This bug has been marked as a duplicate of 327243 ***