[balsa] Declare LibBalsaCellRendererButton final



commit 765aee7427f1503e67be7ba026474e4e06735095
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jun 4 13:09:42 2019 -0400

    Declare LibBalsaCellRendererButton final
    
    Use G_DECLARE_FINAL_TYPE to declare LibBalsaCellRendererButton
    
    The object was already private.

 ChangeLog                       |  8 ++++++++
 libbalsa/cell-renderer-button.h | 38 ++++++--------------------------------
 2 files changed, 14 insertions(+), 32 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c1a9baafb..f862eb62e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-06-04  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Use G_DECLARE_FINAL_TYPE to declare LibBalsaCellRendererButton
+
+       The object was already private.
+
+       * libbalsa/cell-renderer-button.h:
+
 2019-06-04  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Use G_DECLARE_FINAL_TYPE to declare LibBalsaAddressView
diff --git a/libbalsa/cell-renderer-button.h b/libbalsa/cell-renderer-button.h
index 0adfbc1be..5c884410b 100644
--- a/libbalsa/cell-renderer-button.h
+++ b/libbalsa/cell-renderer-button.h
@@ -26,42 +26,16 @@
 
 
 G_BEGIN_DECLS
-#define LIBBALSA_TYPE_CELL_RENDERER_BUTTON                              \
-    (libbalsa_cell_renderer_button_get_type())
-#define LIBBALSA_CELL_RENDERER_BUTTON(obj)                              \
-    (G_TYPE_CHECK_INSTANCE_CAST((obj),                                  \
-                                LIBBALSA_TYPE_CELL_RENDERER_BUTTON,     \
-                                LibBalsaCellRendererButton))
-#define LIBBALSA_CELL_RENDERER_BUTTON_CLASS(klass)                      \
-    (G_TYPE_CHECK_CLASS_CAST((klass),                                   \
-                             LIBBALSA_TYPE_CELL_RENDERER_BUTTON,        \
-                             LibBalsaCellRendererButtonClass))
-#define LIBBALSA_IS_CELL_RENDERER_BUTTON(obj)                           \
-    (G_TYPE_CHECK_INSTANCE_TYPE((obj),                                  \
-                                LIBBALSA_TYPE_CELL_RENDERER_BUTTON))
-#define LIBBALSA_IS_CELL_RENDERER_BUTTON_CLASS(klass)                   \
-    (G_TYPE_CHECK_CLASS_TYPE((klass),                                   \
-                             LIBBALSA_TYPE_CELL_RENDERER_BUTTON))
-#define LIBBALSA_CELL_RENDERER_BUTTON_GET_CLASS(obj)                    \
-    (G_TYPE_INSTANCE_GET_CLASS((obj),                                   \
-                               LIBBALSA_TYPE_CELL_RENDERER_BUTTON,      \
-                               LibBalsaCellRendererButtonClass))
 
-typedef struct _LibBalsaCellRendererButton LibBalsaCellRendererButton;
-typedef struct _LibBalsaCellRendererButtonClass
-    LibBalsaCellRendererButtonClass;
+#define LIBBALSA_TYPE_CELL_RENDERER_BUTTON (libbalsa_cell_renderer_button_get_type())
 
-struct _LibBalsaCellRendererButton {
-    GtkCellRendererPixbuf parent;
-};
+G_DECLARE_FINAL_TYPE(LibBalsaCellRendererButton,
+                     libbalsa_cell_renderer_button,
+                     LIBBALSA,
+                     CELL_RENDERER_BUTTON,
+                     GtkCellRendererPixbuf)
 
-struct _LibBalsaCellRendererButtonClass {
-    GtkCellRendererPixbufClass parent_class;
-};
-
-GType            libbalsa_cell_renderer_button_get_type(void) G_GNUC_CONST;
 GtkCellRenderer *libbalsa_cell_renderer_button_new(void);
 
-
 G_END_DECLS
 #endif                          /* __LIBBALSA_CELL_RENDERER_BUTTON_H__ */


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