After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724728 - GtkPrintOperation is below is parent in fullscreen mode
GtkPrintOperation is below is parent in fullscreen mode
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
3.11.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-02-19 15:27 UTC by sébastien lafargue
Modified: 2014-03-24 16:39 UTC
See Also:
GNOME target: ---
GNOME version: 3.11/3.12


Attachments
Draw print dialog on fullscreen windows (1.14 KB, patch)
2014-03-18 11:48 UTC, Marek Kašík
committed Details | Review
Draw print dialog on fullscreen windows (for gtk-3-10 branch) (1.13 KB, patch)
2014-03-18 11:49 UTC, Marek Kašík
none Details | Review

Description sébastien lafargue 2014-02-19 15:27:43 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.
Comment 1 Marek Kašík 2014-03-17 15:23:12 UTC
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
Comment 2 Paolo Borelli 2014-03-17 15:51:30 UTC
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
Comment 3 Marek Kašík 2014-03-18 11:48:38 UTC
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
Comment 4 Marek Kašík 2014-03-18 11:49:56 UTC
Created attachment 272267 [details] [review]
Draw print dialog on fullscreen windows (for gtk-3-10 branch)
Comment 5 sébastien lafargue 2014-03-19 20:34:16 UTC
It works. thanks