2015-12-29 09:11:51 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2015 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_GUI_SIDEBAR_H
|
|
|
|
#define OCARINA_GUI_SIDEBAR_H
|
2016-08-21 13:34:05 -04:00
|
|
|
#include <gui/builder.h>
|
2016-01-04 08:27:30 -05:00
|
|
|
|
2015-12-29 09:11:51 -05:00
|
|
|
/* Called to initialize the sidebar. */
|
|
|
|
void gui_sidebar_init();
|
|
|
|
|
2016-08-21 13:34:05 -04:00
|
|
|
/* Called to get the sidebar widget. */
|
|
|
|
static inline GtkPaned *gui_sidebar()
|
|
|
|
{
|
|
|
|
return GTK_PANED(gui_builder_widget("sidebar"));
|
|
|
|
}
|
|
|
|
|
2016-08-25 07:44:02 -04:00
|
|
|
/* Called to get the sidebar treestore. */
|
|
|
|
static inline GtkTreeStore *gui_sidebar_store()
|
|
|
|
{
|
|
|
|
return GTK_TREE_STORE(gui_builder_object("sidebar_store"));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Called to get the sidebar treemodel. */
|
|
|
|
static inline GtkTreeModel *gui_sidebar_model()
|
|
|
|
{
|
|
|
|
return GTK_TREE_MODEL(gui_builder_object("sidebar_store"));
|
|
|
|
}
|
|
|
|
|
2016-08-25 07:50:16 -04:00
|
|
|
/* Called to get the sidebar filter model. */
|
|
|
|
static inline GtkTreeModelFilter *gui_sidebar_filter()
|
|
|
|
{
|
|
|
|
return GTK_TREE_MODEL_FILTER(gui_builder_object("sidebar_filter"));
|
|
|
|
}
|
|
|
|
|
2016-08-25 07:56:20 -04:00
|
|
|
/* Called to get the sidebar treeview. */
|
|
|
|
static inline GtkTreeView *gui_sidebar_treeview()
|
|
|
|
{
|
|
|
|
return GTK_TREE_VIEW(gui_builder_widget("sidebar_treeview"));
|
|
|
|
}
|
|
|
|
|
2015-12-29 09:11:51 -05:00
|
|
|
#endif /* OCARINA_GUI_SIDEBAR_H */
|