After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 433064 - Plugins are not deactivated on Totem exit
Plugins are not deactivated on Totem exit
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Plugins
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks: 428290
 
 
Reported: 2007-04-24 19:41 UTC by Jan Arne Petersen
Modified: 2007-04-25 12:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move totem_plugins_engine_shutdown to totem_action_exit (2.55 KB, patch)
2007-04-24 19:43 UTC, Jan Arne Petersen
none Details | Review
Add totem_object_plugins_shutdown (). (3.10 KB, patch)
2007-04-25 12:29 UTC, Jan Arne Petersen
accepted-commit_now Details | Review

Description Jan Arne Petersen 2007-04-24 19:41:41 UTC
totem_object_finalize and so totem_plugins_engine_shutdown is never called on totem exit.
Comment 1 Jan Arne Petersen 2007-04-24 19:43:26 UTC
Created attachment 86934 [details] [review]
Move totem_plugins_engine_shutdown to totem_action_exit

Additional this patch removes workarounds in the media player keys and lirc plugins.
Comment 2 Bastien Nocera 2007-04-24 21:53:24 UTC
The work-arounds being removed look fine, but wouldn't it be easier to g_object_unref the TotemObject when exiting, rather than what's in your patch?
Comment 3 Jan Arne Petersen 2007-04-24 22:30:27 UTC
g_object_unrefing a TotemObject in the totem_action_exit function didn't fixed the problem. There are probably to much references of the TotemObject around.
Comment 4 Bastien Nocera 2007-04-25 08:20:36 UTC
As we already have a totem_object_plugins_init(), could you please add a totem_object_plugins_shutdown() which shuts down the plugin engine as above. That'd do fine for me.
Comment 5 Jan Arne Petersen 2007-04-25 12:29:43 UTC
Created attachment 86985 [details] [review]
Add totem_object_plugins_shutdown ().
Comment 6 Bastien Nocera 2007-04-25 12:31:50 UTC
Looks good, thanks!
Comment 7 Jan Arne Petersen 2007-04-25 12:45:05 UTC
2007-04-25  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* src/plugins/lirc/totem-lirc.c: (totem_lirc_plugin_finalize):
	* src/plugins/media-player-keys/totem-media-player-keys.c:
	(totem_media_player_keys_plugin_finalize):
	* src/totem-object.c: (totem_object_finalize),
	(totem_object_plugins_shutdown):
	* src/totem.c: (totem_action_exit):
	* src/totem.h: Explicitly shutdown the plugins engine at the totem
	exit. Remove workarounds. (Closes: #433064)