Changeset 290:f3cc1ad2e9e6 in qutecom-2.2 for libs/imwrapper/src/purple/PurpleIMFactory.cpp
- Timestamp:
- Jan 26, 2009 5:42:57 PM (4 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
libs/imwrapper/src/purple/PurpleIMFactory.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libs/imwrapper/src/purple/PurpleIMFactory.cpp
r167 r290 241 241 } 242 242 243 static gboolean quit_timeout = 0;244 245 243 void PurpleIMFactory::PurpleQuitCallback() { 246 244 LOG_DEBUG(""); … … 250 248 } 251 249 252 static gboolean terminate_cb(gpointer data) 253 { 250 void PurpleIMFactory::terminate() { 251 if (AccountMngr) { 252 AccountMngr->reset(); 253 } 254 254 255 purple_connections_set_ui_ops(&null_conn_wg_ops); 255 256 purple_accounts_set_ui_ops(&null_acc_wg_ops); … … 257 258 258 259 purple_core_quit(); 259 260 if (quit_timeout > 0)261 {262 purple_timeout_remove(quit_timeout);263 quit_timeout = 0;264 }265 266 return TRUE;267 }268 269 void PurpleIMFactory::terminate() {270 if (AccountMngr) {271 AccountMngr->reset();272 }273 274 quit_timeout = purple_timeout_add(0, (GSourceFunc) terminate_cb, NULL);275 260 } 276 261
Note: See TracChangeset
for help on using the changeset viewer.
