Re: How to set application flags?



In gtkmm-3.0 and the corresponding glibmm-2.4 it's Gio::APPLICATION_NON_UNIQUE or Gio::ApplicationFlags::APPLICATION_NON_UNIQUE. In gtkmm-4.0 and the corresponding glibmm-2.60 it's Gio::Application::Flags::NON_UNIQUE.

Gtkmm-4.0 and glibmm-2.60 are still highly unstable. They are not yet recommended for production use.

/Kjell

On 2018-11-03 01:10, Phil Wolff via gtkmm-list wrote:
Sorry, that should be Gio::ApplicationFlags::APPLICATION_NON_UNIQUE.

On 11/2/18 5:08 PM, Phil Wolff via gtkmm-list wrote:
No, it means there is no Flags::NON_UNIQUE in Gio::Application.

Try Gio::Application::Flags::APPLICATION_NON_UNIQUE.

On 11/2/18 2:40 PM, Радомир Хаџић via gtkmm-list wrote:
Hello. I have a small problem. I need to set application flags yet I don't know how.
Here is my attempt based on some source code I read:
*#include <gtkmm/application.h>

int main(int argc, char **argv)
{
    Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "org.gtkmm.example");
app->set_flags(Gio::Application::Flags::NON_UNIQUE);
    return app->run();
}
*
The error I'm getting is:
*test.cpp:6:35: error: ‘Gio::Application::Flags’ has not been declared
app->set_flags(Gio::Application::Flags::NON_UNIQUE);
*
*^~~~~*
That obviously means that there is no *Flags* in *Gio::Application*, but why?

Thank you for reading this and I'll hope you'll be able to help me.

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


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