[gnome-builder] spellcheck: use contextual logging



commit baa12534884b125df282d13c4fa39ac45e6fafcc
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jan 6 02:07:56 2018 -0800

    spellcheck: use contextual logging

 .../spellcheck/gbp-spell-editor-view-addin.c       |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/spellcheck/gbp-spell-editor-view-addin.c 
b/src/plugins/spellcheck/gbp-spell-editor-view-addin.c
index 15d36d0..7b99e5c 100644
--- a/src/plugins/spellcheck/gbp-spell-editor-view-addin.c
+++ b/src/plugins/spellcheck/gbp-spell-editor-view-addin.c
@@ -136,7 +136,7 @@ gbp_spell_editor_view_addin_load (IdeEditorViewAddin *addin,
        * addins are already in destruction. Therefore, silently
        * fail any further setup.
        */
-      g_warning ("Failed to locate buffer addin, spellcheck disabled");
+      ide_widget_warning (source_view, _("Failed to initialize spellchecking, disabling"));
       return;
     }
 
@@ -243,7 +243,7 @@ gbp_spell_editor_view_addin_begin_checking (GbpSpellEditorViewAddin *self)
 
   if (buffer_addin == NULL)
     {
-      g_warning ("Attempt to start spellchecking without a buffer addin");
+      ide_widget_warning (self->view, _("Failed to initialize spellchecking, disabling"));
       return;
     }
 


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