[gnome-builder] editor: use g_str_equal()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor: use g_str_equal()
- Date: Mon, 13 Oct 2014 00:45:16 +0000 (UTC)
commit 9069b4c15efc617ab74bea63f153cc05d9fd8fc5
Author: Christian Hergert <christian hergert me>
Date: Sun Oct 12 20:45:11 2014 -0400
editor: use g_str_equal()
src/editor/gb-editor-tab.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index df5fbcf..1d5feb6 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -438,8 +438,7 @@ gb_editor_tab_language_changed (GbEditorTab *tab,
{
const gchar *lang_id = gtk_source_language_get_id (language);
- if ((g_strcmp0 (lang_id, "c") == 0) ||
- (g_strcmp0 (lang_id, "chdr") == 0))
+ if (g_str_equal (lang_id, "c") || g_str_equal (lang_id, "chdr"))
indenter = gb_source_auto_indenter_c_new ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]