[gtk+] Added set_transient_for() implementation for GdkOffscreenWindow
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Added set_transient_for() implementation for GdkOffscreenWindow
- Date: Thu, 3 Feb 2011 14:44:08 +0000 (UTC)
commit b51f3ffffcd61527714c6fab40c40ef8e68eaeac
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu Feb 3 23:50:10 2011 +0900
Added set_transient_for() implementation for GdkOffscreenWindow
Just a noop that is better than crashing in the case this is called
(it can be called for a toplevel GtkWindow that is parented into
another widget by setting gtk_widget_set_parent_window to an offscreen
window).
gdk/gdkoffscreenwindow.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index 8ee57f9..6ec5e4a 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -685,6 +685,12 @@ gdk_offscreen_window_set_boolean (GdkWindow *window,
}
static void
+gdk_offscreen_window_set_transient_for (GdkWindow *window,
+ GdkWindow *another)
+{
+}
+
+static void
gdk_offscreen_window_process_updates_recurse (GdkWindow *window,
cairo_region_t *region)
{
@@ -739,7 +745,7 @@ gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass)
impl_class->set_title = NULL;
impl_class->set_role = NULL;
impl_class->set_startup_id = NULL;
- impl_class->set_transient_for = NULL;
+ impl_class->set_transient_for = gdk_offscreen_window_set_transient_for;
impl_class->get_root_origin = NULL;
impl_class->get_frame_extents = NULL;
impl_class->set_override_redirect = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]