GNOME Bugzilla – Bug 683429
3.5.90: Couldn't load the '/usr/share/totem/mozilla-viewer.ui' interface. Invalid object type 'TotemGlowButton'.
Last modified: 2012-09-13 21:28:31 UTC
Report by Mageia users. Could be a packaging problem, or maybe those gobject-introspection changes? Error message shown by totem-mozilla plugin: Couldn't load the '/usr/share/totem/mozilla-viewer.ui' interface. Invalid object type 'TotemGlowButton'. Original bugreport: https://bugs.mageia.org/show_bug.cgi?id=7359 Screenshot: https://bugs.mageia.org/attachment.cgi?id=2753
Looks like your linker is trimming the glow button widget from the totem-plugin-viewer binary. You'll probably want to review your linker flags.
Created attachment 223698 [details] [review] browser-plugin: force registration of TotemGlowButton type (#683429) This patch fixes the issue, by make sure the TotemGlowButton type is registered. Else, nothing seems to call the registration function (generated inside totem_glow_button_get_type). This is not a linker issue, the TotemGlowButton symbols are correctly present as global symbols in the binary.
Actually, this patch is not enough, I'll post a new version.
Created attachment 223781 [details] [review] browser-plugin: init g_type
Created attachment 223782 [details] [review] browser-plugin: ensure that types required by ui files are registered
Created attachment 223783 [details] [review] browser-plugin: really use GtkMenuButton
These 3 patches are needed to make totem-plugin-work on Mageia Cauldron. For the record, we are currently using glib 2.33.12 and gtk 3.5.16.
Without the third patch, it's quite unlikely that totem-plugin-viewer could be loaded properly, with any glib/gtk version.
Review of attachment 223783 [details] [review]: ++
Review of attachment 223782 [details] [review]: ++
Review of attachment 223781 [details] [review]: We've already got a call to that, through the option parsing: g_option_context_add_group (context, gtk_get_option_group (TRUE));
Review of attachment 223782 [details] [review]: This obviously needs to be called after the option parsing has been done.
Attachment 223783 [details] pushed as 94d397f - browser-plugin: really use GtkMenuButton
Confirming that your version of attachment 223782 [details] [review] fixes the issue as well, without attachment 223781 [details] [review] Thanks for your review!