mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:46:00 +01:00
Autoadjust size on startup
This commit is contained in:
parent
d0190bdac6
commit
c7ae813201
2 changed files with 6 additions and 0 deletions
|
@ -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[] = {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue