diff options
author | Bastien Nocera <hadess@hadess.net> | 2010-08-06 16:39:51 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2010-08-06 16:39:51 +0100 |
commit | 3560fbf5541902f6343dbdf237b83bb19f161ec1 (patch) | |
tree | cea47bc2e483454258fef9395c5ee7232379943c /src/plugins/properties | |
parent | 3f013e69936a13287a42339f7c1afbd2499c7af9 (diff) | |
download | totem-3560fbf5541902f6343dbdf237b83bb19f161ec1.tar.gz |
Port all the C plugins to libpeas 0.5.4
Diffstat (limited to 'src/plugins/properties')
-rw-r--r-- | src/plugins/properties/totem-movie-properties.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/plugins/properties/totem-movie-properties.c b/src/plugins/properties/totem-movie-properties.c index ed678a458..334b39017 100644 --- a/src/plugins/properties/totem-movie-properties.c +++ b/src/plugins/properties/totem-movie-properties.c @@ -69,6 +69,12 @@ TOTEM_PLUGIN_REGISTER(TOTEM_TYPE_MOVIE_PROPERTIES_PLUGIN, static void totem_movie_properties_plugin_class_init (TotemMoviePropertiesPluginClass *klass) { + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + object_class->set_property = set_property; + object_class->get_property = get_property; + + g_object_class_override_property (object_class, PROP_OBJECT, "object"); } static void @@ -133,14 +139,13 @@ totem_movie_properties_plugin_metadata_updated (TotemObject *totem, } static void -impl_activate (PeasActivatable *plugin, - GObject *object) +impl_activate (PeasActivatable *plugin) { TotemMoviePropertiesPlugin *pi; TotemObject *totem; pi = TOTEM_MOVIE_PROPERTIES_PLUGIN (plugin); - totem = TOTEM_OBJECT (object); + totem = g_object_get_data (G_OBJECT (plugin), "object"); pi->props = bacon_video_widget_properties_new (); gtk_widget_show (pi->props); @@ -169,13 +174,13 @@ impl_activate (PeasActivatable *plugin, } static void -impl_deactivate (PeasActivatable *plugin, - GObject *object) +impl_deactivate (PeasActivatable *plugin) { TotemMoviePropertiesPlugin *pi; - TotemObject *totem = TOTEM_OBJECT (object); + TotemObject *totem; pi = TOTEM_MOVIE_PROPERTIES_PLUGIN (plugin); + totem = g_object_get_data (G_OBJECT (plugin), "object"); g_signal_handler_disconnect (G_OBJECT (totem), pi->handler_id_stream_length); g_signal_handlers_disconnect_by_func (G_OBJECT (totem), |