summaryrefslogtreecommitdiff
path: root/src/PhotoPage.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/PhotoPage.vala')
-rw-r--r--src/PhotoPage.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index 962c80e..9bed855 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -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 ();
@@ -2180,6 +2183,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
return;
// do this so window size is properly allocated, but window not shown
+ tool_window.set_transient_for(AppWindow.get_instance());
tool_window.show_all();
tool_window.hide();