gnome-games r7825 - trunk/libgames-support
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7825 - trunk/libgames-support
- Date: Fri, 15 Aug 2008 10:14:45 +0000 (UTC)
Author: chpe
Date: Fri Aug 15 10:14:45 2008
New Revision: 7825
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7825&view=rev
Log:
Fix compile warnings.
Modified:
trunk/libgames-support/games-card-images.c
trunk/libgames-support/games-conf.c
Modified: trunk/libgames-support/games-card-images.c
==============================================================================
--- trunk/libgames-support/games-card-images.c (original)
+++ trunk/libgames-support/games-card-images.c Fri Aug 15 10:14:45 2008
@@ -228,7 +228,7 @@
switch (prop_id) {
case PROP_THEME:
- images->theme = g_value_dup_object (value);
+ images->theme = GAMES_CARD_THEME (g_value_dup_object (value));
g_assert (images->theme);
g_signal_connect (images->theme, "changed",
Modified: trunk/libgames-support/games-conf.c
==============================================================================
--- trunk/libgames-support/games-conf.c (original)
+++ trunk/libgames-support/games-conf.c Fri Aug 15 10:14:45 2008
@@ -945,9 +945,8 @@
games_conf_get_double (const char *group, const char *key,
GError ** error)
{
- GamesConfPrivate *priv = instance->priv;
-
#if defined(HAVE_GNOME)
+ GamesConfPrivate *priv = instance->priv;
double value;
char *key_name;
@@ -960,6 +959,8 @@
#warning games_conf_get_double not supported on maemo!
return 0.0;
#else
+ GamesConfPrivate *priv = instance->priv;
+
return g_key_file_get_double (priv->key_file, group ? group : priv->main_group, key, error);
#endif /* HAVE_GNOME */
}
@@ -975,9 +976,8 @@
void
games_conf_set_double (const char *group, const char *key, double value)
{
- GamesConfPrivate *priv = instance->priv;
-
#if defined(HAVE_GNOME)
+ GamesConfPrivate *priv = instance->priv;
char *key_name;
key_name = get_gconf_key_name (group, key);
@@ -986,6 +986,8 @@
#elif defined(HAVE_HILDON)
#warning games_conf_set_double not implemented on maemo!
#else
+ GamesConfPrivate *priv = instance->priv;
+
g_key_file_set_double (priv->key_file, group ? group : priv->main_group, key, value);
g_signal_emit (instance, signals[VALUE_CHANGED], 0, group, key);
#endif /* HAVE_GNOME */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]