summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2014-11-19 19:20:03 +0100
committerraveit65 <[email protected]>2018-08-13 19:08:02 +0200
commitadfe0c723d8bc01463781266c3ad587f32e8cd93 (patch)
tree1865e01da3eab6816768a3c1bed4c39604adcf6a
parentc2fc00295668a545f2f69d281e100cafd88c2098 (diff)
downloadeom-adfe0c723d8bc01463781266c3ad587f32e8cd93.tar.bz2
eom-adfe0c723d8bc01463781266c3ad587f32e8cd93.tar.xz
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
-rw-r--r--src/eom-preferences-dialog.c4
1 files changed, 4 insertions, 0 deletions
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,