25 lines
406 B
C
25 lines
406 B
C
|
/*
|
||
|
* Copyright 2016 (c) Anna Schumaker.
|
||
|
*/
|
||
|
#include <gui/builder.h>
|
||
|
|
||
|
static GtkBuilder *gui_builder = NULL;
|
||
|
|
||
|
void gui_builder_init(const char *file)
|
||
|
{
|
||
|
gui_builder = gtk_builder_new_from_file(file);
|
||
|
}
|
||
|
|
||
|
void gui_builder_deinit()
|
||
|
{
|
||
|
g_object_unref(G_OBJECT(gui_builder));
|
||
|
gui_builder = NULL;
|
||
|
}
|
||
|
|
||
|
#ifdef CONFIG_TESTING
|
||
|
GtkBuilder *test_get_gui_builder()
|
||
|
{
|
||
|
return gui_builder;
|
||
|
}
|
||
|
#endif /* CONFIG_TESTING */
|