diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2009-03-03 22:19:24 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2009-03-03 22:19:24 (GMT) |
commit | 1caf1c872833e4cc872e6796b7200680244b1171 (patch) | |
tree | d221bf1673439590473b44acbc1ace22c8d0c8e6 | |
parent | 41d48c98145338a521dcdd2e68669c706854ab0e (diff) |
- Patch from Miguel. On some windows manager, we were crashing
when opening a configuration windows while in fullscreen.
svn path=/trunk/; revision=3756
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/gcompris/board_config.c | 8 |
2 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,12 @@ 2009-03-03 Bruno coudoin <bruno.coudoin@free.fr> + - Patch from Miguel. On some windows manager, we were crashing + when opening a configuration windows while in fullscreen. + + * src/gcompris/board_config.c: (gc_board_config_window_display): + +2009-03-03 Bruno coudoin <bruno.coudoin@free.fr> + - Was not compiling when USE_GNET was not active. * src/gcompris/gc_net.c: (gc_net_destroy), diff --git a/src/gcompris/board_config.c b/src/gcompris/board_config.c index d47a859..b6d371b 100644 --- a/src/gcompris/board_config.c +++ b/src/gcompris/board_config.c @@ -1,7 +1,5 @@ /* gcompris - board_config.c * - * Time-stamp: <2007-08-22 01:21:27 bruno> - * * Copyright (C) 2001 Pascal Georges * * This program is free software; you can redistribute it and/or modify @@ -175,7 +173,7 @@ gc_board_config_window_display(gchar *label, GcomprisConfCallback callback) memset(&last_configure_event, 0, sizeof(GdkEventConfigure)); gtk_widget_add_events(GTK_WIDGET(config->conf_window), GDK_STRUCTURE_MASK); gtk_signal_connect (GTK_OBJECT (config->conf_window), "configure_event", - GTK_SIGNAL_FUNC (_conf_window_configured), 0); + GTK_SIGNAL_FUNC (_conf_window_configured), config); } else #endif @@ -341,7 +339,7 @@ gc_board_config_spin_int(GcomprisBoardConf *config, const gchar *label, gchar *k gtk_spin_button_set_digits ( GTK_SPIN_BUTTON(spin), 0); gtk_spin_button_set_value ( GTK_SPIN_BUTTON(spin), (gdouble) init); - + _gc_boardconf_key *u = g_malloc0(sizeof(_gc_boardconf_key)); u->key = g_strdup(key); u->config = config; @@ -351,7 +349,7 @@ gc_board_config_spin_int(GcomprisBoardConf *config, const gchar *label, gchar *k G_CALLBACK(spin_changed), u); g_signal_connect( G_OBJECT(spin), - "destroy", + "destroy", G_CALLBACK(_gc_destroy_boardconf_key), u); |