Re: Application.activate not emitted when opening files.

2016-06-16 Thread Victor Aurélio Santos
Thank you so much Stefan! cleared out questions. > It is a bit hidden Yeah! most of glib/gtk documentation can be much better. 2016-06-16 18:14 GMT-03:00 Florian Müllner : > > > On Thu, Jun 16, 2016 at 9:11 PM Stefan Salewski wrote: >> >> So your observed behaviour seems to be intended. When ap

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Florian Müllner
On Thu, Jun 16, 2016 at 9:11 PM Stefan Salewski wrote: > So your observed behaviour seems to be intended. When application is > started with arguments, example_app_open() is called, which includes > the code of example_app_activate(). This indicates that > example_app_activate() is not executed w

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Stefan Salewski
On Thu, 2016-06-16 at 20:12 +0200, Stefan Salewski wrote: > I will see if I can find some C code for testing... Well, looking at the C code of example10 is already enough: gtk+-3.20.1/examples/application10 exampleapp.c static void example_app_activate (GApplication *app) {   ExampleAppWindow *

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Stefan Salewski
On Thu, 2016-06-16 at 14:44 -0300, Victor Aurélio Santos wrote: > > You may follow the example https://developer.gnome.org/gtk3/stable/ > ch01s04.html#id-1.2.3.12.5 > Look at application code, I think it's very like the example you give > me. > > > This way you are not concerned with signals that

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Victor Aurélio Santos
> Look at application code, I think it's very like the example you give me. Sorry, forgot the link: https://github.com/hotvic/QSubber-gtk/blob/master/src/qsubber-application.vala 2016-06-16 14:44 GMT-03:00 Victor Aurélio Santos : >> You may follow the example >> https://developer.gnome.org/gtk3/

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Victor Aurélio Santos
> You may follow the example > https://developer.gnome.org/gtk3/stable/ch01s04.html#id-1.2.3.12.5 Look at application code, I think it's very like the example you give me. > This way you are not concerned with signals that match. I can't understand what you mean. > I would assume that that signa

Re: Application.activate not emitted when opening files.

2016-06-16 Thread Stefan Salewski
On Wed, 2016-06-15 at 12:42 -0300, Victor Aurélio Santos wrote: > where should i do application's > basic things like creating windows, setting-up basic things etc... You may follow the example https://developer.gnome.org/gtk3/stable/ch01s04.html#id-1.2.3.12.5 This way you are not concerned with