text: Update placeholder visibility more
authorMatthias Clasen <mclasen@redhat.com>
Fri, 15 Jul 2022 20:44:54 +0000 (16:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 15 Jul 2022 20:47:02 +0000 (16:47 -0400)
When the text in the buffer changes, we should
update the placeholder visibility, since we might
have gone from empty to non-empty.

gtk/gtktext.c

index 92903949fe5dc2998623191f4b9022f178f117b2..3a390fcc11ba3149a78cef2498ab38be22093f69 100644 (file)
@@ -3695,6 +3695,7 @@ buffer_notify_text (GtkEntryBuffer *buffer,
                     GtkText        *self)
 {
   emit_changed (self);
+  update_placeholder_visibility (self);
   g_object_notify (G_OBJECT (self), "text");
 }