diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-03-24 22:13:19 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-03-24 22:13:19 +0100 |
commit | c4b65d975c08862dfbdce2552e681c62ea79da2f (patch) | |
tree | 9e201b5c511c413fc55ae38cf69295b4b75cf8d6 | |
parent | 0a9ae342bbd61f20a749e3db6bbf44da42bf077c (diff) |
Cleanup unused type specifier.
-rw-r--r-- | include/keyb.h | 2 | ||||
-rw-r--r-- | include/mode-private.h | 2 | ||||
-rw-r--r-- | include/mode.h | 2 | ||||
-rw-r--r-- | include/settings.h | 4 | ||||
-rw-r--r-- | include/widget.h | 2 | ||||
-rw-r--r-- | source/keyb.c | 6 | ||||
-rw-r--r-- | source/textbox.c | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/include/keyb.h b/include/keyb.h index ad3b049d..6dd201ad 100644 --- a/include/keyb.h +++ b/include/keyb.h @@ -7,7 +7,7 @@ * @{ */ -typedef enum _KeyBindingAction +typedef enum { /** Paste from primary clipboard */ PASTE_PRIMARY = 0, diff --git a/include/mode-private.h b/include/mode-private.h index 10cf910a..7747de0a 100644 --- a/include/mode-private.h +++ b/include/mode-private.h @@ -34,7 +34,7 @@ typedef int ( *_mode_is_not_ascii )( const Mode *sw, unsigned int index ); * It consists of a name, callback and if enabled * a textbox for the sidebar-mode. */ -struct _Mode +struct rofi_mode { /** Name (max 31 char long) */ char name[32]; diff --git a/include/mode.h b/include/mode.h index fd899a56..90bae0f3 100644 --- a/include/mode.h +++ b/include/mode.h @@ -7,7 +7,7 @@ * The 'object' that makes a mode in rofi. * @{ */ -typedef struct _Mode Mode; +typedef struct rofi_mode Mode; /** * Enum used to sum the possible states of ROFI. diff --git a/include/settings.h b/include/settings.h index eb5eca4d..af89e94e 100644 --- a/include/settings.h +++ b/include/settings.h @@ -11,7 +11,7 @@ * * @ingroup CONFIGURATION */ -typedef enum _WindowLocation +typedef enum { /** Center */ WL_CENTER = 0, @@ -37,7 +37,7 @@ typedef enum _WindowLocation * Settings structure holding all (static) configurable options. * @ingroup CONFIGURATION */ -typedef struct _Settings +typedef struct { /** List of enabled modi */ char *modi; diff --git a/include/widget.h b/include/widget.h index 4271fdb2..57e2371a 100644 --- a/include/widget.h +++ b/include/widget.h @@ -8,7 +8,7 @@ * * @{ */ -typedef struct _Widget +typedef struct { /** X position relative to parent */ short x; diff --git a/source/keyb.c b/source/keyb.c index 87c7936a..dd0a0bc3 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -4,13 +4,13 @@ #include "x11-helper.h" #include "xrmoptions.h" -typedef struct _KeyBinding +typedef struct { unsigned int modmask; xkb_keysym_t keysym; } KeyBinding; -typedef struct _ActionBindingEntry +typedef struct { const char *name; char *keystr; @@ -18,7 +18,7 @@ typedef struct _ActionBindingEntry KeyBinding *kb; } ActionBindingEntry; -typedef struct _DefaultBinding +typedef struct { KeyBindingAction id; char *name; diff --git a/source/textbox.c b/source/textbox.c index 43059a76..b443c2ee 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -41,7 +41,7 @@ * Font + font color cache. * Avoid re-loading font on every change on every textbox. */ -typedef struct _RowColor +typedef struct { Color fg; Color bg; |