diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-12 15:02:21 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-14 17:19:52 -0500 |
commit | 5f2d1654a5085fb64af96310e297db4a7c4a39c2 (patch) | |
tree | b74dd1c718660dbe14b98a5efe566c7a3290ebcf /gdk/gdkframeclockidle.h | |
parent | be22b9fbb9ecd683b9b41d64144460f41d07f248 (diff) | |
download | gtk+-5f2d1654a5085fb64af96310e297db4a7c4a39c2.tar.gz |
Change GdkFrameClock from an interface to a class
It's unlikely that anyone will want to have, say, a GtkWidget that
also acts as a GdkFrameClock, so an abstract base class is as
flexible as making GdkFrameClock an interface, but has advantages:
- If we decide to never make implementing your own frame clock
possible, we can remove the virtualization.
- We can put functionality like history into the base class.
- Avoids the oddity of a interface without a public interface
VTable, which may cause problems for language bindings.
Diffstat (limited to 'gdk/gdkframeclockidle.h')
-rw-r--r-- | gdk/gdkframeclockidle.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdkframeclockidle.h b/gdk/gdkframeclockidle.h index f4815a9498..b76dd6677d 100644 --- a/gdk/gdkframeclockidle.h +++ b/gdk/gdkframeclockidle.h @@ -29,7 +29,7 @@ #ifndef __GDK_FRAME_CLOCK_IDLE_H__ #define __GDK_FRAME_CLOCK_IDLE_H__ -#include <gdk/gdkframeclock.h> +#include "gdkframeclockprivate.h" G_BEGIN_DECLS @@ -47,7 +47,7 @@ typedef struct _GdkFrameClockIdleClass GdkFrameClockIdleClass; struct _GdkFrameClockIdle { - GObject parent_instance; + GdkFrameClock parent_instance; /*< private >*/ GdkFrameClockIdlePrivate *priv; @@ -55,7 +55,7 @@ struct _GdkFrameClockIdle struct _GdkFrameClockIdleClass { - GObjectClass parent_class; + GdkFrameClockClass parent_class; }; GType gdk_frame_clock_idle_get_type (void) G_GNUC_CONST; |