gnome-games r7233 - trunk/libgames-support
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7233 - trunk/libgames-support
- Date: Mon, 14 Jan 2008 14:15:17 +0000 (GMT)
Author: chpe
Date: Mon Jan 14 14:15:17 2008
New Revision: 7233
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7233&view=rev
Log:
Don't set use_scalable to TRUE if RSVG isn't supported.
Modified:
trunk/libgames-support/games-card-theme.c
Modified: trunk/libgames-support/games-card-theme.c
==============================================================================
--- trunk/libgames-support/games-card-theme.c (original)
+++ trunk/libgames-support/games-card-theme.c Mon Jan 14 14:15:17 2008
@@ -552,9 +552,18 @@
GamesCardTheme *theme = GAMES_CARD_THEME (object);
switch (prop_id) {
- case PROP_SCALABLE:
- theme->use_scalable = g_value_get_boolean (value) != FALSE;
+ case PROP_SCALABLE: {
+ gboolean use_scalable = (g_value_get_boolean (value) != FALSE);
+
+#ifndef HAVE_RSVG
+ if (use_scalable) {
+ g_warning ("Cannot enable scalable cards since RSVG support is not compiled in\n");
+ use_scalable = FALSE;
+ }
+#endif
+ theme->use_scalable = use_scalable;
break;
+ }
case PROP_THEME_DIRECTORY:
theme->theme_dir = g_value_dup_string (value);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]