projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7743f35
)
text: Update placeholder visibility more
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 15 Jul 2022 20:44:54 +0000
(16:44 -0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/gtk/gtktext.c
b/gtk/gtktext.c
index 92903949fe5dc2998623191f4b9022f178f117b2..3a390fcc11ba3149a78cef2498ab38be22093f69 100644
(file)
--- 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");
}