# HG changeset patch # User nenolod # Date 1159954291 25200 # Node ID 1d3d05c541d3dbf951d1d8df76aeef9a9d082ffc # Parent 17e38b5c8e2f7c8d56bfb1a19a3d2c77736ade1b [svn] - support for: [skin.hints:mainwinNumber(0-4)(X,Y)] properties. diff -r 17e38b5c8e2f -r 1d3d05c541d3 ChangeLog --- a/ChangeLog Wed Oct 04 02:22:04 2006 -0700 +++ b/ChangeLog Wed Oct 04 02:31:31 2006 -0700 @@ -1,3 +1,13 @@ +2006-10-04 09:22:04 +0000 William Pitcock + revision [2511] + - support for the [skin.hints:mainwinTextWidth] property. + + trunk/audacious/mainwin.c | 4 ++++ + trunk/audacious/widgets/skin.c | 8 ++++++++ + trunk/audacious/widgets/skin.h | 1 + + 3 files changed, 13 insertions(+) + + 2006-10-04 09:21:05 +0000 Yoshiki Yazawa revision [2509] - make audacious re-link when libwidgets.a has been updated. diff -r 17e38b5c8e2f -r 1d3d05c541d3 audacious/mainwin.c --- a/audacious/mainwin.c Wed Oct 04 02:22:04 2006 -0700 +++ b/audacious/mainwin.c Wed Oct 04 02:31:31 2006 -0700 @@ -845,6 +845,26 @@ if (bmp_active_skin->properties.mainwin_infobar_x && bmp_active_skin->properties.mainwin_infobar_y) widget_move(WIDGET(mainwin_othertext), bmp_active_skin->properties.mainwin_infobar_x, bmp_active_skin->properties.mainwin_infobar_y); + + if (bmp_active_skin->properties.mainwin_number_0_x && bmp_active_skin->properties.mainwin_number_0_y) + widget_move(WIDGET(mainwin_minus_num), bmp_active_skin->properties.mainwin_number_0_x, + bmp_active_skin->properties.mainwin_number_0_y); + + if (bmp_active_skin->properties.mainwin_number_1_x && bmp_active_skin->properties.mainwin_number_1_y) + widget_move(WIDGET(mainwin_10min_num), bmp_active_skin->properties.mainwin_number_1_x, + bmp_active_skin->properties.mainwin_number_1_y); + + if (bmp_active_skin->properties.mainwin_number_2_x && bmp_active_skin->properties.mainwin_number_2_y) + widget_move(WIDGET(mainwin_min_num), bmp_active_skin->properties.mainwin_number_2_x, + bmp_active_skin->properties.mainwin_number_2_y); + + if (bmp_active_skin->properties.mainwin_number_3_x && bmp_active_skin->properties.mainwin_number_3_y) + widget_move(WIDGET(mainwin_10sec_num), bmp_active_skin->properties.mainwin_number_3_x, + bmp_active_skin->properties.mainwin_number_3_y); + + 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); } void diff -r 17e38b5c8e2f -r 1d3d05c541d3 audacious/widgets/skin.c --- a/audacious/widgets/skin.c Wed Oct 04 02:22:04 2006 -0700 +++ b/audacious/widgets/skin.c Wed Oct 04 02:31:31 2006 -0700 @@ -607,6 +607,86 @@ g_free(tmp); } + tmp = read_ini_string(filename, "skin", "mainwinNumber0X"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_0_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber0Y"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_0_y = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber1X"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_1_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber1Y"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_1_y = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber2X"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_2_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber2Y"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_2_y = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber3X"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_3_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber3Y"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_3_y = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber4X"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_4_x = atoi(tmp); + g_free(tmp); + } + + tmp = read_ini_string(filename, "skin", "mainwinNumber4Y"); + + if (tmp != NULL) + { + skin->properties.mainwin_number_4_y = atoi(tmp); + g_free(tmp); + } + g_free(filename); } diff -r 17e38b5c8e2f -r 1d3d05c541d3 audacious/widgets/skin.h --- a/audacious/widgets/skin.h Wed Oct 04 02:22:04 2006 -0700 +++ b/audacious/widgets/skin.h Wed Oct 04 02:31:31 2006 -0700 @@ -80,6 +80,21 @@ gint mainwin_text_width; gint mainwin_infobar_x; gint mainwin_infobar_y; + + gint mainwin_number_0_x; + gint mainwin_number_0_y; + + gint mainwin_number_1_x; + gint mainwin_number_1_y; + + gint mainwin_number_2_x; + gint mainwin_number_2_y; + + gint mainwin_number_3_x; + gint mainwin_number_3_y; + + gint mainwin_number_4_x; + gint mainwin_number_4_y; } SkinProperties; #define SKIN_PIXMAP(x) ((SkinPixmap *)(x))