[gtk/text-placeholder-visibility: 13/13] text: Update placeholder visibility more




commit b1ebadd772cc31a5fc322c4f699fb19074d109d2
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 15 16:44:54 2022 -0400

    text: Update placeholder visibility more
    
    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 | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 92903949fe..3a390fcc11 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -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");
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]