[gtk+] Font chooser: Nice 'not found' message



commit 972e59d05edf22cd66ddd511a902627b6c1fd4f7
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat May 9 02:06:28 2015 -0400

    Font chooser: Nice 'not found' message
    
    This copies the style that is used in the file chooser
    now.

 gtk/ui/gtkfontchooserwidget.ui |   40 +++++++++++++++++++++++++++++++++-------
 1 files changed, 33 insertions(+), 7 deletions(-)
---
diff --git a/gtk/ui/gtkfontchooserwidget.ui b/gtk/ui/gtkfontchooserwidget.ui
index 77590c1..310f533 100644
--- a/gtk/ui/gtkfontchooserwidget.ui
+++ b/gtk/ui/gtkfontchooserwidget.ui
@@ -102,15 +102,41 @@
               </packing>
             </child>
             <child>
-              <object class="GtkLabel">
+              <object class="GtkGrid">
                 <property name="visible">True</property>
+                <property name="column_spacing">12</property>
+                <property name="hexpand">True</property>
+                <property name="vexpand">True</property>
                 <property name="halign">center</property>
-                <property name="valign">start</property>
-                <property name="margin_start">12</property>
-                <property name="margin_end">12</property>
-                <property name="margin_top">12</property>
-                <property name="margin_bottom">12</property>
-                <property name="label" translatable="yes">No fonts matched your search. You can revise your 
search and try again.</property>
+                <property name="valign">center</property>
+                <style>
+                  <class name="dim-label"/>
+                </style>
+                <child>
+                  <object class="GtkImage">
+                    <property name="visible">True</property>
+                    <property name="icon-name">emblem-documents-symbolic</property>
+                    <property name="pixel-size">64</property>
+                  </object>
+                  <packing>
+                    <property name="left_attach">0</property>
+                    <property name="top_attach">0</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="visible">True</property>
+                    <property name="label" translatable="yes">No Fonts Found</property>
+                    <attributes>
+                      <attribute name="weight" value="bold"/>
+                      <attribute name="scale" value="1.2"/>
+                    </attributes>
+                  </object>
+                  <packing>
+                    <property name="left_attach">1</property>
+                    <property name="top_attach">0</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="name">empty</property>


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