tFallback from GTK+2 dialog box to "old" code if parent is NULL, since a NULL p… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8961784fb9c319912c11480860c212a71eced50d | |
parent 9a71c4711fe2bd2d64e97acc28a067394f2d33a6 | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 25 Mar 2002 16:54:22 +0000 | |
Fallback from GTK+2 dialog box to "old" code if parent is NULL, since a | |
NULL parent pointer drives GTK+2 nuts. | |
Diffstat: | |
M src/gui_client/gtk_client.c | 3 +-- | |
1 file changed, 1 insertion(+), 2 deletions(-) | |
--- | |
diff --git a/src/gui_client/gtk_client.c b/src/gui_client/gtk_client.c | |
t@@ -176,8 +176,7 @@ static gchar *MenuTranslate(const gchar *path, gpointer fu… | |
static void LogMessage(const gchar *log_domain, GLogLevelFlags log_level, | |
const gchar *message, gpointer user_data) | |
{ | |
- g_print("message: %s\n", message); | |
- GtkMessageBox(MainWindow, message, | |
+ GtkMessageBox(NULL, message, | |
/* Titles of the message boxes for warnings and errors */ | |
log_level & G_LOG_LEVEL_WARNING ? _("Warning") : | |
log_level & G_LOG_LEVEL_CRITICAL ? _("Error") : |