[gtk+] animated-resizing, video-timer: Add missing return value from ::draw
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] animated-resizing, video-timer: Add missing return value from ::draw
- Date: Thu, 25 Apr 2013 17:55:48 +0000 (UTC)
commit a082f4d804355f801f5145d208a695055fca7125
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Apr 24 17:42:42 2013 -0400
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.
tests/animated-resizing.c | 4 +++-
tests/video-timer.c | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/tests/animated-resizing.c b/tests/animated-resizing.c
index c37106d..8660089 100644
--- a/tests/animated-resizing.c
+++ b/tests/animated-resizing.c
@@ -66,7 +66,7 @@ ensure_resources(cairo_surface_t *target)
}
}
-static void
+static gboolean
on_window_draw (GtkWidget *widget,
cairo_t *cr)
@@ -108,6 +108,8 @@ on_window_draw (GtkWidget *widget,
}
g_rand_free(rand);
+
+ return FALSE;
}
static void
diff --git a/tests/video-timer.c b/tests/video-timer.c
index e665c6d..bc5de1e 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]