From fc480d2c5381161a58b67aefe281f94300f0dbc0 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 3 Aug 2020 16:56:50 +0200 Subject: clock-face: Use gdk_pixbuf_new_from_resource_at_scale --- applets/clock/clock-face.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'applets/clock/clock-face.c') diff --git a/applets/clock/clock-face.c b/applets/clock/clock-face.c index 30cf16ac..a30afd13 100644 --- a/applets/clock/clock-face.c +++ b/applets/clock/clock-face.c @@ -438,16 +438,14 @@ clock_face_load_face (ClockFace *this, gint width, gint height) "clock-face-", size_string[priv->size], "-", daytime_string[priv->timeofday], ".svg", NULL); - priv->face_pixbuf = clock_utils_pixbuf_from_svg_resource_at_size (name, - width, height); + priv->face_pixbuf = gdk_pixbuf_new_from_resource_at_scale (name, width, height, TRUE, NULL); g_free (name); if (!priv->face_pixbuf) { name = g_strconcat (CLOCK_RESOURCE_PATH "icons/", "clock-face-", size_string[priv->size], ".svg", NULL); - priv->face_pixbuf = clock_utils_pixbuf_from_svg_resource_at_size (name, - width, height); + priv->face_pixbuf = gdk_pixbuf_new_from_resource_at_scale (name, width, height, TRUE, NULL); g_free (name); } -- cgit v1.2.1