Commit ca1bc5ad authored by Felipe Borges's avatar Felipe Borges 👣

display: Add private class members

parent 70cb5c6e
......@@ -18,7 +18,12 @@
#include "frdp-display.h"
G_DEFINE_TYPE (FrdpDisplay, frdp_display, GTK_TYPE_DRAWING_AREA)
struct _FrdpDisplayPrivate
{
gpointer *dummy;
};
G_DEFINE_TYPE_WITH_PRIVATE (FrdpDisplay, frdp_display, GTK_TYPE_DRAWING_AREA)
GtkWidget *frdp_display_new (void)
{
......@@ -33,4 +38,5 @@ frdp_display_class_init (FrdpDisplayClass *klass)
static void
frdp_display_init (FrdpDisplay *self)
{
self->priv = frdp_display_get_instance_private (self);
}
......@@ -26,9 +26,15 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (FrdpDisplay, frdp_display, FRDP_DISPLAY, DISPLAY, GtkDrawingArea)
typedef struct _FrdpDisplayPrivate FrdpDisplayPrivate;
struct _FrdpDisplay
{
GtkDrawingArea parent;
FrdpDisplayPrivate *priv;
/* Do not add fields to this struct */
};
GtkWidget *frdp_display_new (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment