[evolution-data-server] Correct how private enums (for gtk-doc) are defined
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Correct how private enums (for gtk-doc) are defined
- Date: Thu, 10 Nov 2016 10:47:37 +0000 (UTC)
commit 0623c82034e58042c14fffea247fd4052ad50d1f
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 10 11:47:28 2016 +0100
Correct how private enums (for gtk-doc) are defined
Thus both glib-mkenums and gtk-doc will understand it (glib-mkenums
claimed a warning before this change).
src/addressbook/libebook/e-book-types.h | 3 +--
src/calendar/libecal/e-cal-types.h | 9 +++------
2 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/addressbook/libebook/e-book-types.h b/src/addressbook/libebook/e-book-types.h
index 36e23f5..e009a83 100644
--- a/src/addressbook/libebook/e-book-types.h
+++ b/src/addressbook/libebook/e-book-types.h
@@ -56,8 +56,7 @@ GQuark e_book_error_quark (void) G_GNUC_CONST;
/* Marked these all as private, since they are deprecated
* and we just avoid gtk-doc warnings this way
*/
-typedef enum {
- /*< private >*/
+typedef enum { /*< private >*/
E_BOOK_ERROR_OK,
E_BOOK_ERROR_INVALID_ARG,
E_BOOK_ERROR_BUSY,
diff --git a/src/calendar/libecal/e-cal-types.h b/src/calendar/libecal/e-cal-types.h
index f0f02b8..2b78092 100644
--- a/src/calendar/libecal/e-cal-types.h
+++ b/src/calendar/libecal/e-cal-types.h
@@ -123,8 +123,7 @@ typedef struct {
* Marked all these deprecated errors as private to avoid
* warnings from gtk-doc
*/
-typedef enum {
- /*< private >*/
+typedef enum { /*< private >*/
E_CALENDAR_STATUS_OK,
E_CALENDAR_STATUS_INVALID_ARG,
E_CALENDAR_STATUS_BUSY,
@@ -164,8 +163,7 @@ typedef enum {
*
* Deprecated
**/
-typedef enum {
- /*< private >*/
+typedef enum { /*< private >*/
Event = 1 << 0,
Todo = 1 << 1,
Journal = 1 << 2,
@@ -179,8 +177,7 @@ typedef enum {
*
* Deprecated
**/
-typedef enum {
- /*< private >*/
+typedef enum { /*< private >*/
This = 1 << 0,
ThisAndPrior = 1 << 1,
ThisAndFuture = 1 << 2,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]