Skip to content

Commit

Permalink
Use proper string comparison for portability
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Aug 11, 2013
1 parent cc9e56e commit c4f98d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dialogs.c
Expand Up @@ -1309,7 +1309,8 @@ static gint show_prompt(GtkWidget *parent,

#ifdef G_OS_WIN32
/* our native dialog code doesn't support custom buttons */
if (btn_3 == (gchar*)GTK_STOCK_YES && btn_2 == (gchar*)GTK_STOCK_NO && btn_1 == NULL)
if (utils_str_equal(btn_3, GTK_STOCK_YES) &&
utils_str_equal(btn_2, GTK_STOCK_NO) && btn_1 == NULL)
{
gchar *string = (extra_text == NULL) ? g_strdup(question_text) :
g_strconcat(question_text, "\n\n", extra_text, NULL);
Expand Down

0 comments on commit c4f98d8

Please sign in to comment.