[gtk+/gtk-3-14] gdk: don't segfault on beep with offscreen window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-14] gdk: don't segfault on beep with offscreen window
- Date: Mon, 27 Apr 2015 17:28:01 +0000 (UTC)
commit 6500211ea45686858ad2dca14b3b3cebcf9d938a
Author: Christian Hergert <christian hergert me>
Date: Wed Apr 22 16:35:29 2015 -0700
gdk: don't segfault on beep with offscreen window
https://bugzilla.gnome.org/show_bug.cgi?id=748341
gdk/gdkoffscreenwindow.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index e67a8b7..2ddf73a 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -676,6 +676,12 @@ gdk_offscreen_window_set_opacity (GdkWindow *window, gdouble opacity)
{
}
+static gboolean
+gdk_offscreen_window_beep (GdkWindow *window)
+{
+ return FALSE;
+}
+
static void
gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass)
{
@@ -709,7 +715,7 @@ gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass)
impl_class->destroy_foreign = NULL;
impl_class->get_shape = NULL;
impl_class->get_input_shape = NULL;
- impl_class->beep = NULL;
+ impl_class->beep = gdk_offscreen_window_beep;
impl_class->focus = NULL;
impl_class->set_type_hint = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]