diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-29 04:27:21 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-30 15:56:00 +0100 |
commit | 5563841603eab5ec4ec7516114bc60b647b0664d (patch) | |
tree | 7ee673df1de12c9164c6c6d363d3939119df1bd3 /gsk/gskrenderer.h | |
parent | ce98df881ff244ca1120a2907124ee536185eddf (diff) | |
download | gtk+-5563841603eab5ec4ec7516114bc60b647b0664d.tar.gz |
gsk: Add gsk_renderer_new_for_window()
and remove gsk_renderer_get_for_display().
This new function returns a realized renderer. Because of that, GSK can
catch failures to realize, destroy the renderer and try another one.
Or in short: I can finally use GTK on Weston with the nvidia binary
drivers again.
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
Diffstat (limited to 'gsk/gskrenderer.h')
-rw-r--r-- | gsk/gskrenderer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskrenderer.h b/gsk/gskrenderer.h index 031de8e86c..646ba6dedd 100644 --- a/gsk/gskrenderer.h +++ b/gsk/gskrenderer.h @@ -39,7 +39,7 @@ GDK_AVAILABLE_IN_3_90 GType gsk_renderer_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_3_90 -GskRenderer * gsk_renderer_get_for_display (GdkDisplay *display); +GskRenderer * gsk_renderer_new_for_window (GdkWindow *window); GDK_AVAILABLE_IN_3_90 void gsk_renderer_set_viewport (GskRenderer *renderer, |