diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-06-15 17:10:52 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-06-16 18:18:59 +0100 |
commit | 7bf399f1365f8e9f76edb08007b10a9c756f650b (patch) | |
tree | ab736fed739b8f8ace84ae9b52e294cfe686d809 /src/plugins/tracker/totem-tracker.c | |
parent | dc894da891c37c30b0acb648da9d49e2bc9c6d61 (diff) | |
download | totem-7bf399f1365f8e9f76edb08007b10a9c756f650b.tar.gz |
Port to libpeas for plugin handling
https://bugzilla.gnome.org/show_bug.cgi?id=604830
Diffstat (limited to 'src/plugins/tracker/totem-tracker.c')
-rw-r--r-- | src/plugins/tracker/totem-tracker.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/tracker/totem-tracker.c b/src/plugins/tracker/totem-tracker.c index 70d545d07..2250e4796 100644 --- a/src/plugins/tracker/totem-tracker.c +++ b/src/plugins/tracker/totem-tracker.c @@ -60,7 +60,7 @@ typedef struct G_MODULE_EXPORT GType register_totem_plugin (GTypeModule *module); GType totem_tracker_plugin_get_type (void) G_GNUC_CONST; -static gboolean impl_activate (TotemPlugin *plugin, TotemObject *totem, GError **error); +static void impl_activate (TotemPlugin *plugin, TotemObject *totem); static void impl_deactivate (TotemPlugin *plugin, TotemObject *totem); TOTEM_PLUGIN_REGISTER (TotemTrackerPlugin, totem_tracker_plugin) @@ -68,10 +68,10 @@ TOTEM_PLUGIN_REGISTER (TotemTrackerPlugin, totem_tracker_plugin) static void totem_tracker_plugin_class_init (TotemTrackerPluginClass *klass) { - TotemPluginClass *plugin_class = TOTEM_PLUGIN_CLASS (klass); + PeasPluginClass *plugin_class = PEAS_PLUGIN_CLASS (klass); - plugin_class->activate = impl_activate; - plugin_class->deactivate = impl_deactivate; + plugin_class->activate = (PeasFunc) impl_activate; + plugin_class->deactivate = (PeasFunc) impl_deactivate; } static void @@ -79,18 +79,15 @@ totem_tracker_plugin_init (TotemTrackerPlugin *plugin) { } -static gboolean +static void impl_activate (TotemPlugin *plugin, - TotemObject *totem, - GError **error) + TotemObject *totem) { GtkWidget *widget; widget = totem_tracker_widget_new (totem); gtk_widget_show (widget); totem_add_sidebar_page (totem, "tracker", _("Local Search"), widget); - - return TRUE; } static void |