From e964b756355ad5e66a0166d9ca218bdde2054f6d Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 18 May 2014 12:22:36 +0200 Subject: clock: Dont use deprecated rsvg_pixbuf_from_file_at_size This required to copy some code from GTK3 source to make it working with GTK2 too Thanks to Sander Sweers for the help to replace rsvg_pixbuf_from_file_at_size --- applets/clock/clock-face.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'applets/clock/clock-face.c') diff --git a/applets/clock/clock-face.c b/applets/clock/clock-face.c index 25c0b182..558201ab 100644 --- a/applets/clock/clock-face.c +++ b/applets/clock/clock-face.c @@ -15,10 +15,9 @@ #include #include -#include - #include "clock-face.h" #include "clock-location.h" +#include "clock-utils.h" static GHashTable *pixbuf_cache = NULL; @@ -506,18 +505,13 @@ clock_face_load_face (ClockFace *this, gint width, gint height) name = g_strconcat (ICONDIR, "/clock-face-", size_string[priv->size], "-", daytime_string[priv->timeofday], ".svg", NULL); - priv->face_pixbuf = rsvg_pixbuf_from_file_at_size (name, - width, height, - NULL); + priv->face_pixbuf = clock_utils_pixbuf_from_svg_file_at_size (name, width, height); g_free (name); if (!priv->face_pixbuf) { name = g_strconcat (ICONDIR, "/clock-face-", size_string[priv->size], ".svg", NULL); - priv->face_pixbuf = rsvg_pixbuf_from_file_at_size (name, - width, - height, - NULL); + priv->face_pixbuf = clock_utils_pixbuf_from_svg_file_at_size (name, width, height); g_free (name); } -- cgit v1.2.1