From adfe0c723d8bc01463781266c3ad587f32e8cd93 Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Wed, 19 Nov 2014 19:20:03 +0100 Subject: Make sure the libpeas-gtk dependency isn't optimized away Aggressive linkers could drop the dependency which would cause problems using during runtime. Based on a patch for the same problem for gedit by Garret Regier. https://bugzilla.gnome.org/show_bug.cgi?id=739618 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/46c38b7 --- src/eom-preferences-dialog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/eom-preferences-dialog.c') diff --git a/src/eom-preferences-dialog.c b/src/eom-preferences-dialog.c index bfc7e9f..3236596 100644 --- a/src/eom-preferences-dialog.c +++ b/src/eom-preferences-dialog.c @@ -145,6 +145,10 @@ eom_preferences_dialog_class_init (EomPreferencesDialogClass *klass) { GtkWidgetClass *widget_class = (GtkWidgetClass*) klass; + /* This should make sure the libpeas-gtk dependency isn't + * dropped by aggressive linkers (#739618) */ + g_type_ensure (PEAS_GTK_TYPE_PLUGIN_MANAGER); + gtk_widget_class_set_template_from_resource (widget_class, "/org/mate/eom/ui/eom-preferences-dialog.ui"); gtk_widget_class_bind_template_child_private (widget_class, -- cgit v1.2.1