[balsa] Declare LibBalsaAddressView final



commit 584646ba72de8701a1bf40fdf7cc95bd6f807cfc
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jun 4 12:51:00 2019 -0400

    Declare LibBalsaAddressView final
    
    Use G_DECLARE_FINAL_TYPE to declare LibBalsaAddressView
    
    The object was already private.
    
    * libbalsa/address-view.h:

 ChangeLog               |  8 ++++++++
 libbalsa/address-view.h | 29 ++++++-----------------------
 2 files changed, 14 insertions(+), 23 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 86c2cf536..c1a9baafb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-06-04  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Use G_DECLARE_FINAL_TYPE to declare LibBalsaAddressView
+
+       The object was already private.
+
+       * libbalsa/address-view.h:
+
 2019-06-03  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Use G_DECLARE_FINAL_TYPE to declare LibBalsaAddress
diff --git a/libbalsa/address-view.h b/libbalsa/address-view.h
index b51d5838b..c10503341 100644
--- a/libbalsa/address-view.h
+++ b/libbalsa/address-view.h
@@ -26,30 +26,13 @@
 #include <gmime/gmime.h>
 
 G_BEGIN_DECLS
-#define LIBBALSA_TYPE_ADDRESS_VIEW                              \
-    (libbalsa_address_view_get_type())
-#define LIBBALSA_ADDRESS_VIEW(obj)                              \
-    (G_TYPE_CHECK_INSTANCE_CAST((obj),                          \
-                                LIBBALSA_TYPE_ADDRESS_VIEW,     \
-                                LibBalsaAddressView))
-#define LIBBALSA_ADDRESS_VIEW_CLASS(klass)                      \
-    (G_TYPE_CHECK_CLASS_CAST((klass),                           \
-                             LIBBALSA_TYPE_ADDRESS_VIEW,        \
-                             LibBalsaAddressViewClass))
-#define LIBBALSA_IS_ADDRESS_VIEW(obj)                           \
-    (G_TYPE_CHECK_INSTANCE_TYPE((obj),                          \
-                                LIBBALSA_TYPE_ADDRESS_VIEW))
-#define LIBBALSA_IS_ADDRESS_VIEW_CLASS(klass)                   \
-    (G_TYPE_CHECK_CLASS_TYPE((klass),                           \
-                             LIBBALSA_TYPE_ADDRESS_VIEW))
-#define LIBBALSA_ADDRESS_VIEW_GET_CLASS(obj)                    \
-    (G_TYPE_INSTANCE_GET_CLASS((obj),                           \
-                               LIBBALSA_TYPE_ADDRESS_VIEW,      \
-                               LibBalsaAddressViewClass))
-typedef struct _LibBalsaAddressView LibBalsaAddressView;
-typedef struct _LibBalsaAddressViewClass LibBalsaAddressViewClass;
+#define LIBBALSA_TYPE_ADDRESS_VIEW (libbalsa_address_view_get_type())
 
-GType libbalsa_address_view_get_type(void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE(LibBalsaAddressView,
+                     libbalsa_address_view,
+                     LIBBALSA,
+                     ADDRESS_VIEW,
+                     GtkTreeView)
 
 LibBalsaAddressView *libbalsa_address_view_new(const gchar * const *types,
                                                guint n_types,


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