2016-02-18 08:34:28 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2016 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_GUI_IDLE_H
|
|
|
|
#define OCARINA_GUI_IDLE_H
|
2016-08-20 09:01:29 -04:00
|
|
|
#include <core/idle.h>
|
|
|
|
#include <gui/builder.h>
|
2016-02-18 08:34:28 -05:00
|
|
|
|
|
|
|
/* Called to enable processing idle queue tasks. */
|
|
|
|
void gui_idle_enable();
|
|
|
|
|
2016-02-26 10:43:07 -05:00
|
|
|
/* Called to disable processing idle queue tasks. */
|
|
|
|
void gui_idle_disable();
|
|
|
|
|
2016-08-20 09:01:29 -04:00
|
|
|
/* Called to get a pointer to the idle progress bar. */
|
|
|
|
static inline GtkProgressBar *gui_progress_bar()
|
|
|
|
{
|
2016-08-20 09:03:35 -04:00
|
|
|
return GTK_PROGRESS_BAR(gui_builder_widget("progress_bar"));
|
2016-08-20 09:01:29 -04:00
|
|
|
}
|
|
|
|
|
2016-02-18 08:34:28 -05:00
|
|
|
#endif /* OCARINA_GUI_IDLE_H */
|