[Shotwell] crop_tool_window layout changes when selecting "Custom" cropping
Jim Nelson
jim at yorba.org
Thu Apr 15 11:00:06 PDT 2010
Hi Paul,
Yes, that's certainly not behavior by design. I've created a ticket for
this: http://trac.yorba.org/ticket/1795
We'd love it if you patched this. The code you mentioned is exactly where
you want to start: in EditingTools.vala, the CropToolWindow class. That
class is internal to CropTool, which does a lot of the work to rearrange the
controls when the custom constraint is selected. I suspect most (if not
all) of the patch would be in these two classes.
-- Jim
On Wed, Apr 14, 2010 at 9:13 PM, Paul Novak <pnovak at alumni.caltech.edu>wrote:
> Hello,
>
> I have built shotwell from SVN on Fedora 12. When I use the crop tool,
> and select the "Custom" crop constraint, the layout of the crop tool
> window changes so the "Cancel" and "OK" buttons are on the left. This
> layout persists when I change to any other crop constraint. I think this
> happens because the tool window layout is initialized by (from
> EditingTools.vala)
>
> Gtk.HBox response_layout = new Gtk.HBox(true, CONTROL_SPACING);
> response_layout.add(cancel_button);
> response_layout.add(ok_button);
>
> layout = new Gtk.HBox(false, CONTROL_SPACING);
> layout.add(constraint_combo);
> layout.add(pivot_reticle_button);
> layout.add(response_layout);
>
> but when the constraint type changes, response_layout is not removed,
> just its children, cancel_button and the ok_button. I'm not sure how to
> fix it, because I don't know how to access response_layout to remove its
> children first (cancel_button and ok_button), and then remove
> response_layout.
>
> I'd be glad to create the patch if someone pointed me in the right
> direction.
>
> Thanks,
> Paul
> _______________________________________________
> Shotwell mailing list
> Shotwell at lists.yorba.org
> http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell
>
More information about the Shotwell
mailing list