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.
This commit is contained in:
Owen W. Taylor 2013-04-24 17:42:42 -04:00
parent 8dc090b9b1
commit a082f4d804
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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