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 608170 - Drive selection widget unusable from GtkBuilder
Drive selection widget unusable from GtkBuilder
Status: RESOLVED FIXED
Product: brasero
Classification: Applications
Component: libbrasero-media
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Brasero maintainer(s)
Brasero maintainer(s)
Depends on:
Blocks: 578046
 
 
Reported: 2010-01-26 16:33 UTC by Bastien Nocera
Modified: 2010-02-23 20:04 UTC
See Also:
GNOME target: 2.30.x
GNOME version: ---



Description Bastien Nocera 2010-01-26 16:33:55 UTC
Because the widget's _get_type() function isn't exported properly.

libbrasero-media should use the CFLAGS and LDFLAGS from gmodule-export-2.0, and mark the functions to export with G_MODULE_EXPORT.

Otherwise GtkBuilder cannot find the _get_type() functions, thus cannot register the widget types, and make them usable in applications.
Comment 1 Tadej Borovšak 2010-01-26 21:57:14 UTC
Hello.

I don't think any of the actions proposed are needed, since libbrasero-media is usually compiled as shared library and all symbols that GtkBuilder needs for it's operation are readily available.

There is no Glade catalog for this widget available, which makes drive selection widget unusable from Glade. But one can insert this widget by manually editing interface file.

Tadej
Comment 2 Bastien Nocera 2010-01-27 09:21:32 UTC
(In reply to comment #1)
> Hello.
> 
> I don't think any of the actions proposed are needed, since libbrasero-media is
> usually compiled as shared library and all symbols that GtkBuilder needs for
> it's operation are readily available.

It works on Linux by sheer luck. Symbols are exported by default on Linux, but this isn't the case with all the OSes.

> There is no Glade catalog for this widget available, which makes drive
> selection widget unusable from Glade. But one can insert this widget by
> manually editing interface file.

And that's how it should be done in your sound-juicer patch.
Comment 3 André Klapper 2010-02-19 21:51:05 UTC
This blocks porting sound-juicer from libglade to GtkBuilder, hence setting GNOME Target.
Comment 4 Philippe Rouquier 2010-02-23 20:04:35 UTC
Thanks for the report. That's now done in master. Please feel free to reopen if I missed something.