diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2012-12-19 12:03:16 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-14 17:19:52 -0500 |
commit | 449e8c88565b444d1399a9080bde5141d054bde6 (patch) | |
tree | c8455ce3e8bde1098cbe326084b4ac31ddfbaa67 /gdk/gdkframeclock.h | |
parent | 06c4598fc52cf21c7c0355761f3fa2e7e5923e9c (diff) | |
download | gtk+-449e8c88565b444d1399a9080bde5141d054bde6.tar.gz |
Add gtk_widget_add_tick_callback(), remove GtkTimeline, etc.
Add a very simple GtkWidget function for an "tick" callback, which
is connected to the ::update signal of GdkFrameClock.
Remove:
- GtkTimeline. The consensus is that it is too complex.
- GdkPaintClockTarget. In the rare cases where tick callbacks
aren't sufficient, it's possible to track the
paint clock with ::realize/::unrealize/::hierarchy-changed.
GtkTimeline is kept using ::update directly to allow using a GtkTimeline
with a paint clock but no widget.
Diffstat (limited to 'gdk/gdkframeclock.h')
-rw-r--r-- | gdk/gdkframeclock.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gdk/gdkframeclock.h b/gdk/gdkframeclock.h index 8d79f90a96..ba6a59f40a 100644 --- a/gdk/gdkframeclock.h +++ b/gdk/gdkframeclock.h @@ -37,26 +37,6 @@ G_BEGIN_DECLS typedef struct _GdkFrameClock GdkFrameClock; typedef struct _GdkFrameClockInterface GdkFrameClockInterface; -typedef struct _GdkFrameClockTarget GdkFrameClockTarget; -typedef struct _GdkFrameClockTargetInterface GdkFrameClockTargetInterface; - -#define GDK_TYPE_FRAME_CLOCK_TARGET (gdk_frame_clock_target_get_type ()) -#define GDK_FRAME_CLOCK_TARGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_FRAME_CLOCK_TARGET, GdkFrameClockTarget)) -#define GDK_IS_FRAME_CLOCK_TARGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_FRAME_CLOCK_TARGET)) -#define GDK_FRAME_CLOCK_TARGET_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GDK_TYPE_FRAME_CLOCK_TARGET, GdkFrameClockTargetInterface)) - -struct _GdkFrameClockTargetInterface -{ - GTypeInterface base_iface; - - void (*set_clock) (GdkFrameClockTarget *target, - GdkFrameClock *clock); -}; - -GType gdk_frame_clock_target_get_type (void) G_GNUC_CONST; - -void gdk_frame_clock_target_set_clock (GdkFrameClockTarget *target, - GdkFrameClock *clock); #define GDK_TYPE_FRAME_CLOCK (gdk_frame_clock_get_type ()) #define GDK_FRAME_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_FRAME_CLOCK, GdkFrameClock)) |