From 449e8c88565b444d1399a9080bde5141d054bde6 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 19 Dec 2012 12:03:16 -0500 Subject: 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. --- gdk/gdkframeclock.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'gdk/gdkframeclock.c') diff --git a/gdk/gdkframeclock.c b/gdk/gdkframeclock.c index fd41d94533..08789ebb04 100644 --- a/gdk/gdkframeclock.c +++ b/gdk/gdkframeclock.c @@ -28,19 +28,6 @@ #include "gdkframeclock.h" -G_DEFINE_INTERFACE (GdkFrameClockTarget, gdk_frame_clock_target, G_TYPE_OBJECT) - -static void -gdk_frame_clock_target_default_init (GdkFrameClockTargetInterface *iface) -{ -} - -void gdk_frame_clock_target_set_clock (GdkFrameClockTarget *target, - GdkFrameClock *clock) -{ - GDK_FRAME_CLOCK_TARGET_GET_IFACE (target)->set_clock (target, clock); -} - /** * SECTION:frameclock * @Short_description: Frame clock syncs painting to a window or display -- cgit v1.2.1