[geany/geany] c4f98d: Use proper string comparison for portability
Nick Treleaven
git-noreply at xxxxx
Sun Aug 11 09:57:53 UTC 2013
Branch: refs/heads/master
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Sun, 11 Aug 2013 09:57:53 UTC
Commit: c4f98d85cbd04b876b1925f69b1a8aff0004e7cf
https://github.com/geany/geany/commit/c4f98d85cbd04b876b1925f69b1a8aff0004e7cf
Log Message:
-----------
Use proper string comparison for portability
Modified Paths:
--------------
src/dialogs.c
Modified: src/dialogs.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -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);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list