Commit a56dee5d authored by Felix Riemann's avatar Felix Riemann

[postasa] Port to libpeas plugin API

Leaves out the configuration dialog option for now as it only displays
the login dialog which is shown anyway if needed.
parent fb4bab48
......@@ -25,15 +25,15 @@ libpostasa_la_LIBADD = $(EOG_LIBS) \
# Plugin Info
plugin_in_files = postasa.eog-plugin.desktop.in
plugin_in_files = postasa.plugin.desktop.in
UI_FILES = postasa-config.xml postasa-uploads.xml
ui_DATA = $(UI_FILES)
uidir = $(plugindir)/postasa
%.eog-plugin: %.eog-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(AM_V_GEN)$(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
%.plugin: %.plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(AM_V_GEN)$(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
plugin_DATA = $(plugin_in_files:.eog-plugin.desktop.in=.eog-plugin)
plugin_DATA = $(plugin_in_files:.plugin.desktop.in=.plugin)
EXTRA_DIST = $(plugin_in_files) $(UI_FILES)
......
This diff is collapsed.
......@@ -27,7 +27,8 @@
#include <glib.h>
#include <glib-object.h>
#include <eog/eog-plugin.h>
#include <libpeas/peas-extension-base.h>
#include <libpeas/peas-object-module.h>
G_BEGIN_DECLS
......@@ -51,7 +52,7 @@ typedef struct _EogPostasaPlugin EogPostasaPlugin;
struct _EogPostasaPlugin
{
EogPlugin parent_instance;
PeasExtensionBase parent_instance;
EogPostasaPluginPrivate *priv;
};
......@@ -62,7 +63,7 @@ typedef struct _EogPostasaPluginClass EogPostasaPluginClass;
struct _EogPostasaPluginClass
{
EogPluginClass parent_class;
PeasExtensionBaseClass parent_class;
};
/*
......@@ -71,7 +72,7 @@ struct _EogPostasaPluginClass
GType eog_postasa_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
G_MODULE_EXPORT GType register_eog_plugin (GTypeModule *module);
G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS
......
[Eog Plugin]
[Plugin]
Module=postasa
IAge=2
_Name=PicasaWeb Uploader
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment