mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:05:59 +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 */
|
/* additional settings */
|
||||||
#define SHOW_SCROLLBARS 0
|
#define SHOW_SCROLLBARS 0
|
||||||
|
#define ADJUST_OPEN ADJUST_BESTFIT
|
||||||
|
|
||||||
/* shortcuts */
|
/* shortcuts */
|
||||||
Shortcut shortcuts[] = {
|
Shortcut shortcuts[] = {
|
||||||
|
|
|
@ -2322,6 +2322,11 @@ int main(int argc, char* argv[])
|
||||||
cmd_open(2, &argv[1]);
|
cmd_open(2, &argv[1]);
|
||||||
|
|
||||||
gtk_widget_show_all(GTK_WIDGET(Zathura.UI.window));
|
gtk_widget_show_all(GTK_WIDGET(Zathura.UI.window));
|
||||||
|
|
||||||
|
Argument arg;
|
||||||
|
arg.n = ADJUST_OPEN;
|
||||||
|
sc_adjust_window(&arg);
|
||||||
|
|
||||||
gtk_main();
|
gtk_main();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue