Fixed bugs in the event listening mechanism
authorJiajia Qin <jiajia.qin@intel.com>
Fri, 6 Sep 2013 02:04:46 +0000 (10:04 +0800)
committerJiajia Qin <jiajia.qin@intel.com>
Fri, 6 Sep 2013 12:08:18 +0000 (20:08 +0800)
commit7cfbacd905b03d3d8e1c43fb220406e00ed690d1
treeff8a23863a1de349006b2ef35ecfee15dfe164fa
parente1691cdb40e8e3efc0363c299d3f77a4a595c963
Fixed bugs in the event listening mechanism

1. Use g_source_remove to unregister the g_timeout_add event.
2. In destructor, check if exists active listening event. If true, stop listening.
27 files changed:
system_info/system_info_battery.h
system_info/system_info_battery_mobile.cc
system_info/system_info_build.h
system_info/system_info_build_mobile.cc
system_info/system_info_cellular_network.h
system_info/system_info_cellular_network_mobile.cc
system_info/system_info_cpu.cc
system_info/system_info_cpu.h
system_info/system_info_device_orientation.h
system_info/system_info_device_orientation_mobile.cc
system_info/system_info_display.h
system_info/system_info_display_x11.cc
system_info/system_info_locale.h
system_info/system_info_locale_mobile.cc
system_info/system_info_network.cc
system_info/system_info_network.h
system_info/system_info_network_mobile.cc
system_info/system_info_peripheral.h
system_info/system_info_peripheral_mobile.cc
system_info/system_info_sim.h
system_info/system_info_sim_mobile.cc
system_info/system_info_storage.cc
system_info/system_info_storage.h
system_info/system_info_storage_mobile.cc
system_info/system_info_wifi_network.cc
system_info/system_info_wifi_network.h
system_info/system_info_wifi_network_mobile.cc