Commit 764d257b authored by Jens Georg's avatar Jens Georg

Allow CCW rotation by ctrl-Space on tool button

Signed-off-by: Jens Georg's avatarJens Georg <mail@jensge.org>

https://bugzilla.gnome.org/show_bug.cgi?id=715501
parent f24bd7af
......@@ -63,6 +63,12 @@ public abstract class CollectionPage : MediaPage {
MediaPage.ZoomSliderAssembly zoom_slider_assembly = create_zoom_slider_assembly();
connect_slider(zoom_slider_assembly);
get_toolbar().insert(zoom_slider_assembly, -1);
Gtk.ToolButton? rotate_button = this.builder.get_object ("ToolRotate") as Gtk.ToolButton;
unowned Gtk.BindingSet binding_set = Gtk.BindingSet.by_class(rotate_button.get_class());
Gtk.BindingEntry.add_signal(binding_set, Gdk.Key.KP_Space, Gdk.ModifierType.CONTROL_MASK, "clicked", 0);
Gtk.BindingEntry.add_signal(binding_set, Gdk.Key.space, Gdk.ModifierType.CONTROL_MASK, "clicked", 0);
}
return toolbar;
......
......@@ -440,6 +440,9 @@ public abstract class EditingHostPage : SinglePhotoPage {
rotate_button.clicked.connect(on_rotate_clockwise);
rotate_button.is_important = true;
toolbar.insert(rotate_button, -1);
unowned Gtk.BindingSet binding_set = Gtk.BindingSet.by_class(rotate_button.get_class());
Gtk.BindingEntry.add_signal(binding_set, Gdk.Key.KP_Space, Gdk.ModifierType.CONTROL_MASK, "clicked", 0);
Gtk.BindingEntry.add_signal(binding_set, Gdk.Key.space, Gdk.ModifierType.CONTROL_MASK, "clicked", 0);
// crop tool
crop_button = new Gtk.ToggleToolButton ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment