Mercurial > audlegacy
changeset 1779:87d4da9b31ea trunk
[svn] - implement [skin.hints:mainwinPlayStatus(X,Y)] properties.
author | nenolod |
---|---|
date | Wed, 04 Oct 2006 03:05:39 -0700 |
parents | 1d3d05c541d3 |
children | be1de1dd7262 |
files | ChangeLog audacious/mainwin.c audacious/widgets/skin.c audacious/widgets/skin.h |
diffstat | 4 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Oct 04 02:31:31 2006 -0700 +++ b/ChangeLog Wed Oct 04 03:05:39 2006 -0700 @@ -1,3 +1,13 @@ +2006-10-04 09:31:31 +0000 William Pitcock <nenolod@nenolod.net> + revision [2513] + - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties. + + trunk/audacious/mainwin.c | 20 ++++++++++ + trunk/audacious/widgets/skin.c | 80 +++++++++++++++++++++++++++++++++++++++++ + trunk/audacious/widgets/skin.h | 15 +++++++ + 3 files changed, 115 insertions(+) + + 2006-10-04 09:22:04 +0000 William Pitcock <nenolod@nenolod.net> revision [2511] - support for the [skin.hints:mainwinTextWidth] property.
--- a/audacious/mainwin.c Wed Oct 04 02:31:31 2006 -0700 +++ b/audacious/mainwin.c Wed Oct 04 03:05:39 2006 -0700 @@ -865,6 +865,10 @@ if (bmp_active_skin->properties.mainwin_number_4_x && bmp_active_skin->properties.mainwin_number_4_y) widget_move(WIDGET(mainwin_sec_num), bmp_active_skin->properties.mainwin_number_4_x, bmp_active_skin->properties.mainwin_number_4_y); + + if (bmp_active_skin->properties.mainwin_playstatus_x && bmp_active_skin->properties.mainwin_playstatus_y) + widget_move(WIDGET(mainwin_playstatus), bmp_active_skin->properties.mainwin_playstatus_x, + bmp_active_skin->properties.mainwin_playstatus_y); } void
--- a/audacious/widgets/skin.c Wed Oct 04 02:31:31 2006 -0700 +++ b/audacious/widgets/skin.c Wed Oct 04 03:05:39 2006 -0700 @@ -687,6 +687,22 @@ g_free(tmp); } + tmp = read_ini_string(filename, "skin", "mainwinPlayStatusX"); + + if (tmp != NULL) + { + skin->properties.mainwin_playstatus_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinPlayStatusY"); + + if (tmp != NULL) + { + skin->properties.mainwin_playstatus_y = atoi(tmp); + g_free(tmp); + } + g_free(filename); }
--- a/audacious/widgets/skin.h Wed Oct 04 02:31:31 2006 -0700 +++ b/audacious/widgets/skin.h Wed Oct 04 03:05:39 2006 -0700 @@ -95,6 +95,9 @@ gint mainwin_number_4_x; gint mainwin_number_4_y; + + gint mainwin_playstatus_x; + gint mainwin_playstatus_y; } SkinProperties; #define SKIN_PIXMAP(x) ((SkinPixmap *)(x))