diff options
author | Jay Painter <jpaint@src.gnome.org> | 1998-01-15 08:45:57 +0000 |
---|---|---|
committer | Jay Painter <jpaint@src.gnome.org> | 1998-01-15 08:45:57 +0000 |
commit | 18681dc653519b6ac515e48752e7c70dba80c81c (patch) | |
tree | 0f3759b13eda6e6ca81782690413441620299e20 /gtk/gtkentry.c | |
parent | f91efadd4f15a5aac68c2981e18925420be41985 (diff) | |
download | gtk+-18681dc653519b6ac515e48752e7c70dba80c81c.tar.gz |
Fixed a small memory leak in gtkpaned, and I changed the cursor to a
"I" beam for gtkentry. -Jay
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r-- | gtk/gtkentry.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 973a6f09b2..b84cc06eb8 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -591,6 +591,8 @@ gtk_entry_realize (GtkWidget *widget) 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.cursor = entry->cursor = gdk_cursor_new (GDK_XTERM); + attributes_mask |= GDK_WA_CURSOR; entry->text_area = gdk_window_new (widget->window, &attributes, attributes_mask); gdk_window_set_user_data (entry->text_area, entry); @@ -688,6 +690,7 @@ gtk_entry_unrealize (GtkWidget *widget) { gdk_window_set_user_data (entry->text_area, NULL); gdk_window_destroy (entry->text_area); + gdk_cursor_destroy (entry->cursor); } if (widget->window) { |