On Tue, Apr 09, 2013 at 04:54:43PM -0400, Jesper Pedersen wrote:
> Hi,
> 
> I have started on my patch to support displaying the histogram in
> linear mode - as attached.
> 
> My question is how do I get hold of the preferences inside
> entangle-image-histogram.c ?
> 
> The other usages of the preferences has the application context
> attached to the data structure, which isn't the case here. Should we
> do the same here ?

You shouldn't!  The entangle-camera-manager code should use the
preference to set a property on the entangle-image-histogram
class to toggle drawing modes.  See also how we deal with
preferences for image display aspect ratio / masks. This keeps
the widget nicely separated from the preferences code.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
Entangle-devel mailing list
Entangle-devel@gna.org
https://mail.gna.org/listinfo/entangle-devel

Reply via email to