diff options
author | 2015-12-26 21:38:50 -0500 | |
---|---|---|
committer | 2016-01-19 19:35:10 -0500 | |
commit | a58b32a5b362f5059c697d9ff39b7fcee536a4df (patch) | |
tree | 3293aac99da813ca9e220a599a300228112f154f /src/trg-cell-renderer-counter.h | |
parent | 0e186c2d2dd20437064dbb52320d76bf84845fd7 (diff) |
Start modernizing GObject usage
Long way to go...
Diffstat (limited to 'src/trg-cell-renderer-counter.h')
-rw-r--r-- | src/trg-cell-renderer-counter.h | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/src/trg-cell-renderer-counter.h b/src/trg-cell-renderer-counter.h index 7e70c4b..2c4f2ed 100644 --- a/src/trg-cell-renderer-counter.h +++ b/src/trg-cell-renderer-counter.h @@ -17,35 +17,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef TRG_CELL_RENDERER_COUNTER_H_ -#define TRG_CELL_RENDERER_COUNTER_H_ +#pragma once -#include <glib-object.h> #include <gtk/gtk.h> G_BEGIN_DECLS -#define TRG_TYPE_CELL_RENDERER_COUNTER trg_cell_renderer_counter_get_type() -#define TRG_CELL_RENDERER_COUNTER(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRG_TYPE_CELL_RENDERER_COUNTER, TrgCellRendererCounter)) -#define TRG_CELL_RENDERER_COUNTER_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST ((klass), TRG_TYPE_CELL_RENDERER_COUNTER, TrgCellRendererCounterClass)) -#define TRG_IS_CELL_RENDERER_COUNTER(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRG_TYPE_CELL_RENDERER_COUNTER)) -#define TRG_IS_CELL_RENDERER_COUNTER_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE ((klass), TRG_TYPE_CELL_RENDERER_COUNTER)) -#define TRG_CELL_RENDERER_COUNTER_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), TRG_TYPE_CELL_RENDERER_COUNTER, TrgCellRendererCounterClass)) - typedef struct { - GtkCellRendererText parent; -} TrgCellRendererCounter; - -typedef struct { - GtkCellRendererTextClass parent_class; -} TrgCellRendererCounterClass; - -GType trg_cell_renderer_counter_get_type(void); + +#define TRG_TYPE_CELL_RENDERER_COUNTER (trg_cell_renderer_counter_get_type()) +G_DECLARE_FINAL_TYPE (TrgCellRendererCounter, trg_cell_renderer_counter, TRG, CELL_RENDERER_COUNTER, GtkCellRendererText) GtkCellRenderer *trg_cell_renderer_counter_new(void); G_END_DECLS -#endif /* TRG_CELL_RENDERER_COUNTER_H_ */ + |