diff options
author | Owen Taylor <otaylor@gtk.org> | 1998-05-23 21:55:40 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-05-23 21:55:40 +0000 |
commit | 53d06396b835233d87a06ebd7f86418b5418f19c (patch) | |
tree | 2b9b8335db1be65f1f493063f5323dc32ede8092 /gtk | |
parent | fdd65ddef39ad98af0bf5814662a405f46abd77b (diff) | |
download | gtk+-53d06396b835233d87a06ebd7f86418b5418f19c.tar.gz |
Locate child at (border_width,border_width), not
Sat May 23 17:48:58 1998 Owen Taylor <otaylor@gtk.org>
* 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 <alla@lysator.liu.se> ]
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkeventbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |