Fix for issue #209: Gtk-CRITICAL messages from native file chooser

Thanks to K.R. for the fix.
This commit is contained in:
ManoloFLTK 2021-04-04 19:26:38 +02:00
parent 30725faf0a
commit f8d1b83a0e
1 changed files with 1 additions and 1 deletions

View File

@ -739,8 +739,8 @@ int Fl_GTK_Native_File_Chooser_Driver::fl_gtk_chooser_wrapper()
fl_g_signal_connect_data((GtkFileChooser *)gtkw_ptr, "update-preview", G_CALLBACK(update_preview_cb), preview,
NULL, (GConnectFlags)0);
GtkWidget *preview_button = fl_gtk_check_button_new_with_label(Fl_File_Chooser::preview_label);
fl_g_signal_connect_data(preview_button, "toggled", G_CALLBACK(preview_cb), gtkw_ptr, NULL, (GConnectFlags) 0);
fl_gtk_toggle_button_set_active((GtkToggleButton *)preview_button, want_preview);
fl_g_signal_connect_data(preview_button, "toggled", G_CALLBACK(preview_cb), gtkw_ptr, NULL, (GConnectFlags) 0);
fl_gtk_table_attach_defaults(table, preview_button, 0, 1, 0, 1);
plus_button = fl_gtk_button_new_with_label("<--->");