Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GTK4] FileDialog created with SWT.OPEN displays error if no FilterPath set #48

Closed
Tracked by #227
joel-majano opened this issue Apr 14, 2022 · 2 comments
Closed
Tracked by #227
Labels
Linux/GTK Happens on Linux

Comments

@joel-majano
Copy link
Contributor

joel-majano commented Apr 14, 2022

If a FileDialog is created with SWT.OPEN but setFilterPath is not used to set a path other than the default empty string, the error: "The folder contents could not be displayed" "Operation not supported" is shown.

This does not happen with FileDialog created with SWT.SAVE or if setFilterPath sets the path to something valid.

Tested using Snippet72 and commenting out all relevant lines that set filter related fields.

Tracked in #228

@akurtakov akurtakov added the Linux/GTK Happens on Linux label Apr 20, 2022
@joel-majano
Copy link
Contributor Author

This further only happens if a file name is not set using setFileName.

jasonhy-wang pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Jun 23, 2022
…or if no FilterPath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
jasonhy-wang pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Jun 23, 2022
…or if no FilterPath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
github-actions bot pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Jul 13, 2022
…or if no FilterPath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
jasonhy-wang pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Jul 26, 2022
…or if no FilterPathSet

Removed gtk_file_chooset_set_folder when no fileName is set, this call is no longer required in gtk4 when no fileName set

Signed-off-by: Jason Wang<[email protected]>
jasonhy-wang pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Jul 26, 2022
…or if no FilterPath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
akurtakov pushed a commit to jasonhy-wang/eclipse.platform.swt that referenced this issue Aug 2, 2022
…or if no FilterPath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
akurtakov pushed a commit that referenced this issue Aug 2, 2022
…ath set

+if no filename set defaults to location of file

The issue was caused by if no filename was set then it would try to open file "" as a default which creates an error. This is simply fixed by if no filename is set then set the filename to location of the file

Signed-off-by: Jason Wang <[email protected]>
@akurtakov
Copy link
Member

This one has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux/GTK Happens on Linux
Projects
None yet
Development

No branches or pull requests

2 participants