From eb6a570aa6de8e5cb4baebfd80a58326c07304d0 Mon Sep 17 00:00:00 2001 From: James Bursa <james@netsurf-browser.org> Date: Sun, 3 Jul 2005 15:41:07 +0000 Subject: [PATCH] [project @ 2005-07-03 15:41:07 by bursa] Implement gui_window_get_height() for the GTK build. svn path=/import/netsurf/; revision=1782 --- gtk/gtk_window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index be28605ac..42d975777 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -305,6 +305,12 @@ int gui_window_get_width(struct gui_window* g) } +int gui_window_get_height(struct gui_window* g) +{ + return g->drawing_area->allocation.height; +} + + void gui_window_set_extent(struct gui_window *g, int width, int height) { gtk_widget_set_size_request(g->drawing_area, width, height);