From 0cb2950ba336d6c291a1dc086ad2f3138f37e132 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 10 Feb 2013 16:25:29 +0100 Subject: Support theme-defined thumbnail for protected albums --- src/setup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/setup.c') diff --git a/src/setup.c b/src/setup.c index c78b15f..e4df0dd 100644 --- a/src/setup.c +++ b/src/setup.c @@ -224,6 +224,9 @@ parse_design_setup_xml (const gchar *filename) s = g_strdup_printf ("/design_setup/theme[%d]/album/picture_size/text()", i + 1); theme->album_image_size = xml_file_get_node_value (xml, s); g_free (s); + s = g_strdup_printf ("/design_setup/theme[%d]/album/protected_thumbnail/text()", i + 1); + theme->album_protected_thumbnail = xml_file_get_node_value (xml, s); + g_free (s); s = g_strdup_printf ("/design_setup/theme[%d]/picture/template/text()", i + 1); theme->picture_template = xml_file_get_node_value (xml, s); @@ -408,6 +411,7 @@ free_design_theme_data (TGalleryDesignTheme *theme) g_free (theme->album_template); g_free (theme->album_filename); g_free (theme->album_image_size); + g_free (theme->album_protected_thumbnail); g_free (theme->picture_template); g_free (theme->picture_filename); g_free (theme->picture_image_size); -- cgit v1.2.3