diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-11-13 02:36:13 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2014-11-13 02:36:13 +0000 |
commit | 485f2afb6fa7355731467a99711644e8c7dcfd8c (patch) | |
tree | b603e4b85d221ee27092af2c49a60299400be563 /src/main.c | |
parent | e8a401ac2a1008644992c7728b7d66d0c156e71d (diff) |
added command line option '--dpi dpinum'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3443 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -662,6 +662,15 @@ static void parse_cmd_opt(int argc, char *argv[]) } } else if (!strncmp(argv[i], "--safe-mode", 11)) { cmd.safe_mode = TRUE; + } else if (!strncmp(argv[i], "--dpi", 5)) { + if (argv[i + 1]) { + gdouble dpi; + + dpi = strtod(argv[i + 1], NULL); + if (dpi > 0.0) + gtkut_set_dpi(dpi); + i++; + } } else if (!strncmp(argv[i], "--exit", 6)) { cmd.exit = TRUE; } else if (!strncmp(argv[i], "--help", 6)) { @@ -686,6 +695,7 @@ static void parse_cmd_opt(int argc, char *argv[]) #ifdef G_OS_WIN32 g_print("%s\n", _(" --ipcport portnum specify port for IPC remote commands")); #endif + g_print("%s\n", _(" --dpi dpinum force DPI")); g_print("%s\n", _(" --exit exit Sylpheed")); g_print("%s\n", _(" --debug debug mode")); g_print("%s\n", _(" --safe-mode safe mode")); |