event_methods.call_callback(cb);
}
+char *
+event_system(void)
+{
+ return e_system;
+}
+
int
event_request_system(const char *system, const char *requestor)
{
struct event_idle *event_add_idle(int priority, struct callback *cb);
void event_remove_idle(struct event_idle *ev);
void event_call_callback(struct callback_list *cb);
+char *event_system(void);
int event_request_system(const char *system, const char *requestor);
/* end of prototypes */
#ifdef __cplusplus
displaylist->m=NULL;
}
profile(1,"process_selection\n");
- event_remove_idle(displaylist->idle_ev);
+ if (displaylist->idle_ev)
+ event_remove_idle(displaylist->idle_ev);
displaylist->idle_ev=NULL;
callback_destroy(displaylist->idle_cb);
displaylist->idle_cb=NULL;
void
messagelist_init(struct messagelist *this_)
{
+ if (!event_system())
+ return;
this_->msg_cleanup_cb = callback_new_1(callback_cast(message_cleanup), this_);
this_->msg_cleanup_to = event_add_timeout(1000, 1, this_->msg_cleanup_cb);
}