summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 9ff8ebc8..fa8cc105 100644
--- a/src/app.c
+++ b/src/app.c
@@ -668,6 +668,8 @@ static void init_App_(iApp *d, int argc, char **argv) {
668 defineValues_CommandLine(&d->args, "help", 0); 668 defineValues_CommandLine(&d->args, "help", 0);
669 defineValues_CommandLine(&d->args, listTabUrls_CommandLineOption, 0); 669 defineValues_CommandLine(&d->args, listTabUrls_CommandLineOption, 0);
670 defineValues_CommandLine(&d->args, openUrlOrSearch_CommandLineOption, 1); 670 defineValues_CommandLine(&d->args, openUrlOrSearch_CommandLineOption, 1);
671 defineValues_CommandLine(&d->args, windowWidth_CommandLineOption, 1);
672 defineValues_CommandLine(&d->args, windowHeight_CommandLineOption, 1);
671 defineValuesN_CommandLine(&d->args, "new-tab", 0, 1); 673 defineValuesN_CommandLine(&d->args, "new-tab", 0, 1);
672 defineValues_CommandLine(&d->args, "tab-url", 0); 674 defineValues_CommandLine(&d->args, "tab-url", 0);
673 defineValues_CommandLine(&d->args, "sw", 0); 675 defineValues_CommandLine(&d->args, "sw", 0);
@@ -787,6 +789,16 @@ static void init_App_(iApp *d, int argc, char **argv) {
787 setThemePalette_Color(d->prefs.theme); /* default UI colors */ 789 setThemePalette_Color(d->prefs.theme); /* default UI colors */
788 loadPrefs_App_(d); 790 loadPrefs_App_(d);
789 load_Keys(dataDir_App_()); 791 load_Keys(dataDir_App_());
792 /* See if the user wants to override the window size. */ {
793 iCommandLineArg *arg = iClob(checkArgument_CommandLine(&d->args, windowWidth_CommandLineOption));
794 if (arg) {
795 d->initialWindowRect.size.x = toInt_String(value_CommandLineArg(arg, 0));
796 }
797 arg = iClob(checkArgument_CommandLine(&d->args, windowHeight_CommandLineOption));
798 if (arg) {
799 d->initialWindowRect.size.y = toInt_String(value_CommandLineArg(arg, 0));
800 }
801 }
790 d->window = new_Window(d->initialWindowRect); 802 d->window = new_Window(d->initialWindowRect);
791 load_Visited(d->visited, dataDir_App_()); 803 load_Visited(d->visited, dataDir_App_());
792 load_Bookmarks(d->bookmarks, dataDir_App_()); 804 load_Bookmarks(d->bookmarks, dataDir_App_());