summaryrefslogtreecommitdiff
path: root/x11/gtk3/patches/patch-ab
blob: 8a3e797ee67140376181d77f4fc9be047f353604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ab,v 1.1.1.1 2011/03/18 17:06:10 drochner Exp $

http://mail.gnome.org/archives/gtk-devel-list/2010-March/msg00113.html

--- gtk/gtkentry.c.orig	2010-05-02 03:14:28.000000000 +0000
+++ gtk/gtkentry.c
@@ -6712,8 +6712,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);
+    }
 }
 
 /**