From 9a62bfd17284a424cafd4ce649076127eafc2f5d Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sat, 3 Jun 2017 20:35:50 +0200 Subject: Run indenter. --- include/display.h | 8 ++++---- include/mode.h | 2 +- include/theme.h | 33 +++++++++++++++++---------------- include/view.h | 4 ++-- include/widgets/box.h | 2 +- include/widgets/container.h | 2 +- include/widgets/listview.h | 2 +- include/widgets/scrollbar.h | 2 +- include/widgets/textbox.h | 2 +- include/widgets/widget-internal.h | 20 ++++++++++---------- include/widgets/widget.h | 2 +- include/xcb.h | 2 +- 12 files changed, 41 insertions(+), 40 deletions(-) (limited to 'include') diff --git a/include/display.h b/include/display.h index a6977808..bad1210e 100644 --- a/include/display.h +++ b/include/display.h @@ -40,24 +40,24 @@ * * @returns Whether the setup succeeded or not */ -gboolean display_setup(GMainLoop *main_loop, NkBindings *bindings); +gboolean display_setup ( GMainLoop *main_loop, NkBindings *bindings ); /** * Do some late setup of the display backend * * @returns Whether the setup succeeded or not */ -gboolean display_late_setup(void); +gboolean display_late_setup ( void ); /** * Do some early cleanup, like unmapping the surface */ -void display_early_cleanup(void); +void display_early_cleanup ( void ); /** * Cleanup any remaining display related stuff */ -void display_cleanup(void); +void display_cleanup ( void ); /** * Dumps the display layout for -help output diff --git a/include/mode.h b/include/mode.h index 9b013ef3..111a0353 100644 --- a/include/mode.h +++ b/include/mode.h @@ -40,7 +40,7 @@ * Type of a mode. * Access should be done via mode_* functions. */ -typedef struct rofi_mode Mode; +typedef struct rofi_mode Mode; /** * Enum used to sum the possible states of ROFI. diff --git a/include/theme.h b/include/theme.h index 5afa982d..eae2e7e1 100644 --- a/include/theme.h +++ b/include/theme.h @@ -80,11 +80,11 @@ typedef enum typedef struct { /** Distance */ - double distance; + double distance; /** Unit type of the distance */ - RofiPixelUnit type; + RofiPixelUnit type; /** Style of the line (optional)*/ - RofiLineStyle style; + RofiLineStyle style; } RofiDistance; /** @@ -158,22 +158,23 @@ typedef struct /** style to display */ RofiHighlightStyle style; /** Color */ - ThemeColor color; + ThemeColor color; } RofiHighlightColorStyle; -typedef union { +typedef union +{ /** integer */ - int i; + int i; /** Double */ - double f; + double f; /** String */ - char *s; + char *s; /** boolean */ - gboolean b; + gboolean b; /** Color */ - ThemeColor color; + ThemeColor color; /** RofiPadding */ - RofiPadding padding; + RofiPadding padding; /** Reference */ struct { @@ -181,11 +182,11 @@ typedef union { char *name; /** Cached looked up ref */ struct Property *ref; - } link; + } link; /** Highlight Style */ RofiHighlightColorStyle highlight; /** List */ - GList *list; + GList *list; } PropertyValue; /** @@ -194,9 +195,9 @@ typedef union { typedef struct Property { /** Name of property */ - char *name; + char *name; /** Type of property. */ - PropertyType type; + PropertyType type; /** Value */ PropertyValue value; } Property; @@ -463,7 +464,7 @@ ThemeWidget *rofi_theme_find_widget ( const char *name, const char *state, gbool */ Property *rofi_theme_find_property ( ThemeWidget *widget, PropertyType type, const char *property, gboolean exact ); -GList *rofi_theme_get_list ( const widget *widget, const char * property, const char *defaults); +GList *rofi_theme_get_list ( const widget *widget, const char * property, const char *defaults ); /** * Checks if a theme is set, or is empty. * @returns TRUE when empty. diff --git a/include/view.h b/include/view.h index fbcfaae7..5a3a0855 100644 --- a/include/view.h +++ b/include/view.h @@ -39,7 +39,7 @@ * * @{ */ -typedef struct RofiViewState RofiViewState; +typedef struct RofiViewState RofiViewState; typedef enum { /** Create a menu for entering text */ @@ -105,7 +105,7 @@ void rofi_view_handle_text ( RofiViewState *state, char *text ); * * Update the state if needed. */ -void rofi_view_handle_mouse_motion( RofiViewState *state, gint x, gint y ); +void rofi_view_handle_mouse_motion ( RofiViewState *state, gint x, gint y ); /** * @param state the Menu handle * diff --git a/include/widgets/box.h b/include/widgets/box.h index 21724b1a..2cf4618a 100644 --- a/include/widgets/box.h +++ b/include/widgets/box.h @@ -45,7 +45,7 @@ /** * Abstract handle to the box widget internal state. */ -typedef struct _box box; +typedef struct _box box; /** * @param name The name of the widget. diff --git a/include/widgets/container.h b/include/widgets/container.h index 60c0b258..e94d50f2 100644 --- a/include/widgets/container.h +++ b/include/widgets/container.h @@ -41,7 +41,7 @@ /** * Abstract handle to the container widget internal state. */ -typedef struct _window container; +typedef struct _window container; /** * @param name The name of the widget. diff --git a/include/widgets/listview.h b/include/widgets/listview.h index 81d705b1..a2fe6989 100644 --- a/include/widgets/listview.h +++ b/include/widgets/listview.h @@ -39,7 +39,7 @@ * Handle to the listview. * No internal fields should be accessed directly. */ -typedef struct _listview listview; +typedef struct _listview listview; /** * The scrolling type used in the list view diff --git a/include/widgets/scrollbar.h b/include/widgets/scrollbar.h index 2806bc3f..6c7af7c8 100644 --- a/include/widgets/scrollbar.h +++ b/include/widgets/scrollbar.h @@ -46,7 +46,7 @@ typedef struct _scrollbar unsigned int length; unsigned int pos; unsigned int pos_length; - RofiDistance width; + RofiDistance width; } scrollbar; /** diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h index 9648cbaf..57e92911 100644 --- a/include/widgets/textbox.h +++ b/include/widgets/textbox.h @@ -64,7 +64,7 @@ typedef struct int blink; guint blink_timeout; - double yalign ; + double yalign; PangoFontMetrics *metrics; int left_offset; diff --git a/include/widgets/widget-internal.h b/include/widgets/widget-internal.h index 08c910af..8ae1f823 100644 --- a/include/widgets/widget-internal.h +++ b/include/widgets/widget-internal.h @@ -45,14 +45,14 @@ struct _widget /** Height of the widget */ short h; /** RofiPadding */ - RofiPadding def_margin; - RofiPadding def_padding; - RofiPadding def_border; - RofiPadding def_border_radius; - RofiPadding margin; - RofiPadding padding; - RofiPadding border; - RofiPadding border_radius; + RofiPadding def_margin; + RofiPadding def_padding; + RofiPadding def_border; + RofiPadding def_border_radius; + RofiPadding margin; + RofiPadding padding; + RofiPadding border; + RofiPadding border_radius; /** enabled or not */ gboolean enabled; @@ -78,8 +78,8 @@ struct _widget /** Handle mouse motion, used for dragging */ gboolean ( *motion_notify )( struct _widget *, gint x, gint y ); - int ( *get_desired_height )( struct _widget * ); - int ( *get_desired_width )( struct _widget * ); + int ( *get_desired_height )( struct _widget * ); + int ( *get_desired_width )( struct _widget * ); /** widget find_mouse_target callback */ widget_find_mouse_target_cb find_mouse_target; diff --git a/include/widgets/widget.h b/include/widgets/widget.h index 4fc99cfa..322ef64d 100644 --- a/include/widgets/widget.h +++ b/include/widgets/widget.h @@ -48,7 +48,7 @@ * Abstract structure holding internal state of a widget. * Structure is elaborated in widget-internal.h */ -typedef struct _widget widget; +typedef struct _widget widget; /** * Type of the widget. It is used to bubble events to the relevant widget. diff --git a/include/xcb.h b/include/xcb.h index b1154d58..94f14c3d 100644 --- a/include/xcb.h +++ b/include/xcb.h @@ -34,7 +34,7 @@ /** * xcb data structure type declaration. */ -typedef struct _xcb_stuff xcb_stuff; +typedef struct _xcb_stuff xcb_stuff; /** * Global pointer to xcb_stuff instance. -- cgit v1.2.3