diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-07-06 14:28:34 +1000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-07-06 14:28:34 +1000 |
commit | 68ee7aac6e7a16804ac6880cc076c43502989c92 (patch) | |
tree | c352d6ee4e7517d2469c0677123a975f0f66646e /apps/gui/skin_engine/skin_parser.c | |
parent | 65f9df3083623484efccf502c33ecc959555d247 (diff) | |
download | rockbox-68ee7aac6e7a16804ac6880cc076c43502989c92.tar.gz rockbox-68ee7aac6e7a16804ac6880cc076c43502989c92.zip |
skin_engine: Make pressing the setting bar touch region work
might need some tweaking, but works.
Change-Id: I0784cd4fe9996531da6cc275491ff3b4e83cdbcf
Diffstat (limited to 'apps/gui/skin_engine/skin_parser.c')
-rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index cbc2ebed4e..237e4033e2 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c | |||
@@ -1091,7 +1091,9 @@ static int parse_progressbar_tag(struct skin_element* element, | |||
1091 | 1091 | ||
1092 | #ifdef HAVE_TOUCHSCREEN | 1092 | #ifdef HAVE_TOUCHSCREEN |
1093 | if (!suppress_touchregion && | 1093 | if (!suppress_touchregion && |
1094 | (token->type == SKIN_TOKEN_VOLUMEBAR || token->type == SKIN_TOKEN_PROGRESSBAR)) | 1094 | (token->type == SKIN_TOKEN_VOLUMEBAR || |
1095 | token->type == SKIN_TOKEN_PROGRESSBAR || | ||
1096 | token->type == SKIN_TOKEN_SETTINGBAR)) | ||
1095 | { | 1097 | { |
1096 | struct touchregion *region = skin_buffer_alloc(sizeof(*region)); | 1098 | struct touchregion *region = skin_buffer_alloc(sizeof(*region)); |
1097 | struct skin_token_list *item; | 1099 | struct skin_token_list *item; |
@@ -1102,6 +1104,8 @@ static int parse_progressbar_tag(struct skin_element* element, | |||
1102 | 1104 | ||
1103 | if (token->type == SKIN_TOKEN_VOLUMEBAR) | 1105 | if (token->type == SKIN_TOKEN_VOLUMEBAR) |
1104 | region->action = ACTION_TOUCH_VOLUME; | 1106 | region->action = ACTION_TOUCH_VOLUME; |
1107 | else if (token->type == SKIN_TOKEN_SETTINGBAR) | ||
1108 | region->action = ACTION_TOUCH_SETTING; | ||
1105 | else | 1109 | else |
1106 | region->action = ACTION_TOUCH_SCROLLBAR; | 1110 | region->action = ACTION_TOUCH_SCROLLBAR; |
1107 | 1111 | ||