Simplistic example GTK MM 3.4 failing!



Hello All,

The simplistic example below

   #include <gtkmm.h>

   int
   main (int argc, char **argv)
   {  
     Glib::RefPtr<Gtk::Application> app =
       Gtk::Application::create(argc, argv,
   			     "net.starynkevitch.example1");

     Gtk::ApplicationWindow window;
     window.set_title("example " __FILE__);
     return app->run(window);
   }  
   
when compiled on Debian/Sid/AMD64 & gtkmm 3.4 package with

     g++ -Wall -g testbasile.cc $(pkg-config --cflags --libs gtkmm-3.0) -o testbasile.bin 

and run with ./testbasile.bin
is failing with
 % ./testbasile.bin

(testbasile.bin:28415): GLib-GIO-CRITICAL **: g_application_list_actions: assertion `application->priv->is_registered' failed


What did I do wrong?

Cheers.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]