summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-06 15:36:06 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-06 15:36:06 +0100
commit50780346729d2e9f4feb2725824c8df173b0df5b (patch)
treeee4f3023dac63294aab19e9e265f717892bee24d /include
parent52f4f32d89396e29890acaa50cc87dbd79ffae42 (diff)
Add scrollbar 'handle-width' and 'handle-color' remove old syntax
Diffstat (limited to 'include')
-rw-r--r--include/widgets/scrollbar.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/widgets/scrollbar.h b/include/widgets/scrollbar.h
index 4efbaaa5..80cfceb6 100644
--- a/include/widgets/scrollbar.h
+++ b/include/widgets/scrollbar.h
@@ -19,17 +19,17 @@ typedef struct _scrollbar
unsigned int length;
unsigned int pos;
unsigned int pos_length;
+ Distance width;
} scrollbar;
/**
* @param name The name of the widget.
- * @param width The width of the scrollbar
*
* Create a new scrollbar
*
* @returns the scrollbar object.
*/
-scrollbar *scrollbar_create ( const char *name, int width );
+scrollbar *scrollbar_create ( const char *name );
/**
* @param sb scrollbar object
@@ -63,12 +63,5 @@ void scrollbar_set_max_value ( scrollbar *sb, unsigned int max );
*/
unsigned int scrollbar_clicked ( const scrollbar *sb, int y );
-/**
- * @param sb scrollbar object
- * @param width width of the scrollbar
- *
- * Set the width of the scrollbar handle.
- */
-void scrollbar_set_width ( scrollbar *sb, int width );
/*@}*/
#endif // ROFI_SCROLLBAR_H