From: Emmanuele Bassi Date: Wed, 22 Mar 2023 10:23:28 +0000 (+0000) Subject: Ensure GtkFileChooserCell's type X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~517^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b2e8158c7a33e76c783fddb3d4f12c34f80b7646;p=gtk4.git 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 --- diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 24b92cc32e..ace31f4bd8 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -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;