[gnome-games] Fix prefname for fixed card theme on hildon



commit 282603c5f5c320552b4d88d412b544c9baaeb53e
Author: Christian Persch <chpe gnome org>
Date:   Tue Jun 2 19:12:42 2009 +0200

    Fix prefname for fixed card theme on hildon
    
    Strip the file extension off the pref name, not the theme filename!
---
 libgames-support/games-card-theme-fixed.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libgames-support/games-card-theme-fixed.c b/libgames-support/games-card-theme-fixed.c
index 60ceaed..73a19d1 100644
--- a/libgames-support/games-card-theme-fixed.c
+++ b/libgames-support/games-card-theme-fixed.c
@@ -306,12 +306,12 @@ games_card_theme_fixed_class_get_theme_info (GamesCardThemeClass *klass,
 
   display_name = games_filename_to_display_name (filename);
 
+#ifdef HAVE_HILDON
   /* On Hildon, fixed is the default. For pref backward compatibility,
    * we don't add the fixed: prefix there.
    */
-#ifdef HAVE_HILDON
   pref_name = g_strdup (filename);
-  *(strrchr (filename, '.')) = '\0'; /* strip extension */
+  *(strrchr (pref_name, '.')) = '\0'; /* strip extension */
 #else
   pref_name = g_strdup_printf ("fixed:%s", filename);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]