summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2020-02-02 13:56:37 +0100
committerDave Davenport <qball@gmpclient.org>2020-02-02 13:56:37 +0100
commitb1692899969b89b8478e403957e266437e07d9e9 (patch)
tree0b2a7665e151e3ffe2f8ce8c32f2e3ad2f0aac91 /include
parent83c2e467d5b34f9e74e2c55b1e9df2b715be175e (diff)
Indent all the code.
Diffstat (limited to 'include')
-rw-r--r--include/dialogs/dmenuscriptshared.h3
-rw-r--r--include/helper.h1
-rw-r--r--include/theme.h8
-rw-r--r--include/view-internal.h4
-rw-r--r--include/widgets/listview.h2
-rw-r--r--include/widgets/textbox.h32
-rw-r--r--include/widgets/widget.h1
7 files changed, 26 insertions, 25 deletions
diff --git a/include/dialogs/dmenuscriptshared.h b/include/dialogs/dmenuscriptshared.h
index 31e8aae5..12423869 100644
--- a/include/dialogs/dmenuscriptshared.h
+++ b/include/dialogs/dmenuscriptshared.h
@@ -1,7 +1,8 @@
#ifndef ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
#define ROFI_DIALOGS_DMENU_SCRIPT_SHARED_H
-typedef struct {
+typedef struct
+{
/** Entry content. (visible part) */
char *entry;
/** Icon name to display. */
diff --git a/include/helper.h b/include/helper.h
index 900817ee..9554c712 100644
--- a/include/helper.h
+++ b/include/helper.h
@@ -337,7 +337,6 @@ void parse_ranges ( char *input, rofi_range_pair **list, unsigned int *length );
*/
void rofi_output_formatted_line ( const char *format, const char *string, int selected_line, const char *filter );
-
/**
* @param string The string with elements to be replaced
* @param ... Set of {key}, value that will be replaced, terminated by a NULL
diff --git a/include/theme.h b/include/theme.h
index aff116d5..751d83b3 100644
--- a/include/theme.h
+++ b/include/theme.h
@@ -35,7 +35,8 @@
/**
* Describe the media constraint type.
*/
-typedef enum {
+typedef enum
+{
/** Minimum width constraint. */
THEME_MEDIA_TYPE_MIN_WIDTH,
/** Maximum width constraint. */
@@ -57,9 +58,10 @@ typedef enum {
/**
* Theme Media description.
*/
-typedef struct ThemeMedia {
+typedef struct ThemeMedia
+{
ThemeMediaType type;
- double value;
+ double value;
} ThemeMedia;
/**
diff --git a/include/view-internal.h b/include/view-internal.h
index a6f7a632..af6e130f 100644
--- a/include/view-internal.h
+++ b/include/view-internal.h
@@ -103,9 +103,9 @@ struct RofiViewState
textbox **modi;
/** Total rows. */
- textbox *tb_total_rows;
+ textbox *tb_total_rows;
/** filtered rows */
- textbox *tb_filtered_rows;
+ textbox *tb_filtered_rows;
/** Settings of the menu */
MenuFlags menu_flags;
diff --git a/include/widgets/listview.h b/include/widgets/listview.h
index c10e1831..0aa6fab0 100644
--- a/include/widgets/listview.h
+++ b/include/widgets/listview.h
@@ -61,7 +61,7 @@ typedef enum
*
* Update callback, this is called to set the value of each (visible) element.
*/
-typedef void ( *listview_update_callback )( textbox *tb,icon *ico, unsigned int entry, void *udata, TextBoxFontType *type, gboolean full );
+typedef void ( *listview_update_callback )( textbox *tb, icon *ico, unsigned int entry, void *udata, TextBoxFontType *type, gboolean full );
/**
* Callback when a element is activated.
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h
index 452be594..229e34d9 100644
--- a/include/widgets/textbox.h
+++ b/include/widgets/textbox.h
@@ -49,27 +49,27 @@
*/
typedef struct
{
- widget widget;
- unsigned long flags;
- short cursor;
- char *text;
- const char *placeholder;
- int show_placeholder;
- PangoLayout *layout;
- int tbft;
- int markup;
- int changed;
+ widget widget;
+ unsigned long flags;
+ short cursor;
+ char *text;
+ const char *placeholder;
+ int show_placeholder;
+ PangoLayout *layout;
+ int tbft;
+ int markup;
+ int changed;
- int blink;
- guint blink_timeout;
+ int blink;
+ guint blink_timeout;
- double yalign;
- double xalign;
+ double yalign;
+ double xalign;
- PangoFontMetrics *metrics;
+ PangoFontMetrics *metrics;
PangoEllipsizeMode emode;
//
- const char *theme_name;
+ const char *theme_name;
} textbox;
/**
diff --git a/include/widgets/widget.h b/include/widgets/widget.h
index abe0c4f6..dd4a5d7e 100644
--- a/include/widgets/widget.h
+++ b/include/widgets/widget.h
@@ -142,7 +142,6 @@ void widget_move ( widget *widget, short x, short y );
*/
WidgetType widget_type ( widget *widget );
-
/**
* @param widget Handle to widget
* @param type The widget type.