X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-application.c;h=bfd3f4ecff47ef0178b1fc9d6f7f7d52f0e097c3;hb=7d10821fa9ae7cde776bcefb9278ac0371212045;hp=46001f494207d7cf64d5ae126b7d4afa86a73c38;hpb=76f0af54740d46b8f35712234c027f77920d7c0f;p=evince.git diff --git a/shell/ev-application.c b/shell/ev-application.c index 46001f49..bfd3f4ec 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -455,11 +455,15 @@ ev_application_open_window (EvApplication *application, if (!GTK_WIDGET_REALIZED (new_window)) gtk_widget_realize (new_window); +#ifdef GDK_WINDOWING_X11 if (timestamp <= 0) timestamp = gdk_x11_get_server_time (GTK_WIDGET (new_window)->window); gdk_x11_window_set_user_time (GTK_WIDGET (new_window)->window, timestamp); gtk_window_present (GTK_WINDOW (new_window)); +#else + gtk_window_present_with_time (GTK_WINDOW (new_window), timestamp); +#endif /* GDK_WINDOWING_X11 */ return TRUE; } @@ -614,6 +618,7 @@ ev_application_open_uri_at_dest (EvApplication *application, if (!GTK_WIDGET_REALIZED (GTK_WIDGET (new_window))) gtk_widget_realize (GTK_WIDGET (new_window)); +#ifdef GDK_WINDOWING_X11 if (timestamp <= 0) timestamp = gdk_x11_get_server_time (GTK_WIDGET (new_window)->window); gdk_x11_window_set_user_time (GTK_WIDGET (new_window)->window, timestamp); @@ -621,6 +626,11 @@ ev_application_open_uri_at_dest (EvApplication *application, ev_document_fc_mutex_lock (); gtk_window_present (GTK_WINDOW (new_window)); ev_document_fc_mutex_unlock (); +#else + ev_document_fc_mutex_lock (); + gtk_window_present_with_time (GTK_WINDOW (new_window), timestamp); + ev_document_fc_mutex_unlock (); +#endif /* GDK_WINDOWING_X11 */ } /**