Re: How to set application flags?
- From: Phil Wolff <adiabat centurylink net>
- To: gtkmm-list gnome org
- Subject: Re: How to set application flags?
- Date: Fri, 2 Nov 2018 17:08:01 -0700
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
--
Those who dance are considered insane by those who cannot hear the music.
— George Carlin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]