From c7ae81320166542315694819ad56de1ef27b708c Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Thu, 28 Jan 2010 14:14:01 +0100 Subject: [PATCH] Autoadjust size on startup --- config.def.h | 1 + zathura.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/config.def.h b/config.def.h index 9840278..469e58d 100644 --- a/config.def.h +++ b/config.def.h @@ -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[] = { diff --git a/zathura.c b/zathura.c index e8f45e0..19c6483 100644 --- a/zathura.c +++ b/zathura.c @@ -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;