summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-04-13 00:20:17 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-04-13 00:20:17 +0000
commite6af5d49ae76142a8bbdf5d8b4967189af3b2f15 (patch)
tree8a131c4a5f62bf1a93b2e552a372c8d12e8e8595 /gtk/gtkentry.c
parent0dfc14aa8b8d0e9a388eddfee688294ed4d1e445 (diff)
downloadgdk-pixbuf-e6af5d49ae76142a8bbdf5d8b4967189af3b2f15.tar.gz
Set a flag so instead of clearing the area in advance. That looked
Sun Apr 12 20:09:40 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtklabel.[ch] (gtk_label_expose): Set a flag so instead of clearing the area in advance. That looked _really_ bad. * gtk/gtkcontainer.c (gtk_container_class_init): Changed "focus" to RUN_LAST. * gtk/gtkentry.c (gtk_entry_realize): Fixed place where allocation was used where requisition was meant. (Found by David J N Begley <david@avarice.nepean.uws.edu.au>) * gtk/gtkwindow.c (gtk_window_set_default): Fixed assertion in when setting default to NULL> ("Damon Chaplin" <DAChaplin@email.msn.com>) * gtk/gtkwidget.c (gtk_widget_unparent): Unset the default widget on the toplevel, if necessary. Sun Apr 12 02:04:21 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkpreview.c: Removed unecessary and harmful htons/ntohs when storing properties. (X does the byte swapping itself)
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 2a7b06731..3978dc056 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -462,7 +462,7 @@ gtk_entry_realize (GtkWidget *widget)
attributes.x = widget->style->klass->xthickness + INNER_BORDER;
attributes.y = widget->style->klass->ythickness + INNER_BORDER;
attributes.width = widget->allocation.width - attributes.x * 2;
- attributes.height = widget->allocation.height - attributes.y * 2;
+ attributes.height = widget->requisition.height - attributes.y * 2;
attributes.cursor = entry->cursor = gdk_cursor_new (GDK_XTERM);
attributes_mask |= GDK_WA_CURSOR;