[gedit] Fix preferences dialog



commit fc85b88b64c49cf6a76dbe996d501c83ffbe1bf7
Author: Garrett Regier <garrettregier gmail com>
Date:   Thu May 29 11:46:11 2014 -0700

    Fix preferences dialog
    
    The linker didn't link libpeas-gtk because it wasn't being used.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730951
    Signed-off-by: Garrett Regier <garrettregier gmail com>

 gedit/gedit-preferences-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-preferences-dialog.c b/gedit/gedit-preferences-dialog.c
index 73e1cf4..be05462 100644
--- a/gedit/gedit-preferences-dialog.c
+++ b/gedit/gedit-preferences-dialog.c
@@ -30,6 +30,7 @@
 #include <glib/gi18n.h>
 #include <glib/gstdio.h>
 #include <gtksourceview/gtksource.h>
+#include <libpeas-gtk/peas-gtk.h>
 
 #include "gedit-preferences-dialog.h"
 #include "gedit-utils.h"
@@ -132,6 +133,9 @@ gedit_preferences_dialog_class_init (GeditPreferencesDialogClass *klass)
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
        GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
 
+       /* Otherwise libpeas-gtk might not be linked */
+       g_type_ensure (PEAS_GTK_TYPE_PLUGIN_MANAGER);
+
        object_class->dispose = gedit_preferences_dialog_dispose;
 
        /* Bind class to template */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]