hack: create new tab with correct zoom leve. Code could be cleaner.

I am fairly uncertain about the quality of this commit,
it could easily be that there is a much better way
of doing this kind of thing

In particular, maybe this could be done inside the
notebook_append function?
This commit is contained in:
NunoSempere 2022-12-13 14:55:16 +00:00
parent 0cbb1d97a9
commit 747499de2e

1
rose.c
View File

@ -186,6 +186,7 @@ int handle_key(func id, GtkNotebook *notebook)
gtk_notebook_get_n_pages(notebook) - 1) {
notebook_append(notebook, NULL);
gtk_notebook_set_show_tabs(notebook, true);
webkit_web_view_set_zoom_level(notebook_get_webview(notebook), zoom);
} else {
gtk_notebook_next_page(notebook);
}