Bug#607557: backtrace with gnome-panel debug symbols
Josselin Mouette
joss at debian.org
Thu Dec 30 23:56:48 UTC 2010
Le jeudi 30 décembre 2010 à 15:30 +0100, Bastien a écrit :
> libpanelappletmm is a C++ library using gtkmm, which is a wrapper for
> GTK+. Having to call gtk_init directly when using libpanelappletmm would
> be a design flaw. Look at the source of some gtkmm-based programs : they
> don't call gtk_init, instead they create a Gtk::Main which calls it.
Whatever, I don’t know C++. The point is, you need to call gtk_init once
per program. And gtk_main_* is NOT gtk_init, you have to run gtk_init
first.
> The example calls Gnome::Panel::init. This function should initializes
> every needed component (so gtk as well).
No. You need to initialize GTK+ in your program before using anything
related to it. This holds for libpanel-applet just as it holds for any
other GTK+ based library.
Cheers,
--
.''`. Josselin Mouette
: :' :
`. `' “If you behave this way because you are blackmailed by someone,
`- […] I will see what I can do for you.” -- Jörg Schilling
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20101231/90a2af62/attachment.pgp>
More information about the pkg-gnome-maintainers
mailing list