diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-29 04:51:07 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-30 15:58:07 +0100 |
commit | 318e19f570369a1beaabc76b7ca3b018e985f13d (patch) | |
tree | a7bed1587ee5a391d9995218d97dac7647814172 /gsk/gskcairorenderer.c | |
parent | 5563841603eab5ec4ec7516114bc60b647b0664d (diff) | |
download | gtk+-318e19f570369a1beaabc76b7ca3b018e985f13d.tar.gz |
gskrenderer: Add GError argument to gsk_renderer_realize()
This way, we don't spam criticals when GL is not available. Instead, we
print a useful debug message to stderr and continue with the Cairo renderer.
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
Diffstat (limited to 'gsk/gskcairorenderer.c')
-rw-r--r-- | gsk/gskcairorenderer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gsk/gskcairorenderer.c b/gsk/gskcairorenderer.c index 9c9929c7b2..4c9dfef803 100644 --- a/gsk/gskcairorenderer.c +++ b/gsk/gskcairorenderer.c @@ -34,8 +34,9 @@ struct _GskCairoRendererClass G_DEFINE_TYPE (GskCairoRenderer, gsk_cairo_renderer, GSK_TYPE_RENDERER) static gboolean -gsk_cairo_renderer_realize (GskRenderer *renderer, - GdkWindow *window) +gsk_cairo_renderer_realize (GskRenderer *renderer, + GdkWindow *window, + GError **error) { return TRUE; } |