diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2006-03-15 23:31:34 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2006-03-15 23:31:34 +0000 |
commit | e92dc65bd196fd919400fc3ba116fb16e33c9a3f (patch) | |
tree | a74f5cbac65c1b9043ff99070b1a97f8475eb85e /mixgtk | |
parent | a60e8da2a1b976c5a904a5e92c9bd754d8bba1a0 (diff) | |
download | mdk-e92dc65bd196fd919400fc3ba116fb16e33c9a3f.tar.gz mdk-e92dc65bd196fd919400fc3ba116fb16e33c9a3f.tar.bz2 |
(init_mem_): fixed segfault when clicking Memory title bar (fixes #15910).
Diffstat (limited to 'mixgtk')
-rw-r--r-- | mixgtk/mixgtk_mixvm.c | 10 |
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_)); |