Skip to content

Conversation

@akurtakov
Copy link
Member

The FileChooser has been marked as deprecated with GTK 4.10 with the FileDialog being its replacement. Using this new API poses a challenge, as it requires the usage of the AsyncReadyCallback mechanism in order to respond to the closure of the dialog.

Once the dialog has been opened via gtk_file_dialog_select_folder(), it is necessary to call gtk_file_dialog_select_folder_finish() from within the callback method. This method also returns the selected folder, which has to be cached until after the dialog has been closed.

Following native methods have been added to GTK4:

  • gtk_file_dialog_new
  • gtk_file_dialog_select_folder
  • gtk_file_dialog_select_folder_finish
  • gtk_file_dialog_set_initial_folder

The FileChooser has been marked as deprecated with GTK 4.10 with the
FileDialog being its replacement. Using this new API poses a challenge,
as it requires the usage of the AsyncReadyCallback mechanism in order to
respond to the closure of the dialog.

Once the dialog has been opened via gtk_file_dialog_select_folder(), it
is necessary to call gtk_file_dialog_select_folder_finish() from within
the callback method. This method also returns the selected folder, which
has to be cached until after the dialog has been closed.

Following native methods have been added to GTK4:
- gtk_file_dialog_new
- gtk_file_dialog_select_folder
- gtk_file_dialog_select_folder_finish
- gtk_file_dialog_set_initial_folder
@github-actions
Copy link
Contributor

Test Results

   485 files   - 1     485 suites   - 1   10m 1s ⏱️ + 2m 37s
 4 158 tests ±0   4 144 ✅  - 6   8 💤 ±0  6 ❌ +6 
16 386 runs  ±0  16 288 ✅  - 6  92 💤 ±0  6 ❌ +6 

For more details on these failures, see this check.

Results for commit 12bcd73. ± Comparison against base commit ea94501.

@akurtakov akurtakov merged commit 2e61b4b into eclipse-platform:master Sep 17, 2024
@akurtakov akurtakov deleted the pr-1421 branch September 17, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants