*add* autohide
*fix* issue 182 by using select instead of pselect git-svn-id: http://tint2.googlecode.com/svn/trunk@321 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -50,7 +50,7 @@ char *path_energy_full=0;
|
||||
char *path_current_now=0;
|
||||
char *path_status=0;
|
||||
|
||||
void update_batterys()
|
||||
void update_batterys(void* arg)
|
||||
{
|
||||
int i;
|
||||
update_battery();
|
||||
@@ -133,7 +133,7 @@ void init_battery()
|
||||
g_free(battery_dir);
|
||||
|
||||
if (battery_enabled && battery_timeout==0)
|
||||
battery_timeout = add_timeout(10, 5000, update_batterys);
|
||||
battery_timeout = add_timeout(10, 5000, update_batterys, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user