[gtk/text-placeholder-visibility: 7/7] text: Update placeholder visibility more
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/text-placeholder-visibility: 7/7] text: Update placeholder visibility more
- Date: Fri, 15 Jul 2022 20:47:10 +0000 (UTC)
commit ac81ed3adb02fec744badb1b621f5605133692b0
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]