Ensure GtkFileChooserCell's type

Otherwise anything that dlopen()'s GTK will have a bad day.

See: https://discourse.gnome.org/t/strange-filechooserdialog-behaviour-in-gtk-4-10/14435
This commit is contained in:
Emmanuele Bassi 2023-03-22 10:23:28 +00:00
parent bb88f69b20
commit b2e8158c7a

View File

@ -34,6 +34,7 @@
#include "gtkfilechooserprivate.h"
#include "deprecated/gtkfilechooserdialog.h"
#include "deprecated/gtkfilechooser.h"
#include "gtkfilechoosercellprivate.h"
#include "gtkfilechooserentry.h"
#include "gtkfilechooserutils.h"
#include "gtkfilesystemmodelprivate.h"
@ -7304,6 +7305,7 @@ gtk_file_chooser_widget_init (GtkFileChooserWidget *impl)
g_type_ensure (GTK_TYPE_PATH_BAR);
g_type_ensure (GTK_TYPE_PLACES_VIEW);
g_type_ensure (GTK_TYPE_PLACES_SIDEBAR);
g_type_ensure (GTK_TYPE_FILE_CHOOSER_CELL);
g_type_ensure (GTK_TYPE_FILE_CHOOSER_ERROR_STACK);
impl->select_multiple = FALSE;