Re: XMPModel and custom signals

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

 



Hi,

On Fri, 2009-07-31 at 15:12 +1000, Roman Joost wrote:

> I could and the patch provided by that bug adds a custom
> 'property-changed' signal. Sven and Mitch thought, if I inherit from
> XMPModel, I wouldn't really need the 'property-changed' signal, because
> I'd be able to control the 'property-changed' signal. That is true, but
> maybe I wasn't clear enough saying, that I want to distinguish if a
> schema or a property changed by using different signals.

Nothing keeps you from adding more signals to your derived class. You
can easily emit more detailed signals from the 'row_changed' handler in
your class.

What's probably even better than a plain 'property-changed' signal is
one that has a detail that identifies the property. Then code can
subscribe to 'property-changed' to get notified about any property
changes and your entry, which is probably just interested in a special
property, let's call it 'foo', would subscribe to
'property-changed::foo'. See
http://library.gnome.org/devel/gobject/stable/signal.html#signal-detail
for more information on the detail argument.


Sven


_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux