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:
parent
0cbb1d97a9
commit
747499de2e
1
rose.c
1
rose.c
|
@ -186,6 +186,7 @@ int handle_key(func id, GtkNotebook *notebook)
|
||||||
gtk_notebook_get_n_pages(notebook) - 1) {
|
gtk_notebook_get_n_pages(notebook) - 1) {
|
||||||
notebook_append(notebook, NULL);
|
notebook_append(notebook, NULL);
|
||||||
gtk_notebook_set_show_tabs(notebook, true);
|
gtk_notebook_set_show_tabs(notebook, true);
|
||||||
|
webkit_web_view_set_zoom_level(notebook_get_webview(notebook), zoom);
|
||||||
} else {
|
} else {
|
||||||
gtk_notebook_next_page(notebook);
|
gtk_notebook_next_page(notebook);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user