diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-19 16:03:34 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-06-19 16:03:34 -0400 |
commit | 52a73fd68eb5ff84cfd18f9ff83e44af1a312f0d (patch) | |
tree | bdc1f9c6612fae8760566f6bfa28e26f5112f1ef | |
parent | 810627ecd8ee4c7a7ae18d75a2e50bcc43fbc600 (diff) | |
download | ayatana-ido-52a73fd68eb5ff84cfd18f9ff83e44af1a312f0d.tar.gz ayatana-ido-52a73fd68eb5ff84cfd18f9ff83e44af1a312f0d.tar.bz2 ayatana-ido-52a73fd68eb5ff84cfd18f9ff83e44af1a312f0d.zip |
idomediaplayermenuitem: make album art size a #define
-rw-r--r-- | src/idomediaplayermenuitem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/idomediaplayermenuitem.c b/src/idomediaplayermenuitem.c index 7eef456..d4bf992 100644 --- a/src/idomediaplayermenuitem.c +++ b/src/idomediaplayermenuitem.c @@ -24,6 +24,8 @@ #include "idomediaplayermenuitem.h" #include "idoactionhelper.h" +#define ALBUM_ART_SIZE 60 + typedef GtkMenuItemClass IdoMediaPlayerMenuItemClass; struct _IdoMediaPlayerMenuItem @@ -203,7 +205,7 @@ ido_media_player_menu_item_set_album_art (IdoMediaPlayerMenuItem *self, GError *error = NULL; path = g_file_get_path (file); - img = gdk_pixbuf_new_from_file_at_size (path, 60, 60, &error); + img = gdk_pixbuf_new_from_file_at_size (path, ALBUM_ART_SIZE, ALBUM_ART_SIZE, &error); if (img) { gtk_image_set_from_pixbuf (GTK_IMAGE (self->album_art), img); |