Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
fxri authored and raveit65 committed Aug 13, 2018
1 parent c2fc002 commit adfe0c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eom-preferences-dialog.c
Expand Up @@ -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,
Expand Down

0 comments on commit adfe0c7

Please sign in to comment.