GtkFontChooser: Using explicit comparisons for g_strcmp0

This commit is contained in:
Alberto Ruiz 2011-07-25 17:41:59 +01:00 committed by Matthias Clasen
parent ab1ebb072e
commit 26fb5c90b1

View File

@ -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),