From 5be6bd452d95405e6599f330fa30b0b771b81344 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 4 Sep 2011 18:20:24 +0000 Subject: Remove gui_window_position_frame() definition from core and remove all implementations from front ends. svn path=/trunk/netsurf/; revision=12711 --- gtk/window.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'gtk') diff --git a/gtk/window.c b/gtk/window.c index cf32c3883..eec395f34 100644 --- a/gtk/window.c +++ b/gtk/window.c @@ -690,43 +690,6 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, } -void gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int y1) -{ - /* g is a child frame, we need to place it relative to its parent */ - GtkWidget *w = GTK_WIDGET(g->scrolledwindow); - GtkLayout *f = g->bw->parent->window->layout; - int width = x1 - x0 + 2, height = y1 - y0 + 2; - assert(w); - assert(f); - - if (width < 1) - width = 1; - if (height < 1) - height = 1; - - LOG(("%s: %d,%d %dx%d", g->bw->name, x0, y0, width, height)); - - /* if the window has not changed position or size, do not bother - * moving/resising it. - */ - - LOG((" current: %d,%d %dx%d", - w->allocation.x, w->allocation.y, - w->allocation.width, w->allocation.height)); - - if (w->allocation.x != x0 || w->allocation.y != y0 || - w->allocation.width != width || - w->allocation.height != height) { - LOG((" frame has moved/resized.")); - gtk_layout_move(f, w, x0, y0); - gtk_widget_set_size_request(w, width, height); - } -} - - - - - void nsgtk_reflow_all_windows(void) { -- cgit v1.2.3