[eog] Update plugin engine code to work with libpeas-0.7



commit 9afc5483b615039a580e295fe08d7b8ec524759c
Author: Felix Riemann <friemann gnome org>
Date:   Sun Jan 2 20:24:34 2011 +0100

    Update plugin engine code to work with libpeas-0.7
    
    - PeasPluginEngine lost the "app-name" property
    - libpeasui became libpeas-gtk
    
    https://bugzilla.gnome.org/show_bug.cgi?id=626091

 configure.ac                 |    4 ++--
 src/eog-plugin-engine.c      |    1 -
 src/eog-preferences-dialog.c |    5 ++---
 3 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index be7e893..4528a00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,8 +104,8 @@ EOG_MODULES="gtk+-3.0 >= $GTK_REQUIRED \
              gnome-icon-theme >= $GNOME_ICON_THEME_REQUIRED \
              shared-mime-info >= $SHARED_MIME_INFO_REQUIRED \
              gsettings-desktop-schemas >= $DESKTOP_SCHEMAS_REQUIRED \
-             libpeas-1.0 >= 0.5.3 \
-             libpeasui-1.0 >= 0.5.3"
+             libpeas-1.0 >= 0.7.0 \
+             libpeas-gtk-1.0 >= 0.7.0"
 
 # ***************
 # ZLIB (required)
diff --git a/src/eog-plugin-engine.c b/src/eog-plugin-engine.c
index a8d083e..8a73f2b 100644
--- a/src/eog-plugin-engine.c
+++ b/src/eog-plugin-engine.c
@@ -110,7 +110,6 @@ eog_plugin_engine_new (void)
 	search_paths[4] = NULL;
 
 	engine = EOG_PLUGIN_ENGINE (g_object_new (EOG_TYPE_PLUGIN_ENGINE,
-						  "app-name", "Eog",
 						  /* "base-module-dir", modules_dir, */
 						  "search-paths", search_paths,
 						  NULL));
diff --git a/src/eog-preferences-dialog.c b/src/eog-preferences-dialog.c
index dfac8b9..260f29b 100644
--- a/src/eog-preferences-dialog.c
+++ b/src/eog-preferences-dialog.c
@@ -30,13 +30,12 @@
 #include "eog-scroll-view.h"
 #include "eog-util.h"
 #include "eog-config-keys.h"
-#include "eog-application.h"
 
 #include <glib.h>
 #include <glib/gi18n.h>
 #include <glib-object.h>
 #include <gtk/gtk.h>
-#include <libpeasui/peas-ui-plugin-manager.h>
+#include <libpeas-gtk/peas-gtk-plugin-manager.h>
 
 #define EOG_PREFERENCES_DIALOG_GET_PRIVATE(object) \
 	(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOG_TYPE_PREFERENCES_DIALOG, EogPreferencesDialogPrivate))
@@ -256,7 +255,7 @@ eog_preferences_dialog_constructor (GType type,
 	g_settings_bind (priv->fullscreen_settings, EOG_CONF_FULLSCREEN_SECONDS,
 			 seconds_spin, "value", G_SETTINGS_BIND_DEFAULT);
 
-        plugin_manager = peas_ui_plugin_manager_new (PEAS_ENGINE (EOG_APP->plugin_engine));
+        plugin_manager = peas_gtk_plugin_manager_new ();
 
         g_assert (plugin_manager != NULL);
 



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