gnome-games r8495 - trunk/aisleriot
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8495 - trunk/aisleriot
- Date: Tue, 6 Jan 2009 18:20:26 +0000 (UTC)
Author: chpe
Date: Tue Jan 6 18:20:26 2009
New Revision: 8495
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8495&view=rev
Log:
Move theme manager signal connection after setting up the UI, so that we
don't crash if we need to request the themes list on startup (when
failing to get the pref'd theme).
Modified:
trunk/aisleriot/window.c
Modified: trunk/aisleriot/window.c
==============================================================================
--- trunk/aisleriot/window.c (original)
+++ trunk/aisleriot/window.c Tue Jan 6 18:20:26 2009
@@ -2435,8 +2435,6 @@
#endif /* GNOME_ENABLE_DEBUG */
priv->theme_manager = games_card_themes_new ();
- g_signal_connect (priv->theme_manager, "changed",
- G_CALLBACK (install_card_theme_menu), window);
priv->board = AISLERIOT_BOARD (aisleriot_board_new (priv->game));
@@ -2578,6 +2576,9 @@
g_object_set (action, "hide-if-empty", GINT_TO_POINTER (FALSE), NULL);
#endif
+ g_signal_connect (priv->theme_manager, "changed",
+ G_CALLBACK (install_card_theme_menu), window);
+
/* The actions and menus are done. The
* recent games menu will be updated when the initial game loads.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]