Changeset 12505e3 for variable.c
- Timestamp:
- Jun 21, 2011, 11:19:48 PM (13 years ago)
- Parents:
- 937a00e9 (diff), f0d5ef5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r9efc154 r12505e3 504 504 int owl_variable_pseudologins_set(owl_variable *v, const void *newval) 505 505 { 506 static owl_timer *timer = NULL;506 static guint timer = 0; 507 507 if (newval) { 508 508 if (*(const int*)newval == 1) { 509 509 owl_function_zephyr_buddy_check(0); 510 if (timer == NULL) { 511 timer = owl_select_add_timer("owl_zephyr_buddycheck_timer", 512 180, 180, owl_zephyr_buddycheck_timer, NULL, NULL); 510 if (timer == 0) { 511 timer = g_timeout_add_seconds(180, owl_zephyr_buddycheck_timer, NULL); 513 512 } 514 513 } else { 515 if (timer != NULL) {516 owl_select_remove_timer(timer);517 timer = NULL;514 if (timer != 0) { 515 g_source_remove(timer); 516 timer = 0; 518 517 } 519 518 }
Note: See TracChangeset
for help on using the changeset viewer.