summaryrefslogtreecommitdiff
path: root/src/CollectionPage.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/CollectionPage.vala')
-rw-r--r--src/CollectionPage.vala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CollectionPage.vala b/src/CollectionPage.vala
index df39f64..3434b13 100644
--- a/src/CollectionPage.vala
+++ b/src/CollectionPage.vala
@@ -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;