Skip to content

Commit

Permalink
file-chooser-button: Disable state restoration
Browse files Browse the repository at this point in the history
This done to avoid calling gtk_file_chooser_set_current_folder(), which
is used to restore state. For some reason, GTK displays an error dialog
if gtk_file_chooser_set_file() is called after
gtk_file_chooser_set_current_folder().

Fixes #903.
  • Loading branch information
gnome-mpv committed Oct 27, 2023
1 parent 3f143bb commit 6393be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/celluloid-file-chooser-button.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ celluloid_file_chooser_button_init(CelluloidFileChooserButton *self)
( _("Open File…"),
NULL,
GTK_FILE_CHOOSER_ACTION_OPEN,
TRUE );
FALSE );
self->label = gtk_label_new(_("(None)"));
self->file = NULL;
self->title = NULL;
Expand Down

0 comments on commit 6393be2

Please sign in to comment.