diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-01-12 10:58:06 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-01-12 10:58:33 +0100 |
commit | f632510d2a8b96e25f529c9f408fa1bef9693557 (patch) | |
tree | ce2cabd3d8beac889217a1a8da4909818bc28690 /fiv-view.c | |
parent | 05453718bb15465ac4d27c1e5ac5d644b78b1b18 (diff) | |
download | fiv-f632510d2a8b96e25f529c9f408fa1bef9693557.tar.gz fiv-f632510d2a8b96e25f529c9f408fa1bef9693557.tar.xz fiv-f632510d2a8b96e25f529c9f408fa1bef9693557.zip |
Put reloading the image as its own action
Diffstat (limited to 'fiv-view.c')
-rw-r--r-- | fiv-view.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1064,11 +1064,14 @@ fiv_view_class_init(FivViewClass *klass) bind(bs, GDK_KEY_plus, GDK_CONTROL_MASK, FIV_VIEW_COMMAND_ZOOM_IN); bind(bs, GDK_KEY_minus, GDK_CONTROL_MASK, FIV_VIEW_COMMAND_ZOOM_OUT); bind(bs, GDK_KEY_p, GDK_CONTROL_MASK, FIV_VIEW_COMMAND_PRINT); + bind(bs, GDK_KEY_r, GDK_CONTROL_MASK, FIV_VIEW_COMMAND_RELOAD); bind(bs, GDK_KEY_s, GDK_CONTROL_MASK, FIV_VIEW_COMMAND_SAVE_PAGE); bind(bs, GDK_KEY_s, GDK_MOD1_MASK, FIV_VIEW_COMMAND_SAVE_FRAME); bind(bs, GDK_KEY_Return, GDK_MOD1_MASK, FIV_VIEW_COMMAND_INFO); // The scale-to-fit binding is from gThumb, which has more such modes. + bind(bs, GDK_KEY_F5, 0, FIV_VIEW_COMMAND_RELOAD); + bind(bs, GDK_KEY_r, 0, FIV_VIEW_COMMAND_RELOAD); bind(bs, GDK_KEY_plus, 0, FIV_VIEW_COMMAND_ZOOM_IN); bind(bs, GDK_KEY_minus, 0, FIV_VIEW_COMMAND_ZOOM_OUT); bind(bs, GDK_KEY_w, 0, FIV_VIEW_COMMAND_FIT_WIDTH); @@ -1203,6 +1206,9 @@ fiv_view_command(FivView *self, FivViewCommand command) return; switch (command) { + break; case FIV_VIEW_COMMAND_RELOAD: + reload(self); + break; case FIV_VIEW_COMMAND_ROTATE_LEFT: self->orientation = view_left[self->orientation]; gtk_widget_queue_resize(widget); |