# HG changeset patch # User nenolod # Date 1159950928 25200 # Node ID cb216af25b55100d5dc7ee84b11d629af5b50cf2 # Parent 630cdcaad7deb0d370c8247c82bd3e269d32fe91 [svn] - framework for repositioning the vis element on the skin. diff -r 630cdcaad7de -r cb216af25b55 ChangeLog --- 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 + 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 revision [2477] - fix a potential crash when running audacious remotely diff -r 630cdcaad7de -r cb216af25b55 audacious/widgets/skin.c --- 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); } diff -r 630cdcaad7de -r cb216af25b55 audacious/widgets/skin.h --- 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))