[gnome-games/gnome-2-26] Fix prefname for fixed card theme on hildon
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-games/gnome-2-26] Fix prefname for fixed card theme on hildon
- Date: Fri, 12 Jun 2009 10:23:24 -0400 (EDT)
commit 3846ba88380feab608f377c6af0cde4076e009e1
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]