[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: How should I use Gio::APPLICATION_HANDLES_OPEN ?
From:       Rupert Swarbrick <rswarbrick () gmail ! com>
Date:       2013-11-14 22:05:26
Message-ID: 87ppq24p21.fsf () skate ! rswarbrick
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Murray Cumming <murrayc@murrayc.com> writes:
> There should be no need to use the C API. Gio::Application has a
> signal_open().
> 
> However, I think it's simpler to derive your own Application class, like
> so:
> https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/simple/exampleapplication.cc
>  
> That then overrides on_open(), which is the default signal handler for
> the "open" signal.

I found this hard to understand at first, but it seems that time and
some coffee has helped a lot... I've just managed to get an example
working which subclasses Gtk::Application and implements on_open, and it
works perfectly.

Thank you very much for the help. Now I'm off to properly understand how
things are supposed to work with g_application_activate() and
g_application_open() etc. (And, of course, their C++ bindings)

Rupert


[Attachment #5 (application/pgp-signature)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic