リビジョン | 3b93b774d50634f0b1731fd71bec30114e2511cb (tree) |
---|---|
日時 | 2011-05-31 00:11:55 |
作者 | masahino |
コミッター | masahino |
delete -g option and add -t option #25339
@@ -65,7 +65,11 @@ | ||
65 | 65 | { |
66 | 66 | printf("\nwmuim version: %s\n", VERSION); |
67 | 67 | printf("usage:\n"); |
68 | +#ifdef USE_IMLIB2 | |
69 | + printf("wmuim [-d] [-t] [-p uim-pref name] [-s uim-im-switcher name]\n"); | |
70 | +#else | |
68 | 71 | printf("wmuim [-d] [-p uim-pref name] [-s uim-im-switcher name]\n"); |
72 | +#endif /* USE_IMLIB2 */ | |
69 | 73 | } |
70 | 74 | |
71 | 75 | static void ParseCMDLine(int argc, char *argv[]) |
@@ -76,8 +80,8 @@ | ||
76 | 80 | if (strcmp(argv[i], "-d") == 0) { |
77 | 81 | debug = True; |
78 | 82 | #ifdef USE_IMLIB2 |
79 | - } else if (strcmp(argv[i], "-g") == 0) { | |
80 | - graphical_mode = True; | |
83 | + } else if (strcmp(argv[i], "-t") == 0) { | |
84 | + graphical_mode = False; | |
81 | 85 | #endif /* USE_IMLIB2 */ |
82 | 86 | } else if (strcmp(argv[i], "-p") == 0) { |
83 | 87 | /* uim-prep-xxx */ |
@@ -152,7 +156,11 @@ | ||
152 | 156 | |
153 | 157 | uim_fd = wmuim_init(); |
154 | 158 | debug = False; |
159 | +#ifdef USE_IMLIB2 | |
160 | + graphical_mode = True; | |
161 | +#else | |
155 | 162 | graphical_mode = False; |
163 | +#endif /* USE_IMLIB2 */ | |
156 | 164 | |
157 | 165 | ParseCMDLine(argc, argv); |
158 | 166 |