]> Pileus Git - ~andy/gtk/commitdiff
Added set_transient_for() implementation for GdkOffscreenWindow
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 3 Feb 2011 14:50:10 +0000 (23:50 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Thu, 3 Feb 2011 14:52:12 +0000 (23:52 +0900)
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

index 8ee57f923ff43840000cdc27a6c37e15bf1a8a10..6ec5e4aec162f90f9cc4a364b9af02ae248ee659 100644 (file)
@@ -684,6 +684,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;