summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-02 21:19:27 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-02 21:19:27 +0100
commit37d99378dd26a0049f3a3ff5ed9b41d328106b83 (patch)
tree5d21ac4a46d33eab46773eb957f401a8754b191d /include
parentdf74540624786549ed53d6c38bbf02749b06450e (diff)
cleanup some of sizing logic.
Diffstat (limited to 'include')
-rw-r--r--include/widgets/listview.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/widgets/listview.h b/include/widgets/listview.h
index b008a28d..fb1237d5 100644
--- a/include/widgets/listview.h
+++ b/include/widgets/listview.h
@@ -168,6 +168,21 @@ void listview_set_mouse_activated_cb ( listview *lv, listview_mouse_activated_cb
* Enable,disable multi-select.
*/
void listview_set_multi_select ( listview *lv, gboolean enable );
+/**
+ * @param lv Handler to the listview object.
+ * @param num_lines the maximum number of lines to display.
+ *
+ * Set the maximum number of lines to display.
+ */
+void listview_set_num_lines ( listview *lv, unsigned int num_lines );
+
+/**
+ * @param lv Handler to the listview object.
+ * @param max_lines the maximum number of lines to display.
+ *
+ * Set the maximum number of lines to display.
+ */
+void listview_set_max_lines ( listview *lv, unsigned int max_lines );
/* @} */
#endif // ROFI_LISTVIEW_H