[gtk/wip/jimmac/HC-italic-hints] fontchooser: Remove placeholder from preview entry



commit 975ab6e7cf92e31de7a8244029cbf5b0cfd9c7ff
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 29 10:17:47 2022 -0400

    fontchooser: Remove placeholder from preview entry
    
    The way we explicitly set the font on the entry
    conflicts with the placeholder text styling. But the
    entry isn't normally empty, so placeholder text is
    not that important here. Remove it and use a tooltip
    instead.

 gtk/ui/gtkfontchooserwidget.ui | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/ui/gtkfontchooserwidget.ui b/gtk/ui/gtkfontchooserwidget.ui
index 24437263d0..99324481fe 100644
--- a/gtk/ui/gtkfontchooserwidget.ui
+++ b/gtk/ui/gtkfontchooserwidget.ui
@@ -185,7 +185,7 @@
                             </child>
                             <child>
                               <object class="GtkEntry" id="preview">
-                                <property name="placeholder-text" translatable="yes">Preview text</property>
+                                <property name="tooltip-text" translatable="yes">Preview Font</property>
                                 <child>
                                   <object class="GtkEventControllerScroll">
                                     <property name="flags" translatable="yes">horizontal</property>
@@ -321,7 +321,7 @@
                 </child>
                 <child>
                   <object class="GtkEntry" id="preview2">
-                    <property name="placeholder-text" translatable="yes">Preview text</property>
+                    <property name="tooltip-text" translatable="yes">Preview Font</property>
                     <property name="text" bind-source="preview" bind-property="text" 
bind-flags="bidirectional"/>
                     <property name="attributes" bind-source="preview" bind-property="attributes" 
bind-flags="bidirectional"/>
                   </object>


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