summaryrefslogtreecommitdiff
path: root/gdk/gdkframeclock.c
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2012-12-19 12:03:16 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2013-02-14 17:19:52 -0500
commit449e8c88565b444d1399a9080bde5141d054bde6 (patch)
treec8455ce3e8bde1098cbe326084b4ac31ddfbaa67 /gdk/gdkframeclock.c
parent06c4598fc52cf21c7c0355761f3fa2e7e5923e9c (diff)
downloadgtk+-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.c')
-rw-r--r--gdk/gdkframeclock.c13
1 files changed, 0 insertions, 13 deletions
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