Le 31/12/2010 00:56, Josselin Mouette a écrit :
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.
And gtk_main_* is not Gtk::Main. Gtk::Main is a C++ class inside a C++ namespace.
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.
The issue is not in libpanel-applet, but in libpanelappletmm. libpanelappletmm relies on gtkmm, which wraps GTK+. In a gtkmm based program, you don't deal with GTK+ directly (that's why we call it a wrapper).
GTK+'s initialisation is done by the Gtk::Main class. That's how gtkmm works, and so that's what libpanelappletmm should use.
I hope you understand. If you don't, take a look at gtkmm's tutorial (even just this page : http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-basics-simple-example.html.en )
-- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

