[gtk+] GtkFontChooser: Using explicit comparisons for g_strcmp0
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkFontChooser: Using explicit comparisons for g_strcmp0
- Date: Mon, 15 Aug 2011 23:54:46 +0000 (UTC)
commit 26fb5c90b15a78f2aaa442ec19948535ee178929
Author: Alberto Ruiz <aruiz gnome org>
Date: Mon Jul 25 17:41:59 2011 +0100
GtkFontChooser: Using explicit comparisons for g_strcmp0
gtk/gtkfontchooser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index a017fcf..6575663 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -277,9 +277,9 @@ inserted_text_cb (GtkEntryBuffer *buffer,
GtkWidget *entry = priv->search_entry;
if (g_strcmp0 (gtk_entry_get_icon_stock (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY),
- "edit-clear-symbolic") ||
+ "edit-clear-symbolic") != 0 ||
g_strcmp0 (gtk_entry_get_icon_stock (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY),
- GTK_STOCK_CLEAR))
+ GTK_STOCK_CLEAR) != 0)
{
GIcon *icon = g_themed_icon_new_with_default_fallbacks ("edit-clear-symbolic");
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]