Re: Signals for when any window changes in any way



On Thu, May 17, 2012 at 9:38 PM, Amy C <mathematical coffee gmail com> wrote:
> On Thu, May 17, 2012 at 4:36 PM, Jasper St. Pierre
> <jstpierre mecheye net> wrote:
>> This is what the grab-op-begin/grab-op-end signals are for.
>
> A further question - how do I know what signals are available to
> connect to, is there something I can do in looking-glass to get the
> list?
>
> Because I only learn about signals at the moment by looking through
> the gnome-shell/src and gnome-shell/js/ui files for 'signal' and
> 'connect'.
>
> It took me ages to find the 'grab-op-*' signals defined anywhere,
> because they ended up being the mutter source, which I was fortunate
> enough to happen to have on my computer.
>
> Is the only way for me to learn about available signals by downloading
> the source of each component of gnome-shell (mutter, clutter, atk,
> ...) and grepping through them? (Well, I take that back about Clutter;
> it fortunately has good enough documentation to list the signals it
> defines in them).

This info is reasonably concisely documented in .gir files (gobject
introspection somethingorother). For example,
/usr/lib64/mutter/Meta-3.0.gir contains info about mutter classes /
objects / signals.


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