diff options
author | rbuj <[email protected]> | 2020-08-03 16:56:50 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2020-08-05 06:48:04 +0000 |
commit | fc480d2c5381161a58b67aefe281f94300f0dbc0 (patch) | |
tree | 3fd11b36ef46696cb52e441fcaf9a6b2c86b9fc4 /applets/clock/clock-face.c | |
parent | 1c72cac05bf6c42cd6aa0832e398254a5107f5b8 (diff) | |
download | mate-panel-fc480d2c5381161a58b67aefe281f94300f0dbc0.tar.bz2 mate-panel-fc480d2c5381161a58b67aefe281f94300f0dbc0.tar.xz |
clock-face: Use gdk_pixbuf_new_from_resource_at_scale
Diffstat (limited to 'applets/clock/clock-face.c')
-rw-r--r-- | applets/clock/clock-face.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |