From 53d06396b835233d87a06ebd7f86418b5418f19c Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sat, 23 May 1998 21:55:40 +0000 Subject: Locate child at (border_width,border_width), not Sat May 23 17:48:58 1998 Owen Taylor * gtk/gtkeventbox.c (gtk_event_box_size_allocate): Locate child at (border_width,border_width), not (2*border_width,2*border_width). [ The border is _outside_ widget->window ] * gdk/gdk.[ch]: added gdk_screen_width_mm/gdk_screen_height_mm functions. [From: Alexander Larsson ] --- gtk/gtkeventbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c index d6d699d9ff..9c3fbc1031 100644 --- a/gtk/gtkeventbox.c +++ b/gtk/gtkeventbox.c @@ -161,8 +161,8 @@ gtk_event_box_size_allocate (GtkWidget *widget, widget->allocation = *allocation; bin = GTK_BIN (widget); - child_allocation.x = GTK_CONTAINER (widget)->border_width; - child_allocation.y = GTK_CONTAINER (widget)->border_width; + child_allocation.x = 0; + child_allocation.y = 0; child_allocation.width = MAX (allocation->width - GTK_CONTAINER (widget)->border_width * 2, 0); child_allocation.height = MAX (allocation->height - GTK_CONTAINER (widget)->border_width * 2, 0); -- cgit v1.2.1