[evince] libdocument: Fix struct names



commit 05668a0bf3b3c98f7ae73724420482fd2530d74c
Author: Christian Persch <chpe gnome org>
Date:   Tue Jul 30 13:22:31 2013 +0200

    libdocument: Fix struct names

 libdocument/ev-document.h          |   11 ++++++-----
 libdocument/ev-file-exporter.h     |    6 ++++--
 libdocument/ev-transition-effect.h |    9 ++++-----
 3 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h
index ba3520f..1857dfa 100644
--- a/libdocument/ev-document.h
+++ b/libdocument/ev-document.h
@@ -64,16 +64,17 @@ typedef enum
         EV_DOCUMENT_ERROR_ENCRYPTED
 } EvDocumentError;
 
-typedef struct {
-        double x;
-        double y;
-} EvPoint;
-
+typedef struct _EvPoint EvPoint;
 typedef struct _EvRectangle EvRectangle;
 typedef struct _EvMapping EvMapping;
 typedef struct _EvSourceLink EvSourceLink;
 typedef struct _EvDocumentBackendInfo EvDocumentBackendInfo;
 
+struct _EvPoint {
+        double x;
+        double y;
+};
+
 struct _EvDocumentBackendInfo
 {
        const gchar *name;
diff --git a/libdocument/ev-file-exporter.h b/libdocument/ev-file-exporter.h
index d993278..6d92361 100644
--- a/libdocument/ev-file-exporter.h
+++ b/libdocument/ev-file-exporter.h
@@ -51,7 +51,9 @@ typedef enum {
        EV_FILE_EXPORTER_CAN_NUMBER_UP    = 1 << 8
 } EvFileExporterCapabilities;
 
-typedef struct {
+typedef struct _EvFileExporterContext EvFileExporterContext;
+
+struct _EvFileExporterContext {
        EvFileExporterFormat format;
        const gchar         *filename;
        gint                 first_page;
@@ -60,7 +62,7 @@ typedef struct {
        gdouble              paper_height;
        gboolean             duplex;
        gint                 pages_per_sheet;
-} EvFileExporterContext;
+};
 
 #define EV_TYPE_FILE_EXPORTER            (ev_file_exporter_get_type ())
 #define EV_FILE_EXPORTER(o)              (G_TYPE_CHECK_INSTANCE_CAST ((o), EV_TYPE_FILE_EXPORTER, 
EvFileExporter))
diff --git a/libdocument/ev-transition-effect.h b/libdocument/ev-transition-effect.h
index 7510787..e7f3030 100644
--- a/libdocument/ev-transition-effect.h
+++ b/libdocument/ev-transition-effect.h
@@ -62,20 +62,19 @@ typedef enum {
 } EvTransitionEffectDirection;
 
 
-typedef struct EvTransitionEffect      EvTransitionEffect;
-typedef struct EvTransitionEffectClass EvTransitionEffectClass;
+typedef struct _EvTransitionEffect      EvTransitionEffect;
+typedef struct _EvTransitionEffectClass EvTransitionEffectClass;
 
-struct EvTransitionEffect
+struct _EvTransitionEffect
 {
        GObject parent_instance;
 };
 
-struct EvTransitionEffectClass
+struct _EvTransitionEffectClass
 {
        GObjectClass parent_class;
 };
 
-
 GType                 ev_transition_effect_get_type           (void) G_GNUC_CONST;
 
 EvTransitionEffect   *ev_transition_effect_new                (EvTransitionEffectType  type,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]