summaryrefslogtreecommitdiff
path: root/x11/gtk2/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gtk2/patches/patch-ab')
-rw-r--r--x11/gtk2/patches/patch-ab20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11/gtk2/patches/patch-ab b/x11/gtk2/patches/patch-ab
new file mode 100644
index 00000000000..ca5dfe965fb
--- /dev/null
+++ b/x11/gtk2/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.22 2010/04/15 01:09:55 wiz Exp $
+
+http://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00113.html
+
+--- gtk/gtkentry.c.orig 2010-03-17 13:45:47.000000000 +0000
++++ gtk/gtkentry.c
+@@ -6661,8 +6661,11 @@ gtk_entry_set_buffer (GtkEntry *en
+ g_object_notify (obj, "invisible-char-set");
+ g_object_thaw_notify (obj);
+
+- gtk_editable_set_position (GTK_EDITABLE (entry), 0);
+- gtk_entry_recompute (entry);
++ if (priv->buffer)
++ {
++ gtk_editable_set_position (GTK_EDITABLE (entry), 0);
++ gtk_entry_recompute (entry);
++ }
+ }
+
+