diff options
author | Stefano Karapetsas <[email protected]> | 2014-05-18 12:22:36 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-05-18 12:22:36 +0200 |
commit | e964b756355ad5e66a0166d9ca218bdde2054f6d (patch) | |
tree | 6e954f241ce09e6ca540e7cafa92a035f45be113 /applets/clock/clock-face.c | |
parent | 4e757f98c0e977032a2ad4576455aa6407e7537a (diff) | |
download | mate-panel-e964b756355ad5e66a0166d9ca218bdde2054f6d.tar.bz2 mate-panel-e964b756355ad5e66a0166d9ca218bdde2054f6d.tar.xz |
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
Diffstat (limited to 'applets/clock/clock-face.c')
-rw-r--r-- | applets/clock/clock-face.c | 12 |
1 files changed, 3 insertions, 9 deletions
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 <math.h> #include <time.h> -#include <librsvg/rsvg.h> - #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); } |