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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to