fontchooser: Remove placeholder from preview entry
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Aug 2022 14:17:47 +0000 (10:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Aug 2022 14:21:37 +0000 (10:21 -0400)
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

index 24437263d0eb91548a01e6bbafd61d7c59e2385d..99324481fe76ab12da0a2edf31fd4f9de89cabe4 100644 (file)
                             </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>
                 </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>