summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-02-11 08:41:19 +0100
committerDave Davenport <qball@gmpclient.org>2016-02-11 08:41:19 +0100
commit11c347fad8a3281d6b3c613d9c84346508a80c55 (patch)
tree69b74602d75911f5b2e1deee4041e3655ece759c /include
parent3b007b7effa9928cff6a4dae6bffcbcaa50643ec (diff)
Use accessors in RofiView to get modi's and num modi for sidebar.
Diffstat (limited to 'include')
-rw-r--r--include/rofi.h16
-rw-r--r--include/view-internal.h2
2 files changed, 17 insertions, 1 deletions
diff --git a/include/rofi.h b/include/rofi.h
index 75713df7..d4c8646e 100644
--- a/include/rofi.h
+++ b/include/rofi.h
@@ -20,6 +20,22 @@
extern const char *cache_dir;
/**
+ * Get the number of enabled modi.
+ *
+ * @returns the number of enabled modi.
+ */
+unsigned int rofi_get_num_enabled_modi ( void );
+
+/**
+ * @param index The mode to return. (should be smaller then rofi_get_num_enabled_mode)
+ *
+ * Get an enabled mode handle.
+ *
+ * @returns a Mode handle.
+ */
+const Mode * rofi_get_mode ( unsigned int index );
+
+/**
* @param key the Key to match
* @param modstate the modifier state to match
*
diff --git a/include/view-internal.h b/include/view-internal.h
index e6c23d55..eb7389b4 100644
--- a/include/view-internal.h
+++ b/include/view-internal.h
@@ -63,7 +63,7 @@ typedef struct RofiViewState
workarea mon;
// Sidebar view
- ssize_t num_modi;
+ unsigned int num_modi;
textbox **modi;
MenuFlags menu_flags;