[gnome-font-viewer] font-view: add a Location row to the Info dialog



commit 260cab80202455ada69a59743a8d0925306cbafe
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jul 6 10:07:24 2019 -0700

    font-view: add a Location row to the Info dialog
    
    It may be useful to know the location of the font file.
    Add it to the Info dialog.
    
    https://gitlab.gnome.org/GNOME/gnome-font-viewer/issues/1

 src/font-view.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/font-view.c b/src/font-view.c
index cf218c4..18c2ffc 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -345,10 +345,14 @@ populate_grid (FontViewApplication *self,
                FT_Face face)
 {
     g_autoptr (GFileInfo) info = NULL;
+    g_autofree gchar *path = NULL;
     PS_FontInfoRec ps_info;
 
     add_row (grid, _("Name"), face->family_name, FALSE);
 
+    path = g_file_get_path (self->font_file);
+    add_row (grid, _("Location"), path, FALSE);
+
     if (face->style_name)
         add_row (grid, _("Style"), face->style_name, FALSE);
 


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