Subversion Repositories Kolibri OS

Rev

Rev 5621 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5621 Rev 5624
Line 119... Line 119...
119
{
119
{
120
	int icon_char_pos;
120
	int icon_char_pos;
121
	if (item_id_need_to_run == current_item_id)
121
	if (item_id_need_to_run == current_item_id)
122
	{
122
	{
123
		icon_char_pos = strchr(key_value, ',');
123
		icon_char_pos = strchr(key_value, ',');
124
		if (icon_char_pos) ESBYTE[key_value + icon_char_pos - 1] = 0; //delete icon from string
124
		if (icon_char_pos) ESBYTE[icon_char_pos] = 0; //delete icon from string
125
		RunProgram(key_value, "");
125
		RunProgram(key_value, "");
126
	}
126
	}
127
	current_item_id++;
127
	current_item_id++;
128
	if (strncmp(key_value, "/kolibrios/", 11)==0) && (!kolibrios_mounted) current_item_id--;
128
	if (strncmp(key_value, "/kolibrios/", 11)==0) && (!kolibrios_mounted) current_item_id--;
129
	return 1;
129
	return 1;
Line 147... Line 147...
147
	if (col==0) DrawBar(0, row * cell_h + list_pos, Form.cwidth, cell_h, LIST_BACKGROUND_COLOR);
147
	if (col==0) DrawBar(0, row * cell_h + list_pos, Form.cwidth, cell_h, LIST_BACKGROUND_COLOR);
148
	DefineButton(col*cell_w+6,row*cell_h + list_pos,cell_w,cell_h-5,current_item_id + 100 + BT_HIDE,0);
148
	DefineButton(col*cell_w+6,row*cell_h + list_pos,cell_w,cell_h-5,current_item_id + 100 + BT_HIDE,0);
149
	tmp = cell_w/2;
149
	tmp = cell_w/2;
Line 150... Line 150...
150
 
150
 
151
	icon_char_pos = strchr(key_value, ',');
151
	icon_char_pos = strchr(key_value, ',');
152
	if (icon_char_pos) icon_id = atoi(key_value + icon_char_pos); else icon_id = default_icon;
152
	if (icon_char_pos) icon_id = atoi(icon_char_pos+1); else icon_id = default_icon;
153
	img_draw stdcall(skin.image, col*cell_w+tmp-10, row*cell_h+5 + list_pos, 32, 32, 0, icon_id*32);
153
	img_draw stdcall(skin.image, col*cell_w+tmp-10, row*cell_h+5 + list_pos, 32, 32, 0, icon_id*32);
154
	WriteTextCenter(col*cell_w+7,row*cell_h+47 + list_pos,cell_w,0xDCDCDC,key_name);
154
	WriteTextCenter(col*cell_w+7,row*cell_h+47 + list_pos,cell_w,0xDCDCDC,key_name);
155
	WriteTextCenter(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0x000000,key_name);
155
	WriteTextCenter(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0x000000,key_name);
156
	current_item_id++;
156
	current_item_id++;