diff options
| author | Simon Krauter <trustablecode@gmail.com> | 2019-10-23 10:00:21 +0200 |
|---|---|---|
| committer | Simon Krauter <trustablecode@gmail.com> | 2019-10-23 10:00:21 +0200 |
| commit | fe03a8813b905c7b13d8d26b8f1f51fa36a8864d (patch) | |
| tree | e68602893ad7019b5470891e3b4520a3c11ee36c | |
| parent | eec3c9295e61c20c46a7122b361d2d72528cb703 (diff) | |
| parent | 9f82654b1ff231b65cf6a9a22c92d71efb9276f3 (diff) | |
| download | NiGui-fe03a8813b905c7b13d8d26b8f1f51fa36a8864d.tar.gz NiGui-fe03a8813b905c7b13d8d26b8f1f51fa36a8864d.zip | |
Merge branch 'master' of https://github.com/trustable-code/NiGui
| -rwxr-xr-x | src/nigui/private/gtk3/platform_impl.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nigui/private/gtk3/platform_impl.nim b/src/nigui/private/gtk3/platform_impl.nim index c31f405..b4a0f8b 100755 --- a/src/nigui/private/gtk3/platform_impl.nim +++ b/src/nigui/private/gtk3/platform_impl.nim @@ -400,7 +400,7 @@ proc alert(window: Window, message: string, title = "Message") = method run*(dialog: OpenFileDialog) = dialog.files = @[] - var chooser = gtk_file_chooser_dialog_new(nil, nil, GTK_FILE_CHOOSER_ACTION_OPEN, "Cancel", GTK_RESPONSE_CANCEL, "Open", GTK_RESPONSE_ACCEPT, nil) + var chooser = gtk_file_chooser_dialog_new(dialog.title, nil, GTK_FILE_CHOOSER_ACTION_OPEN, "Cancel", GTK_RESPONSE_CANCEL, "Open", GTK_RESPONSE_ACCEPT, nil) # Issue: When a title is passed, the dialog is shown without a title discard gtk_file_chooser_set_current_folder(chooser, dialog.directory) gtk_file_chooser_set_select_multiple(chooser, dialog.multiple) @@ -413,7 +413,7 @@ method run*(dialog: OpenFileDialog) = gtk_widget_destroy(chooser) method run(dialog: SaveFileDialog) = - var chooser = gtk_file_chooser_dialog_new(nil, nil, GTK_FILE_CHOOSER_ACTION_SAVE, "Cancel", GTK_RESPONSE_CANCEL, "Save", GTK_RESPONSE_ACCEPT, nil) + var chooser = gtk_file_chooser_dialog_new(dialog.title, nil, GTK_FILE_CHOOSER_ACTION_SAVE, "Cancel", GTK_RESPONSE_CANCEL, "Save", GTK_RESPONSE_ACCEPT, nil) # Issue: When a title is passed, the dialog is shown without a title let res = gtk_dialog_run(chooser) discard gtk_file_chooser_set_current_folder(chooser, dialog.directory) |
