c2ea20f...
by
Denis Washington <email address hidden>
Rework the last commit to only introduce GladeWidgetAdaptor->evaluate_property_sensitivity()
As discussed with Tristan van Berkom on the mailing list. Instead of
recording property sensitivity changes directly in the command system,
a "property invalidated" signal will be added to the "gbinding" branch
to make sure that property bindings with invalidated source properties
are properly removed.
What remains in this branch, though, is a new virtual function
GladeWidgetAdaptor::evaluate_property_sensitivity() which centralizes
all the property sensitivity management which is currently scattered
around the plugins/gtk+/ codebase. As the invalidated-source-property
issue will now be solved directly in the "gbinding" branch, this is now
a purely cosmetic work, but nevertheless I will continue it (and probably
rebase the gbinding branch to it).
As in the last commit, of the code in plugins/gtk+/ only the GtkEntry
adaptor has been ported to use evaluate_property_sensitivity(), but the
others will eventually follow.
e015ce5...
by
Denis Washington <email address hidden>
Add glade_command_set_sensitive() and port a bit of the GTK+ plugin code to it
The aim of this is to let all changes to the sensitivity of properties through
the command system so that the code in the "gbinding" branch can cleanly react
to the source or target of a property binding becoming insensitive (e.g. by
undoably removing the binding).
Make GladeDesignLayout use only button 1 press to select widgets.
Fixed bug in gdl_get_margins_from_pointer(), needed to translate coordinates
In glade_design_layout_find_inside_container() use widget margins as if they where part of the widget allocation.