[gtkhtml] Bug #655277 - Remove 'No such language' runtime warning
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug #655277 - Remove 'No such language' runtime warning
- Date: Thu, 28 Jul 2011 10:49:37 +0000 (UTC)
commit aab3d5739fa48c10b94cff02d2f2c4dc988a8ca0
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 28 12:48:10 2011 +0200
Bug #655277 - Remove 'No such language' runtime warning
components/editor/gtkhtml-editor.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/components/editor/gtkhtml-editor.c b/components/editor/gtkhtml-editor.c
index 8f67222..8971f43 100644
--- a/components/editor/gtkhtml-editor.c
+++ b/components/editor/gtkhtml-editor.c
@@ -420,10 +420,11 @@ editor_method_set_language (GtkHTML *html,
action = gtk_action_group_get_action (action_group, action_name);
g_free (action_name);
+ /* silently ignore when such language doesn't exist, it might mean that
+ user doesn't have installed language for locale the editor is run in
+ */
if (action != NULL)
gtk_action_activate (action);
- else
- g_warning ("%s: No such language", language);
}
static GtkHTMLEditorAPI editor_api = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]