我仍在处理此链接上的示例:gtkmm statusicon 在创建后退出 我以这种方式更改了功能以打开托盘栏不同的窗口,但没有显示任何内容。
void Tray::on_statusicon_popup(guint button, guint activate_time) {
printf("popup!\n");
Gtk::Window w;
w.show();
}
我试图用“Gtk::Main::run(w);”运行每个窗口 它可以工作,但我不想为每个窗口运行一个主循环。