78aa5732f8
referenced URL talks about gtk2-2.18.
20 lines
581 B
Text
20 lines
581 B
Text
$NetBSD: patch-ab,v 1.24 2010/05/31 18:32:41 wiz 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);
|
|
+ }
|
|
}
|
|
|
|
/**
|