[gedit-plugins] Port from libpeasui to libpeas-gtk



commit 1f99a3a787f5ab6f872ad55d24072e69e4b93b4a
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Aug 29 14:33:50 2010 +0200

    Port from libpeasui to libpeas-gtk

 configure.ac                                 |    4 ++--
 plugins/drawspaces/gedit-drawspaces-plugin.c |   14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d52a783..03240a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,8 +66,8 @@ PKG_CHECK_MODULES(GEDIT, [
 	gio-2.0 >= 2.25.4
 	gtk+-3.0 >= 2.90.0
 	gtksourceview-3.0 >= 2.9.1
-	libpeas-1.0 >= 0.5.3
-	libpeasui-1.0 >= 0.5.3
+	libpeas-1.0 >= 0.5.5
+	libpeas-gtk-1.0 >= 0.5.5
 	gedit >= 2.31.5
 ])
 
diff --git a/plugins/drawspaces/gedit-drawspaces-plugin.c b/plugins/drawspaces/gedit-drawspaces-plugin.c
index 58694e1..a6ef128 100644
--- a/plugins/drawspaces/gedit-drawspaces-plugin.c
+++ b/plugins/drawspaces/gedit-drawspaces-plugin.c
@@ -29,7 +29,7 @@
 #include <gedit/gedit-window.h>
 #include <gedit/gedit-window-activatable.h>
 #include <gedit/gedit-utils.h>
-#include <libpeasui/peas-ui-configurable.h>
+#include <libpeas-gtk/peas-gtk-configurable.h>
 
 #define DRAWSPACES_SETTINGS_BASE   "org.gnome.gedit.plugins.drawspaces"
 #define SETTINGS_KEY_ENABLE        "enable"
@@ -43,7 +43,7 @@
 				GeditDrawspacesPluginPrivate))
 
 static void gedit_window_activatable_iface_init (GeditWindowActivatableInterface *iface);
-static void peas_ui_configurable_iface_init (PeasUIConfigurableInterface *iface);
+static void peas_gtk_configurable_iface_init (PeasGtkConfigurableInterface *iface);
 
 G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditDrawspacesPlugin,
 				gedit_drawspaces_plugin,
@@ -51,8 +51,8 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (GeditDrawspacesPlugin,
 				0,
 				G_IMPLEMENT_INTERFACE_DYNAMIC (GEDIT_TYPE_WINDOW_ACTIVATABLE,
 							       gedit_window_activatable_iface_init)
-				G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_UI_TYPE_CONFIGURABLE,
-							       peas_ui_configurable_iface_init))
+				G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_GTK_TYPE_CONFIGURABLE,
+							       peas_gtk_configurable_iface_init))
 
 struct _GeditDrawspacesPluginPrivate
 {
@@ -580,7 +580,7 @@ get_configuration_widget (GeditDrawspacesPlugin *plugin)
 }
 
 static GtkWidget *
-gedit_drawspaces_plugin_create_configure_widget (PeasUIConfigurable *configurable)
+gedit_drawspaces_plugin_create_configure_widget (PeasGtkConfigurable *configurable)
 {
 	DrawspacesConfigureWidget *widget;
 
@@ -609,7 +609,7 @@ gedit_drawspaces_plugin_class_finalize (GeditDrawspacesPluginClass *klass)
 }
 
 static void
-peas_ui_configurable_iface_init (PeasUIConfigurableInterface *iface)
+peas_gtk_configurable_iface_init (PeasGtkConfigurableInterface *iface)
 {
 	iface->create_configure_widget = gedit_drawspaces_plugin_create_configure_widget;
 }
@@ -630,7 +630,7 @@ peas_register_types (PeasObjectModule *module)
 						    GEDIT_TYPE_WINDOW_ACTIVATABLE,
 						    GEDIT_TYPE_DRAWSPACES_PLUGIN);
 	peas_object_module_register_extension_type (module,
-						    PEAS_UI_TYPE_CONFIGURABLE,
+						    PEAS_GTK_TYPE_CONFIGURABLE,
 						    GEDIT_TYPE_DRAWSPACES_PLUGIN);
 }
 



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