Ensure GtkFileChooserCell's type
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 22 Mar 2023 10:23:28 +0000 (10:23 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 22 Mar 2023 10:29:57 +0000 (10:29 +0000)
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

gtk/gtkfilechooserwidget.c

index 24b92cc32eec9b155abc0971ce91e0f827acaeff..ace31f4bd890e2ab4498cdcb097ca22df1733693 100644 (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;