Mercurial > audlegacy
changeset 1772:cb216af25b55 trunk
[svn] - framework for repositioning the vis element on the skin.
author | nenolod |
---|---|
date | Wed, 04 Oct 2006 01:35:28 -0700 |
parents | 630cdcaad7de |
children | 7913bae43086 |
files | ChangeLog audacious/widgets/skin.c audacious/widgets/skin.h |
diffstat | 3 files changed, 33 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Oct 03 10:39:17 2006 -0700 +++ b/ChangeLog Wed Oct 04 01:35:28 2006 -0700 @@ -1,3 +1,11 @@ +2006-10-03 17:39:17 +0000 William Pitcock <nenolod@nenolod.net> + revision [2479] + - that should be a lowercase p, not an uppercase one. + + trunk/audacious/widgets/playlist_list.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2006-10-03 01:46:02 +0000 William Pitcock <nenolod@nenolod.net> revision [2477] - fix a potential crash when running audacious remotely
--- a/audacious/widgets/skin.c Tue Oct 03 10:39:17 2006 -0700 +++ b/audacious/widgets/skin.c Wed Oct 04 01:35:28 2006 -0700 @@ -530,6 +530,10 @@ path_p = path_p ? path_p : skin->path; + skin->properties.mainwin_othertext = 0; + skin->properties.mainwin_vis_x = 24; + skin->properties.mainwin_vis_y = 46; + filename = find_file_recursively(path_p, "skin.hints"); if (filename == NULL) @@ -542,9 +546,27 @@ tmp = read_ini_string(filename, "skin", "mainwinOthertext"); if (tmp != NULL) + { skin->properties.mainwin_othertext = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinVisX"); - g_free(tmp); + if (tmp != NULL) + { + skin->properties.mainwin_vis_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinVisY"); + + if (tmp != NULL) + { + skin->properties.mainwin_vis_y = atoi(tmp); + g_free(tmp); + } + g_free(filename); }
--- a/audacious/widgets/skin.h Tue Oct 03 10:39:17 2006 -0700 +++ b/audacious/widgets/skin.h Wed Oct 04 01:35:28 2006 -0700 @@ -73,6 +73,8 @@ typedef struct _SkinProperties { gboolean mainwin_othertext; + gint mainwin_vis_x; + gint mainwin_vis_y; } SkinProperties; #define SKIN_PIXMAP(x) ((SkinPixmap *)(x))