Make GdkAppLaunchContext work again

We didn't set the display, ever. Add a construct-only property
for this purpose.
This commit is contained in:
Matthias Clasen
2010-12-15 02:37:03 -05:00
parent fa33839d72
commit 6c16ddc2d3
2 changed files with 53 additions and 2 deletions

View File

@ -453,8 +453,9 @@ _gdk_x11_display_get_app_launch_context (GdkDisplay *display)
{
GdkAppLaunchContext *ctx;
ctx = g_object_new (_gdk_app_launch_context_x11_get_type (), NULL);
gdk_app_launch_context_set_display (ctx, display);
ctx = g_object_new (_gdk_app_launch_context_x11_get_type (),
"display", display,
NULL);
return ctx;
}