diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:39:17 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:39:17 +0100 |
commit | 3253d99365813f2d2ffd05e10cbb8c11f53d746e (patch) | |
tree | 0ab6f04d9051dc4ada1c4f977a01308227767234 /src/PhotoPage.vala | |
parent | e69c1b746d63bf794316669471474ab57c8cd40a (diff) |
New upstream version 0.26.0upstream/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(); |