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 428290 - Move gromit support to a plugin
Move gromit support to a plugin
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: 433064 433371
Blocks:
 
 
Reported: 2007-04-10 16:52 UTC by Bastien Nocera
Modified: 2007-04-26 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
New plugin (17.62 KB, patch)
2007-04-24 22:05 UTC, Jan Arne Petersen
needs-work Details | Review
Updated patch. (18.16 KB, patch)
2007-04-26 16:09 UTC, Jan Arne Petersen
accepted-commit_now Details | Review

Description Bastien Nocera 2007-04-10 16:52:51 UTC
SSIA, would allow compiling gromit support all the time.
Comment 1 Jan Arne Petersen 2007-04-24 22:05:10 UTC
Created attachment 86954 [details] [review]
New plugin
Comment 2 Bastien Nocera 2007-04-25 12:33:36 UTC
The plugin should probably fail to activate if there's no gromit binary available.
Comment 3 Jan Arne Petersen 2007-04-25 13:07:01 UTC
I thought about it, but it doesn't seem to be possible with the current plugin framwork.

Maybe we could use something like

typedef gboolean (*TotemPluginActivationFunc) (TotemPlugin *plugin, TotemObject *totem, GError **error);

instead of

typedef void (*TotemPluginActivationFunc) (TotemPlugin *plugin, TotemObject *totem);
Comment 4 Bastien Nocera 2007-04-25 15:42:12 UTC
Looks useful. Do you want to take a crack at it?
Comment 5 Jan Arne Petersen 2007-04-25 17:30:37 UTC
See bug 433371.
Comment 6 Jan Arne Petersen 2007-04-26 16:09:21 UTC
Created attachment 87072 [details] [review]
Updated patch.
Comment 7 Bastien Nocera 2007-04-26 16:19:26 UTC
Looks good. Please don't forget to update po/POTFILES.in
Comment 8 Jan Arne Petersen 2007-04-26 19:00:55 UTC
2007-04-26  Jan Arne Petersen  <jpetersen@jpetersen.org>

	* configure.in:
	* src/Makefile.am:
	* src/plugins/gromit/Makefile.am:
	* src/plugins/gromit/gromit.totem-plugin.in:
	* src/plugins/gromit/totem-gromit.c:
	(totem_gromit_plugin_class_init), (totem_gromit_plugin_init),
	(totem_gromit_plugin_finalize), (totem_gromit_available),
	(totem_gromit_exit), (totem_gromit_timeout_cb),
	(totem_gromit_toggle), (totem_gromit_clear),
	(on_window_key_press_event), (impl_activate), (impl_deactivate):
	* src/totem-gromit.c:
	* src/totem-gromit.h:
	* src/totem.c: (totem_action_exit),
	(totem_action_handle_key_press): Move gromit annotation support into a
	new plugin. (Closes #428290)