3

次の gtkmm の simple.cc の例を実行する場合

#include <gtkmm.h>

int main(int argc, char * argv[]){
  Glib::RefPtr<Gtk::Application> app
    = Gtk::Application::create(argc,argv,"org.gtkmm..examples.base");
  Gtk::Window window;
  //Gtk::ApplicationWindow window(app);                                         
  return app->run(window);                                                  
}

次のメッセージが表示されます。

 (process:9428): GLib-GIO-CRITICAL **: g_application_set_application_id: assertion `application_id == NULL || g_application_id_is_valid (application_id)' failed

However, the application doesn't break, the window is produced and doesn't exit until I ctr+C the program.

What are the implications of this GLib-GIO-Critical message ? What do I do to suppress the message ?

4

2 に答える 2