gnome-games r8639 - trunk/libgames-support
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8639 - trunk/libgames-support
- Date: Tue, 3 Feb 2009 14:39:31 +0000 (UTC)
Author: chpe
Date: Tue Feb 3 14:39:31 2009
New Revision: 8639
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8639&view=rev
Log:
Fix a bad cast.
Modified:
trunk/libgames-support/games-scores-dialog.c
Modified: trunk/libgames-support/games-scores-dialog.c
==============================================================================
--- trunk/libgames-support/games-scores-dialog.c (original)
+++ trunk/libgames-support/games-scores-dialog.c Tue Feb 3 14:39:31 2009
@@ -133,10 +133,12 @@
static void games_scores_dialog_set_category (GamesScoresDialog *self,
const gchar *key)
{
- gint idx;
+ gpointer value;
+ int idx;
+
+ value = g_hash_table_lookup (self->_priv->categories, key);
+ idx = GPOINTER_TO_INT (value);
- idx = GPOINTER_TO_SIZE (g_hash_table_lookup (self->_priv->categories,
- key));
self->_priv->preservehilight = TRUE;
gtk_combo_box_set_active (GTK_COMBO_BOX (self->_priv->combo), idx);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]