[gedit] spell-checker-dialog: show error message
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] spell-checker-dialog: show error message
- Date: Fri, 7 Aug 2015 11:57:14 +0000 (UTC)
commit 8c03af5f0255705625a1701ea701961027c3c147
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Aug 7 13:54:11 2015 +0200
spell-checker-dialog: show error message
plugins/spell/gedit-spell-checker-dialog.c | 13 ++++++++++---
plugins/spell/resources/ui/spell-checker.ui | 2 ++
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-checker-dialog.c b/plugins/spell/gedit-spell-checker-dialog.c
index 6f74e3e..a8422db 100644
--- a/plugins/spell/gedit-spell-checker-dialog.c
+++ b/plugins/spell/gedit-spell-checker-dialog.c
@@ -225,11 +225,18 @@ goto_next (GeditSpellCheckerDialog *dialog)
if (error != NULL)
{
- g_warning ("Spell checker dialog: %s", error->message);
+ gchar *label;
+
+ label = g_strdup_printf ("<b>%s</b> %s", _("Error:"), error->message);
+ gtk_label_set_markup (priv->misspelled_word_label, label);
+ g_free (label);
+
+ set_completed (dialog);
+
g_error_free (error);
+ error = NULL;
}
-
- if (found)
+ else if (found)
{
set_spell_checker (dialog, checker);
set_misspelled_word (dialog, word);
diff --git a/plugins/spell/resources/ui/spell-checker.ui b/plugins/spell/resources/ui/spell-checker.ui
index d26c581..8e23c6f 100644
--- a/plugins/spell/resources/ui/spell-checker.ui
+++ b/plugins/spell/resources/ui/spell-checker.ui
@@ -39,6 +39,8 @@
<property name="can_focus">False</property>
<property name="label" translatable="yes">word</property>
<property name="use_markup">True</property>
+ <property name="wrap">True</property>
+ <property name="max_width_chars">72</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]