From 84b4db13c33d62918461221f6f108355aea34565 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 4 May 2009 20:46:50 +0200 Subject: Make libcanberra-gtk multihead safe Add ca_gtk_context_get_for_screen() that takes the settings from and listens for changes on the GtkSettings belonging to the screen, instead of the default one. FDO #21551. --- src/canberra-gtk.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/canberra-gtk.h') diff --git a/src/canberra-gtk.h b/src/canberra-gtk.h index c9b3a99..8daddc9 100644 --- a/src/canberra-gtk.h +++ b/src/canberra-gtk.h @@ -26,7 +26,11 @@ G_BEGIN_DECLS +#ifndef GDK_MULTIHEAD_SAFE ca_context *ca_gtk_context_get(void); +#endif + +ca_context *ca_gtk_context_get_for_screen(GdkScreen *screen); int ca_gtk_proplist_set_for_widget(ca_proplist *p, GtkWidget *w); -- cgit