diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2007-06-18 18:48:37 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2007-06-18 18:48:37 +0000 |
commit | 7d757620040e6da335617545af7b9ee13a7d591c (patch) | |
tree | 4a259c32442d604b8ccfdcb9c74baf5dbc66b6a7 /gtk/gtk_window.c | |
parent | 36ecbc6be227102eed47b8a61f8de46e322d70ec (diff) | |
download | netsurf-7d757620040e6da335617545af7b9ee13a7d591c.tar.gz netsurf-7d757620040e6da335617545af7b9ee13a7d591c.tar.bz2 |
Read dimensions from viewport not drawing area. This causes renders to not go overheight. As a result, remove the scheduled callback for after throbbing. This means we don't get the white flash on GTK page completion.
svn path=/trunk/netsurf/; revision=3352
Diffstat (limited to 'gtk/gtk_window.c')
-rw-r--r-- | gtk/gtk_window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index 317af10a0..a6b1141d2 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -825,8 +825,8 @@ bool gui_copy_to_clipboard(struct selection *s) void gui_window_get_dimensions(struct gui_window *g, int *width, int *height, bool scaled) { - *width = GTK_WIDGET(g->drawing_area)->allocation.width; - *height = GTK_WIDGET(g->drawing_area)->allocation.height; + *width = GTK_WIDGET(g->viewport)->allocation.width; + *height = GTK_WIDGET(g->viewport)->allocation.height; if (scaled) { *width /= g->scale; |