diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:40:44 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:40:44 +0100 |
commit | 8e1c5a834469d804d28ee8ab2cbe2da8e600a789 (patch) | |
tree | b9771456583eaead893cfd8f02e680b58a3da970 /src/PhotoPage.vala | |
parent | 80a5f2d8b095e895a5424f90b2ce4684d94c1a32 (diff) | |
parent | 3253d99365813f2d2ffd05e10cbb8c11f53d746e (diff) |
Merge tag 'upstream/0.26.0'
Upstream version 0.26.0
Diffstat (limited to 'src/PhotoPage.vala')
-rw-r--r-- | src/PhotoPage.vala | 4 |
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(); |