diff options
author | Benjamin Otte <otte@redhat.com> | 2010-11-25 12:28:08 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-12-02 20:21:05 +0100 |
commit | 4d1604c77de2b97c7759574fb3ca9a400be32403 (patch) | |
tree | 55d630e8b124ed991833c1c1fd64c779a2686cdc /gdk/gdkwindowimpl.h | |
parent | 1269f8424f935a34d38106527ffce3e2cc8e35d0 (diff) | |
download | gtk+-4d1604c77de2b97c7759574fb3ca9a400be32403.tar.gz |
gdk: Move window beeps into GdkWindowImpl
One less magic function. Also refactored it to make it easier to
implement. It now returns TRUE if it beeped and FALSE if it failed to do
so. A default implementation exists that just returns FALSE for all the
backends that can't beep windows (read: everything but X11 with XKB -
and why on earth do keyboard libs implement beeping?)
Diffstat (limited to 'gdk/gdkwindowimpl.h')
-rw-r--r-- | gdk/gdkwindowimpl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h index dfcf3b4dc7..0332a31b71 100644 --- a/gdk/gdkwindowimpl.h +++ b/gdk/gdkwindowimpl.h @@ -158,6 +158,9 @@ struct _GdkWindowImplClass cairo_surface_t *surface, gint width, gint height); + + /* optional */ + gboolean (* beep) (GdkWindow *window); }; /* Interface Functions */ |