diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-01-09 19:25:03 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-01-09 19:25:03 +0100 |
commit | c6a9de8c4a1dd9fb5c179ff323f0508f72974b9e (patch) | |
tree | e4c9dd8c0ce2507a1127c6b30d3e22340b8ca44f /include | |
parent | d7dab65e5b89f2a223fba00c62accee2d5313609 (diff) |
Use snprintf instead of sprintf
Diffstat (limited to 'include')
-rw-r--r-- | include/scrollbar.h | 2 | ||||
-rw-r--r-- | include/textbox.h | 16 | ||||
-rw-r--r-- | include/widget.h | 6 |
3 files changed, 12 insertions, 12 deletions
diff --git a/include/scrollbar.h b/include/scrollbar.h index 960d241c..2c9d732d 100644 --- a/include/scrollbar.h +++ b/include/scrollbar.h @@ -14,7 +14,7 @@ */ typedef struct _scrollbar { - Widget widget; + Widget widget; unsigned int length; unsigned int pos; unsigned int pos_length; diff --git a/include/textbox.h b/include/textbox.h index 94fdcb7b..7c744b14 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -40,14 +40,14 @@ typedef struct typedef enum { - TB_AUTOHEIGHT = 1 << 0, - TB_AUTOWIDTH = 1 << 1, - TB_LEFT = 1 << 16, - TB_RIGHT = 1 << 17, - TB_CENTER = 1 << 18, - TB_EDITABLE = 1 << 19, - TB_MARKUP = 1 << 20, - TB_WRAP = 1 << 21, + TB_AUTOHEIGHT = 1 << 0, + TB_AUTOWIDTH = 1 << 1, + TB_LEFT = 1 << 16, + TB_RIGHT = 1 << 17, + TB_CENTER = 1 << 18, + TB_EDITABLE = 1 << 19, + TB_MARKUP = 1 << 20, + TB_WRAP = 1 << 21, } TextboxFlags; typedef enum diff --git a/include/widget.h b/include/widget.h index 5540260a..4271fdb2 100644 --- a/include/widget.h +++ b/include/widget.h @@ -21,7 +21,7 @@ typedef struct _Widget } Widget; /** Macro to get widget from an implementation (e.g. textbox/scrollbar) */ -#define WIDGET(a) (a != NULL?&(a->widget):NULL) +#define WIDGET( a ) ( a != NULL ? &( a->widget ) : NULL ) /** * @param widget The widget to check @@ -32,7 +32,7 @@ typedef struct _Widget * * @return TRUE if x,y falls within the widget */ -int widget_intersect ( const Widget *widget, int x, int y); +int widget_intersect ( const Widget *widget, int x, int y ); /** * @param widget The widget to move @@ -41,7 +41,7 @@ int widget_intersect ( const Widget *widget, int x, int y); * * Moves the widget. */ -void widget_move(Widget *widget, short x, short y); +void widget_move ( Widget *widget, short x, short y ); /*@}*/ #endif // ROFI_WIDGET_H |