summaryrefslogtreecommitdiffstats
path: root/source/mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/mode.c')
-rw-r--r--source/mode.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/mode.c b/source/mode.c
index a7e552d3..5e070e3c 100644
--- a/source/mode.c
+++ b/source/mode.c
@@ -70,6 +70,18 @@ char * mode_get_display_value ( const Mode *mode, unsigned int selected_line, in
return mode->_get_display_value ( mode, selected_line, state, attribute_list, get_entry );
}
+cairo_surface_t * mode_get_icon ( const Mode *mode, unsigned int selected_line, int height )
+{
+ g_assert ( mode != NULL );
+
+ if ( mode->_get_icon != NULL ) {
+ return mode->_get_icon ( mode, selected_line, height );
+ }
+ else {
+ return NULL;
+ }
+}
+
char * mode_get_completion ( const Mode *mode, unsigned int selected_line )
{
g_assert ( mode != NULL );