summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-07-03 15:41:07 +0000
committerJames Bursa <james@netsurf-browser.org>2005-07-03 15:41:07 +0000
commiteb6a570aa6de8e5cb4baebfd80a58326c07304d0 (patch)
tree72e11af4e510415d5c9acd1688fa26c5e6fa959a /gtk
parent78102aa4e13401c3c4f8238a09a6d0f9844237a5 (diff)
downloadnetsurf-eb6a570aa6de8e5cb4baebfd80a58326c07304d0.tar.gz
netsurf-eb6a570aa6de8e5cb4baebfd80a58326c07304d0.tar.bz2
[project @ 2005-07-03 15:41:07 by bursa]
Implement gui_window_get_height() for the GTK build. svn path=/import/netsurf/; revision=1782
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk_window.c6
1 files changed, 6 insertions, 0 deletions
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);