summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8767bd)
raw | patch | inline | side by side (parent: e8767bd)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 20 Nov 2006 18:28:02 +0000 (18:28 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 20 Nov 2006 18:28:02 +0000 (18:28 +0000) |
src/ui/dialog/transformation.cpp | patch | blob | history |
index 6be732317017add430409492abc679e3e9ef6614..99ac56cbd54d76fcd27122983a46db9936f1db03 100644 (file)
_check_apply_separately.set_active(prefs_get_int_attribute_limited ("dialogs.transformation", "applyseparately", 0, 0, 1));
_check_apply_separately.signal_toggled().connect(sigc::mem_fun(*this, &Transformation::onApplySeparatelyToggled));
+ // make sure all spinbuttons activate Apply on pressing Enter
+ ((Gtk::Entry *) (_scalar_move_horizontal.getWidget()))->set_activates_default(true);
+ ((Gtk::Entry *) (_scalar_move_vertical.getWidget()))->set_activates_default(true);
+ ((Gtk::Entry *) (_scalar_scale_horizontal.getWidget()))->set_activates_default(true);
+ ((Gtk::Entry *) (_scalar_scale_vertical.getWidget()))->set_activates_default(true);
+ ((Gtk::Entry *) (_scalar_rotate.getWidget()))->set_activates_default(true);
+ ((Gtk::Entry *) (_scalar_skew_horizontal.getWidget()))->set_activates_default(true);
+ ((Gtk::Entry *) (_scalar_skew_vertical.getWidget()))->set_activates_default(true);
+
updateSelection(PAGE_MOVE, _getSelection());
resetButton = add_button(Gtk::Stock::CLEAR, 0);
if (applyButton) {
tooltips.set_tip((*applyButton), _("Apply transformation to selection"));
applyButton->set_sensitive(false);
+ set_default (*applyButton); // activable by Enter in spinbuttons
}
// Connect to the global selection changed & modified signals