Autoadjust size on startup

This commit is contained in:
Moritz Lipp 2010-01-28 14:14:01 +01:00
parent d0190bdac6
commit c7ae813201
2 changed files with 6 additions and 0 deletions

View file

@ -41,6 +41,7 @@ static const char DEFAULT_TEXT[] = "[No Name]";
/* additional settings */
#define SHOW_SCROLLBARS 0
#define ADJUST_OPEN ADJUST_BESTFIT
/* shortcuts */
Shortcut shortcuts[] = {

View file

@ -2322,6 +2322,11 @@ int main(int argc, char* argv[])
cmd_open(2, &argv[1]);
gtk_widget_show_all(GTK_WIDGET(Zathura.UI.window));
Argument arg;
arg.n = ADJUST_OPEN;
sc_adjust_window(&arg);
gtk_main();
return 0;