[gnome-games] aisleriot: Add scalable attribute to ArCardThemeInfo
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Add scalable attribute to ArCardThemeInfo
- Date: Tue, 14 Sep 2010 10:33:30 +0000 (UTC)
commit ab99363044942a03a134f58323cc0fa525fdc436
Author: Christian Persch <chpe gnome org>
Date: Tue Sep 7 21:07:24 2010 +0200
aisleriot: Add scalable attribute to ArCardThemeInfo
aisleriot/lib/ar-card-theme-fixed.c | 1 +
aisleriot/lib/ar-card-theme-kde.c | 1 +
aisleriot/lib/ar-card-theme-preimage.c | 1 +
aisleriot/lib/ar-card-theme-private.h | 2 ++
aisleriot/lib/ar-card-theme-pysol.c | 1 +
aisleriot/lib/ar-card-theme-sliced.c | 1 +
aisleriot/lib/ar-card-theme.c | 3 +++
aisleriot/lib/render-cards.c | 1 +
8 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/lib/ar-card-theme-fixed.c b/aisleriot/lib/ar-card-theme-fixed.c
index 7fc46a8..72bac28 100644
--- a/aisleriot/lib/ar-card-theme-fixed.c
+++ b/aisleriot/lib/ar-card-theme-fixed.c
@@ -326,6 +326,7 @@ ar_card_theme_fixed_class_get_theme_info (ArCardThemeClass *klass,
filename,
display_name /* adopts */,
pref_name,
+ FALSE /* not scalable */,
NULL, NULL);
return info;
diff --git a/aisleriot/lib/ar-card-theme-kde.c b/aisleriot/lib/ar-card-theme-kde.c
index 065b9f8..c4135ed 100644
--- a/aisleriot/lib/ar-card-theme-kde.c
+++ b/aisleriot/lib/ar-card-theme-kde.c
@@ -374,6 +374,7 @@ ar_card_theme_kde_class_get_theme_info (ArCardThemeClass *klass,
svg_filename,
display_name /* adopts */,
pref_name /* adopts */,
+ TRUE /* scalable */,
NULL, NULL);
out:
diff --git a/aisleriot/lib/ar-card-theme-preimage.c b/aisleriot/lib/ar-card-theme-preimage.c
index 8cc15ba..aa01ce9 100644
--- a/aisleriot/lib/ar-card-theme-preimage.c
+++ b/aisleriot/lib/ar-card-theme-preimage.c
@@ -242,6 +242,7 @@ ar_card_theme_preimage_class_get_theme_info (ArCardThemeClass *klass,
filename,
display_name /* adopts */,
NULL /* filled in by the derived classes */,
+ TRUE /* scalable */,
NULL, NULL);
return info;
diff --git a/aisleriot/lib/ar-card-theme-private.h b/aisleriot/lib/ar-card-theme-private.h
index 0e290c3..2b37d14 100644
--- a/aisleriot/lib/ar-card-theme-private.h
+++ b/aisleriot/lib/ar-card-theme-private.h
@@ -33,6 +33,7 @@ struct _ArCardThemeInfo {
char *filename;
char *display_name;
char *pref_name;
+ guint scalable : 1;
gpointer data;
GDestroyNotify destroy_notify;
@@ -43,6 +44,7 @@ ArCardThemeInfo *_ar_card_theme_info_new (GType type,
const char *filename,
char *display_name /* adopts */,
char *pref_name /* adopts */,
+ gboolean scalable,
gpointer data,
GDestroyNotify destroy_notify);
diff --git a/aisleriot/lib/ar-card-theme-pysol.c b/aisleriot/lib/ar-card-theme-pysol.c
index c771903..2750e55 100644
--- a/aisleriot/lib/ar-card-theme-pysol.c
+++ b/aisleriot/lib/ar-card-theme-pysol.c
@@ -394,6 +394,7 @@ ar_card_theme_pysol_class_get_theme_info (ArCardThemeClass *klass,
filename,
display_name /* adopts */,
pref_name /* adopts */,
+ FALSE /* not scalable */,
pysol_data,
(GDestroyNotify) pysol_config_txt_data_free);
diff --git a/aisleriot/lib/ar-card-theme-sliced.c b/aisleriot/lib/ar-card-theme-sliced.c
index fe786f8..7a27484 100644
--- a/aisleriot/lib/ar-card-theme-sliced.c
+++ b/aisleriot/lib/ar-card-theme-sliced.c
@@ -204,6 +204,7 @@ ar_card_theme_sliced_class_get_theme_info (ArCardThemeClass *klass,
filename,
display_name /* adopts */,
pref_name /* adopts */,
+ TRUE /* scalable */,
NULL, NULL);
g_free (name);
diff --git a/aisleriot/lib/ar-card-theme.c b/aisleriot/lib/ar-card-theme.c
index ee5154e..589d500 100644
--- a/aisleriot/lib/ar-card-theme.c
+++ b/aisleriot/lib/ar-card-theme.c
@@ -431,6 +431,7 @@ theme_type_compare (GType a,
* @filename:
* @diplay_name:
* @pref_name:
+ * @scalable:
* @data:
* @destroy_notify:
*
@@ -442,6 +443,7 @@ _ar_card_theme_info_new (GType type,
const char *filename,
char *display_name /* adopts */,
char *pref_name /* adopts */,
+ gboolean scalable,
gpointer data /* adoptes */,
GDestroyNotify destroy_notify)
{
@@ -459,6 +461,7 @@ _ar_card_theme_info_new (GType type,
info->filename = g_strdup (filename);
info->display_name = display_name;
info->pref_name = pref_name;
+ info->scalable = scalable != FALSE;
info->data = data;
info->destroy_notify = destroy_notify;
diff --git a/aisleriot/lib/render-cards.c b/aisleriot/lib/render-cards.c
index 531985a..662f487 100644
--- a/aisleriot/lib/render-cards.c
+++ b/aisleriot/lib/render-cards.c
@@ -137,6 +137,7 @@ main (int argc, char *argv[])
theme_filename,
games_filename_to_display_name (theme_name),
g_strdup_printf ("svg:%s", theme_filename) /* FIXMEchpe is this correct? */,
+ TRUE /* scalable */,
NULL, NULL);
g_free (theme_filename);
theme_manager = ar_card_themes_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]