From 6e986afbaead8b3745901a4ef1701041d905f431 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 14 Feb 2013 13:50:55 -0500 Subject: [PATCH] Small documentation fixes for frame synchronization Found by Benjamin Otte --- gdk/gdkframeclock.h | 4 ++-- gtk/gtkstylecontext.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gdk/gdkframeclock.h b/gdk/gdkframeclock.h index 7b011caa2..f6529795a 100644 --- a/gdk/gdkframeclock.h +++ b/gdk/gdkframeclock.h @@ -50,7 +50,7 @@ typedef struct _GdkFrameClockClass GdkFrameClockClass; * GdkFrameClockPhase: * @GDK_FRAME_CLOCK_PHASE_NONE: no phase * @GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS: corresponds to GdkFrameClock::flush-events. Should not be handled by applications. - * @GDK_FRAME_CLOCK_PHASE_BEFORE_PAINT: corresponds to GdkFrameClock::flush-events. Should not be handled by applications. + * @GDK_FRAME_CLOCK_PHASE_BEFORE_PAINT: corresponds to GdkFrameClock::before-paint. Should not be handled by applications. * @GDK_FRAME_CLOCK_PHASE_UPDATE: corresponds to GdkFrameClock::update. * @GDK_FRAME_CLOCK_PHASE_LAYOUT: corresponds to GdkFrameClock::layout. * @GDK_FRAME_CLOCK_PHASE_PAINT: corresponds to GdkFrameClock::paint. @@ -61,7 +61,7 @@ typedef struct _GdkFrameClockClass GdkFrameClockClass; * phases that can be requested. The element of the enumeration * correspond to the signals of #GdkPaintClock. * - * Since: 3.4 + * Since: 3.8 **/ typedef enum { GDK_FRAME_CLOCK_PHASE_NONE = 0, diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index a57873cae..7fa5ee7ba 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -2676,7 +2676,8 @@ gtk_style_context_set_frame_clock (GtkStyleContext *context, * * Returns the #GdkFrameClock to which @context is attached. * - * Returns: (transfer none): a #GdkFrameClock. + * Returns: (transfer none): a #GdkFrameClock, or %NULL + * if @context does not have an attached frame clock. * Since: 3.8 **/ GdkFrameClock * -- 2.43.2