Skip to content
Permalink
Browse files

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
  • Loading branch information...
Felix Riemann authored and raveit65 committed Nov 19, 2014
1 parent c2fc002 commit adfe0c723d8bc01463781266c3ad587f32e8cd93
Showing with 4 additions and 0 deletions.
  1. +4 −0 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,

0 comments on commit adfe0c7

Please sign in to comment.
You can’t perform that action at this time.