Skip to content

Commit adfe0c7

Browse files
fxriraveit65
authored andcommitted
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
1 parent c2fc002 commit adfe0c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/eom-preferences-dialog.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ eom_preferences_dialog_class_init (EomPreferencesDialogClass *klass)
145145
{
146146
GtkWidgetClass *widget_class = (GtkWidgetClass*) klass;
147147

148+
/* This should make sure the libpeas-gtk dependency isn't
149+
* dropped by aggressive linkers (#739618) */
150+
g_type_ensure (PEAS_GTK_TYPE_PLUGIN_MANAGER);
151+
148152
gtk_widget_class_set_template_from_resource (widget_class,
149153
"/org/mate/eom/ui/eom-preferences-dialog.ui");
150154
gtk_widget_class_bind_template_child_private (widget_class,

0 commit comments

Comments
 (0)