Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5656 → Rev 5655

/programs/cmm/software_widget/software_widget.c
3,9 → 3,11
*/
 
#define MEMSIZE 0x5000
#include "..\lib\kolibri.h"
#include "..\lib\strings.h"
#include "..\lib\mem.h"
#include "..\lib\file_system.h"
#include "..\lib\dll.h"
#include "..\lib\gui.h"
 
#include "..\lib\obj\libio_lib.h"
122,8 → 124,8
RunProgram(key_value, "");
}
current_item_id++;
if (!strncmp(key_value, "/kolibrios/", 11)) && (!kolibrios_mounted) current_item_id--;
return true;
if (strncmp(key_value, "/kolibrios/", 11)==0) && (!kolibrios_mounted) current_item_id--;
return 1;
}
 
 
139,7 → 141,7
}
 
//do not show items located in /kolibrios/ if this directory not mounted
if (!strncmp(key_value, "/kolibrios/", 11)) && (!kolibrios_mounted) return true;
if (strncmp(key_value, "/kolibrios/", 11)==0) && (!kolibrios_mounted) return 1;
 
if (col==0) DrawBar(0, row * cell_h + list_pos, Form.cwidth, cell_h, LIST_BACKGROUND_COLOR);
DefineButton(col*cell_w+6,row*cell_h + list_pos,cell_w,cell_h-5,current_item_id + 100 + BT_HIDE,0);
152,13 → 154,13
WriteTextCenter(col*cell_w+6,row*cell_h+46 + list_pos,cell_w,0x000000,key_name);
current_item_id++;
col++;
return true;
return 1;
}
 
 
byte process_sections(dword sec_name, f_name)
{
if (!strcmp(sec_name, "Config")) return true;
if (strcmp(sec_name, "Config")==0) return 1;
 
if (item_id_need_to_run!=-1)
{
181,7 → 183,7
list_pos += 20;
ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section);
}
return true;
return 1;
}
 
void draw_top_bar()