Chromium Code Reviews| Index: chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc |
| diff --git a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc |
| index 59157a41793d9fad72ebdc88fee7a6c23ef05bda..219fe7ef8f774325b443e5f3720d9fff16fb9b3d 100644 |
| --- a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc |
| +++ b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc |
| @@ -25,7 +25,6 @@ |
| #include "printing/print_job_constants.h" |
| #include "printing/print_settings.h" |
| #include "ui/aura/window.h" |
| -#include "ui/views/widget/desktop_aura/x11_desktop_handler.h" |
| using content::BrowserThread; |
| using printing::PageRanges; |
| @@ -366,8 +365,7 @@ void PrintDialogGtk2::ShowDialog( |
| // We need to call gtk_window_present after making the widgets visible to make |
| // sure window gets correctly raised and gets focus. |
| - int time = views::X11DesktopHandler::get()->wm_user_time_ms(); |
|
danakj
2016/08/11 21:48:19
Using a time is better if we can. Not being famili
Tom (Use chromium acct)
2016/08/15 18:42:45
:(
../../chrome/browser/ui/libgtk2ui/print_dialog
Tom (Use chromium acct)
2016/08/19 00:26:31
Turns out the necessary dependency was added in th
|
| - gtk_window_present_with_time(GTK_WINDOW(dialog_), time); |
| + gtk_window_present(GTK_WINDOW(dialog_)); |
| } |
| void PrintDialogGtk2::PrintDocument(const printing::MetafilePlayer& metafile, |