gnome-games r8579 - trunk/blackjack/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r8579 - trunk/blackjack/src
- Date: Sun, 18 Jan 2009 14:21:15 +0000 (UTC)
Author: chpe
Date: Sun Jan 18 14:21:15 2009
New Revision: 8579
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8579&view=rev
Log:
Use NULL as theme name to get the default theme. Remove the mangling of
the theme name extension.
Modified:
trunk/blackjack/src/blackjack.cpp
Modified: trunk/blackjack/src/blackjack.cpp
==============================================================================
--- trunk/blackjack/src/blackjack.cpp (original)
+++ trunk/blackjack/src/blackjack.cpp Sun Jan 18 14:21:15 2009
@@ -518,17 +518,9 @@
lcard_style = games_conf_get_string (KEY_DECK_GROUP, KEY_CARD_STYLE, NULL);
if (!lcard_style || !lcard_style[0]) {
g_free (lcard_style);
- lcard_style = g_strdup (GAMES_CARD_THEME_DEFAULT);
+ lcard_style = NULL;
}
-#ifdef HAVE_GNOME
- /* Back compat */
- if (g_str_has_suffix (lcard_style, ".svg"))
- *g_strrstr (lcard_style, ".svg") = '\0';
- else if (g_str_has_suffix (lcard_style, ".png"))
- *g_strrstr (lcard_style, ".png") = '\0';
-#endif /* HAVE_GNOME */
-
return lcard_style;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]