summaryrefslogtreecommitdiff
path: root/tests/video-timer.c
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2013-04-24 17:42:42 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2013-04-25 13:44:58 -0400
commita082f4d804355f801f5145d208a695055fca7125 (patch)
treea4eab01ca3de8ab94ec2f2b348eba928a6842073 /tests/video-timer.c
parent8dc090b9b198c365e41a879f3cdc853a63e4735b (diff)
downloadgtk+-a082f4d804355f801f5145d208a695055fca7125.tar.gz
animated-resizing, video-timer: Add missing return value from ::draw
When we connect to GtkWidget::draw, the signal handler should have a return value. This fixes overdrawing client-side decorations.
Diffstat (limited to 'tests/video-timer.c')
-rw-r--r--tests/video-timer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/video-timer.c b/tests/video-timer.c
index e665c6da7f..bc5de1e5fe 100644
--- a/tests/video-timer.c
+++ b/tests/video-timer.c
@@ -190,7 +190,7 @@ adjust_clock_for_phase (gint64 frame_clock_time,
/* Drawing */
-static void
+static gboolean
on_window_draw (GtkWidget *widget,
cairo_t *cr)
{
@@ -224,6 +224,8 @@ on_window_draw (GtkWidget *widget,
displayed_frame->frame_counter = gdk_frame_clock_get_frame_counter (frame_clock);
}
}
+
+ return FALSE;
}
static void