diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-19 15:18:27 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-20 09:51:42 +0000 |
| commit | 954a0083d9ce7065564c18c9788743eb0cf371f2 (patch) | |
| tree | 3f77797181a9e89dafd9c5f00f6da3dc477d244b /src/widgets | |
| parent | Replace typedef struct with struct in POD type declarations. (diff) | |
| download | inkscape-954a0083d9ce7065564c18c9788743eb0cf371f2.tar.gz inkscape-954a0083d9ce7065564c18c9788743eb0cf371f2.zip | |
Replace typedef enum with enum in POD type declarations.
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/button.h | 4 | ||||
| -rw-r--r-- | src/widgets/eek-preview.h | 20 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/widgets/button.h b/src/widgets/button.h index 60b98de45..584818181 100644 --- a/src/widgets/button.h +++ b/src/widgets/button.h @@ -29,10 +29,10 @@ class View; } } -typedef enum { +enum SPButtonType { SP_BUTTON_TYPE_NORMAL, SP_BUTTON_TYPE_TOGGLE -} SPButtonType; +}; struct SPBChoiceData { guchar *px; diff --git a/src/widgets/eek-preview.h b/src/widgets/eek-preview.h index 883ce713e..bc756260b 100644 --- a/src/widgets/eek-preview.h +++ b/src/widgets/eek-preview.h @@ -53,7 +53,7 @@ G_BEGIN_DECLS #define IS_EEK_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), EEK_PREVIEW_TYPE)) #define EEK_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS( (obj), EEK_PREVIEW_TYPE, EekPreviewClass)) -typedef enum { +enum PreviewStyle { PREVIEW_STYLE_ICON = 0, PREVIEW_STYLE_PREVIEW, PREVIEW_STYLE_NAME, @@ -62,23 +62,23 @@ typedef enum { PREVIEW_STYLE_ICON_BLURB, PREVIEW_STYLE_PREVIEW_NAME, PREVIEW_STYLE_PREVIEW_BLURB -} PreviewStyle; +}; -typedef enum { +enum ViewType { VIEW_TYPE_LIST = 0, VIEW_TYPE_GRID -} ViewType; +}; -typedef enum { +enum PreviewSize { PREVIEW_SIZE_TINY = 0, PREVIEW_SIZE_SMALL, PREVIEW_SIZE_MEDIUM, PREVIEW_SIZE_BIG, PREVIEW_SIZE_BIGGER, PREVIEW_SIZE_HUGE -} PreviewSize; +}; -typedef enum { +enum LinkType { PREVIEW_LINK_NONE = 0, PREVIEW_LINK_IN = 1, PREVIEW_LINK_OUT = 2, @@ -86,14 +86,14 @@ typedef enum { PREVIEW_FILL = 8, PREVIEW_STROKE = 16, PREVIEW_LINK_ALL = 31 -} LinkType; +}; -typedef enum { +enum BorderStyle { BORDER_NONE = 0, BORDER_SOLID, BORDER_WIDE, BORDER_SOLID_LAST_ROW, -} BorderStyle; +}; typedef struct _EekPreview EekPreview; typedef struct _EekPreviewClass EekPreviewClass; |
