[gnome-font-viewer] font-view: display an error when installation fails



commit 56939d0885b0b53858df3a9c88abbb5294d5f8c3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 4 16:07:58 2019 -0700

    font-view: display an error when installation fails
    
    Instead of failing silently, give the user a clue about what happened.
    
    https://gitlab.gnome.org/GNOME/gnome-font-viewer/issues/10

 src/font-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/font-view.c b/src/font-view.c
index e58095b..2425de1 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -580,7 +580,7 @@ font_view_show_install_error (FontViewApplication *self,
                               GError *error)
 {
     install_button_refresh_appearance (self, error);
-    g_warning ("Install failed: %s", error->message);
+    font_view_show_error (self, _("This font could not be installed."), error->message);
     g_error_free (error);
 }
 


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