comparison src/remote.c @ 2848:ed4e22060177

Fix #635: Export in JPG https://github.com/BestImageViewer/geeqie/issues/635 Implemented via plugin
author Colin Clark <colin.clark@cclark.uk>
date Sun, 14 Oct 2018 12:40:03 +0100
parents a58a176761eb
children 8b1c451c8ff2
comparison
equal deleted inserted replaced
2847:53785dd2e8c9 2848:ed4e22060177
714 g_io_channel_write_chars(channel, rectangle_info, -1, NULL, NULL); 714 g_io_channel_write_chars(channel, rectangle_info, -1, NULL, NULL);
715 g_io_channel_write_chars(channel, "\n", -1, NULL, NULL); 715 g_io_channel_write_chars(channel, "\n", -1, NULL, NULL);
716 716
717 g_free(rectangle_info); 717 g_free(rectangle_info);
718 } 718 }
719 }
720
721 static void gr_render_intent(const gchar *text, GIOChannel *channel, gpointer data)
722 {
723 gchar *render_intent;
724
725 switch (options->color_profile.render_intent)
726 {
727 case 0:
728 render_intent = g_strdup("Perceptual");
729 break;
730 case 1:
731 render_intent = g_strdup("Relative Colorimetric");
732 break;
733 case 2:
734 render_intent = g_strdup("Saturation");
735 break;
736 case 3:
737 render_intent = g_strdup("Absolute Colorimetric");
738 break;
739 default:
740 render_intent = g_strdup("none");
741 break;
742 }
743
744 g_io_channel_write_chars(channel, render_intent, -1, NULL, NULL);
745 g_io_channel_write_chars(channel, "\n", -1, NULL, NULL);
746
747 g_free(render_intent);
719 } 748 }
720 749
721 static void gr_file_tell(const gchar *text, GIOChannel *channel, gpointer data) 750 static void gr_file_tell(const gchar *text, GIOChannel *channel, gpointer data)
722 { 751 {
723 if (!layout_valid(&lw_id)) return; 752 if (!layout_valid(&lw_id)) return;
908 { NULL, "file:", gr_file_load, TRUE, FALSE, N_("<FILE>"), N_("open FILE, bring Geeqie window to the top") }, 937 { NULL, "file:", gr_file_load, TRUE, FALSE, N_("<FILE>"), N_("open FILE, bring Geeqie window to the top") },
909 { NULL, "File:", gr_file_load_no_raise, TRUE, FALSE, N_("<FILE>"), N_("open FILE, do not bring Geeqie window to the top") }, 938 { NULL, "File:", gr_file_load_no_raise, TRUE, FALSE, N_("<FILE>"), N_("open FILE, do not bring Geeqie window to the top") },
910 { NULL, "--tell", gr_file_tell, FALSE, FALSE, NULL, N_("print filename of current image") }, 939 { NULL, "--tell", gr_file_tell, FALSE, FALSE, NULL, N_("print filename of current image") },
911 { NULL, "--pixel-info", gr_pixel_info, FALSE, FALSE, NULL, N_("print pixel info of mouse pointer on current image") }, 940 { NULL, "--pixel-info", gr_pixel_info, FALSE, FALSE, NULL, N_("print pixel info of mouse pointer on current image") },
912 { NULL, "--get-rectangle", gr_rectangle, FALSE, FALSE, NULL, N_("get rectangle co-ordinates") }, 941 { NULL, "--get-rectangle", gr_rectangle, FALSE, FALSE, NULL, N_("get rectangle co-ordinates") },
942 { NULL, "--get-render-intent", gr_render_intent, FALSE, FALSE, NULL, N_("get render intent") },
913 { NULL, "view:", gr_file_view, TRUE, FALSE, N_("<FILE>"), N_("open FILE in new window") }, 943 { NULL, "view:", gr_file_view, TRUE, FALSE, N_("<FILE>"), N_("open FILE in new window") },
914 { NULL, "--list-clear", gr_list_clear, FALSE, FALSE, NULL, N_("clear command line collection list") }, 944 { NULL, "--list-clear", gr_list_clear, FALSE, FALSE, NULL, N_("clear command line collection list") },
915 { NULL, "--list-add:", gr_list_add, TRUE, FALSE, N_("<FILE>"), N_("add FILE to command line collection list") }, 945 { NULL, "--list-add:", gr_list_add, TRUE, FALSE, N_("<FILE>"), N_("add FILE to command line collection list") },
916 { NULL, "raise", gr_raise, FALSE, FALSE, NULL, N_("bring the Geeqie window to the top") }, 946 { NULL, "raise", gr_raise, FALSE, FALSE, NULL, N_("bring the Geeqie window to the top") },
917 { NULL, "--id:", gr_lw_id, TRUE, FALSE, N_("<ID>"), N_("window id for following commands") }, 947 { NULL, "--id:", gr_lw_id, TRUE, FALSE, N_("<ID>"), N_("window id for following commands") },