Skip to content
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.

origin commit:
  • Loading branch information
fxri authored and raveit65 committed Aug 13, 2018
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) */

gtk_widget_class_set_template_from_resource (widget_class,
gtk_widget_class_bind_template_child_private (widget_class,

0 comments on commit adfe0c7

Please sign in to comment.