From: Colin Clark Date: Fri, 16 Jun 2017 08:45:57 +0000 (+0100) Subject: Addl fix #436: Add 'Losslessly rotate image' keyboard shortcuts X-Git-Tag: v1.4~157 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=68c4796e434bae49815d667264a780c8b63fc551 Addl fix #436: Add 'Losslessly rotate image' keyboard shortcuts https://github.com/BestImageViewer/geeqie/issues/436 --- diff --git a/src/layout_util.c b/src/layout_util.c index 9cc0558f..2f340b5f 100644 --- a/src/layout_util.c +++ b/src/layout_util.c @@ -2737,11 +2737,11 @@ static void layout_util_sync_views(LayoutWindow *lw) gtk_action_set_sensitive(action, lw->split_mode != SPLIT_NONE); action = gtk_action_group_get_action(lw->action_group, "WriteRotation"); - gtk_action_set_sensitive(action, !(runcmd("which exiftran >null") || - runcmd("which mogrify >null") || options->metadata.write_orientation)); + gtk_action_set_sensitive(action, !(runcmd("which exiftran >/dev/null") || + runcmd("which mogrify >/dev/null") || options->metadata.write_orientation)); action = gtk_action_group_get_action(lw->action_group, "WriteRotationKeepDate"); - gtk_action_set_sensitive(action, !(runcmd("which exiftran >null") || - runcmd("which mogrify >null") || options->metadata.write_orientation)); + gtk_action_set_sensitive(action, !(runcmd("which exiftran >/dev/null") || + runcmd("which mogrify >/dev/null") || options->metadata.write_orientation)); action = gtk_action_group_get_action(lw->action_group, "StereoAuto"); gtk_radio_action_set_current_value(GTK_RADIO_ACTION(action), layout_image_stereo_pixbuf_get(lw));