summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window.c37
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)
{