[gtk+] Use g_strcmp0 where it makes sense
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Use g_strcmp0 where it makes sense
- Date: Tue, 16 Mar 2010 18:02:20 +0000 (UTC)
commit 839c88fd7382e260b5d987423785baa5657356fe
Author: Rafal Luzynski <rl otc pl>
Date: Sat Jan 9 01:15:55 2010 +0100
Use g_strcmp0 where it makes sense
gtk/gtkprintsettings.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkprintsettings.c b/gtk/gtkprintsettings.c
index 4ae7962..6d1c818 100644
--- a/gtk/gtkprintsettings.c
+++ b/gtk/gtkprintsettings.c
@@ -232,7 +232,7 @@ gtk_print_settings_get_bool (GtkPrintSettings *settings,
const gchar *val;
val = gtk_print_settings_get (settings, key);
- if (val != NULL && strcmp (val, "true") == 0)
+ if (g_strcmp0 (val, "true") == 0)
return TRUE;
return FALSE;
@@ -263,10 +263,10 @@ gtk_print_settings_get_bool_with_default (GtkPrintSettings *settings,
const gchar *val;
val = gtk_print_settings_get (settings, key);
- if (val != NULL && strcmp (val, "true") == 0)
+ if (g_strcmp0 (val, "true") == 0)
return TRUE;
- if (val != NULL && strcmp (val, "false") == 0)
+ if (g_strcmp0 (val, "false") == 0)
return FALSE;
return default_val;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]