diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-04 18:20:24 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-04 18:20:24 +0000 |
commit | 5be6bd452d95405e6599f330fa30b0b771b81344 (patch) | |
tree | e09e37d431f16e027f52f64d2d1c7dced5433c34 /gtk/window.c | |
parent | bd94e21aed23d7fe264d700ef748942c09be3570 (diff) | |
download | netsurf-5be6bd452d95405e6599f330fa30b0b771b81344.tar.gz netsurf-5be6bd452d95405e6599f330fa30b0b771b81344.tar.bz2 |
Remove gui_window_position_frame() definition from core and remove all implementations from front ends.
svn path=/trunk/netsurf/; revision=12711
Diffstat (limited to 'gtk/window.c')
-rw-r--r-- | gtk/window.c | 37 |
1 files changed, 0 insertions, 37 deletions
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) { |