tFallback from GTK+2 dialog box to "old" code if parent is NULL, since a NULL parent pointer drives GTK+2 nuts. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8961784fb9c319912c11480860c212a71eced50d
(DIR) parent 9a71c4711fe2bd2d64e97acc28a067394f2d33a6
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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 func_data)
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") :