GNOME Bugzilla – Bug 724728
GtkPrintOperation is below is parent in fullscreen mode
Last modified: 2014-03-24 16:39:33 UTC
When using GtkPrintOperation in a fullscreen mode window ( gtk_window_fullscreen ), showned with gtk_print_operation_run and the window as parent, this dialog is still below. This Gtk dialog use gtk_window_set_modal() and gtk_window_present() and i know it's up to the WM to put it above or not, but it make it useless in this case. It will be great to be able to change this, having this dialog on top, even as an option.
Hi, I unfortunately don't quite understand what is this bug about. Do you want a special function or option for placing the print dialog on top of the parent window? This is already done by setting the parent in gtk_printer_operation_run() since it fills the "transient-for" attribute of the dialog by pointer to the parent. Regards Marek
1) Open gedit 3.11.X 2) Open a file 3) Press F11 to go in fullscreen mode (or pick fullscreen from the gear menu) 4) move the mouse to the top of the screen to make the toolbar drop down 5) pick gear menu -> print The print dialog end up behind the fullscreen window and thus not visibile Ideally Gtk would show it on top without any gedit change, but if we need to call some function that is ok too
Created attachment 272265 [details] [review] Draw print dialog on fullscreen windows Hi, I was using a window manager which didn't show the problem. I'm able to reproduce the problem now. Cause of this is that during conversion of dialogs to *.ui files the GtkPrintUnixDialog's "type-hint" was set to "normal" instead of "dialog" (so it is not present in 2.24). The attached patch fixes the problem for me. Regards Marek
Created attachment 272267 [details] [review] Draw print dialog on fullscreen windows (for gtk-3-10 branch)
It works. thanks