From c6a9de8c4a1dd9fb5c179ff323f0508f72974b9e Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 9 Jan 2016 19:25:03 +0100 Subject: Use snprintf instead of sprintf --- include/scrollbar.h | 2 +- include/textbox.h | 16 ++++++++-------- include/widget.h | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'include') 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 -- cgit v1.2.3