summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2006-03-15 23:31:34 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2006-03-15 23:31:34 +0000
commitb88217152a6f7368331c33f6cc997fcb512231be (patch)
treefa80eb437faf48978012a9962c8c34975cd19bb7
parent2238fe5a73e98d8a25c297d8dec78dbdc0506e8e (diff)
downloadmdk-b88217152a6f7368331c33f6cc997fcb512231be.tar.gz
mdk-b88217152a6f7368331c33f6cc997fcb512231be.tar.bz2
(init_mem_): fixed segfault when clicking Memory title bar (fixes #15910).
-rw-r--r--mixgtk/mixgtk_mixvm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mixgtk/mixgtk_mixvm.c b/mixgtk/mixgtk_mixvm.c
index cc74e27..6b4d6b9 100644
--- a/mixgtk/mixgtk_mixvm.c
+++ b/mixgtk/mixgtk_mixvm.c
@@ -1,9 +1,9 @@
/* -*-c-*- -------------- mixgtk_mixvm.c :
* Implementation of the functions declared in mixgtk_mixvm.h
* ------------------------------------------------------------------
- * $Id: mixgtk_mixvm.c,v 1.16 2005/09/20 19:43:14 jao Exp $
+ * $Id: mixgtk_mixvm.c,v 1.17 2006/03/15 23:31:34 jao Exp $
* ------------------------------------------------------------------
- * Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -440,7 +440,7 @@ cont_clicked_ (GtkWidget *w, GdkEvent *event, gpointer data)
enum {SIZE = 30};
static gchar BUFFER[SIZE];
- if (event->type == GDK_BUTTON_PRESS)
+ if (event && event->type == GDK_BUTTON_PRESS)
{
GtkTreeIter iter;
GtkTreeModel *model;
@@ -519,8 +519,8 @@ init_mem_ (void)
gtk_tree_view_append_column (memory_, col);
- g_signal_connect (G_OBJECT (memory_), "event-after",
- G_CALLBACK (cont_clicked_), NULL);
+ g_signal_connect_after (G_OBJECT (memory_), "event-after",
+ G_CALLBACK (cont_clicked_), NULL);
mixgtk_fontsel_set_font (MIX_FONT_MIXVM, GTK_WIDGET (memory_));