Thank you. Calling hold before run solved my problem.

2014-09-23 11:45 GMT+03:00, Kjell Ahlstedt <kjell.ahlst...@bredband.net>:
>
> Den 2014-09-23 08:56, Ritesh Khadgaray skrev:
>>
>> Hi
>> On 23 Sep 2014 12:21, "Szőke Szabolcs" <szabolcs...@gmail.com
>> <mailto:szabolcs...@gmail.com>> wrote:
>> >
>> > Hi list. I'm using Ubuntu Linux. I'm working on an application which
>> interacts with the indicator pane. I used the Gtk::Main object
>> register and process the events of my application but recently I
>> discovered that is deprecated and Gtk::Application should be used
>> instead that so I wanted to update my code. I init my Gtk::Application
>> instance with Gtk::Application::create("org.my_application.indicator")
>> function call. Then I call the application object's run method with
>> the program argument count and argument vector as parameters. Note
>> that I don't have any windows. My code worked with Gtk::Main, but I
>> can't figure out why isn't working now. There are some extra steps
>> that I've missed?
>> >
>>
>> You could hold a reference. Check the gtkmm documentation for
>> console/service applications.
>>
>> Cheers
>>
>>
> Here's a small program with Gtk::Application, but without a window:
> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/input/main.cc
>
> To keep it alive, call app->hold() before app->run().
> To stop it, call either app->quit() or app->release().
> Gtk::Application inherits those methods from its base class
> Gio::Application.
>
> Kjell
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to