GNOME Bugzilla – Bug 740115
InstallPrinterDrivers dialog is not modal for Printers panel
Last modified: 2014-11-14 13:33:52 UTC
Created attachment 290705 [details] [review] Make driver installation dialog modal Dialog brought up by gnome-package's method InstallPrinterDrivers gets wrong XID and hence it shows in the centre of the screen instead of in the centre of the Printer panel. It gets XID of the New Printer Dialog instead of the Printers panel itself. Attached patch fixes this + it retypes the window_id to guint as it should be. I also looked at possibilities how to make this work in wayland but I don't know how yet. Marek
Review of attachment 290705 [details] [review]: The changes in the first file are obviously correct ::: panels/printers/pp-new-printer.c @@ +339,3 @@ + "WindowID", + "Window ID of parent window", + 0, G_MAXUINT, 631, 631 ?! I know it was there already and in practice it doesn't really matter but it's totally bogus and should be fixed. I would prefer that the changes in this file were in a different patch as they don't really relate to the bug here.
Created attachment 290709 [details] [review] Make driver installation dialog modal Hi, thank you for the review. (In reply to comment #1) > Review of attachment 290705 [details] [review]: > > The changes in the first file are obviously correct Thanks. > ::: panels/printers/pp-new-printer.c > @@ +339,3 @@ > + "WindowID", > + "Window ID of parent window", > + 0, G_MAXUINT, 631, > > 631 ?! I know it was there already and in practice it doesn't really matter but > it's totally bogus and should be fixed. You are right this was a copy paste error. > I would prefer that the changes in this file were in a different patch as they > don't really relate to the bug here. I've moved the changes of the second file to another patch.
Created attachment 290710 [details] [review] Use correct type for window id Use correct type for the window id and initialize the property holding it to 0.
Review of attachment 290710 [details] [review]: ++
Review of attachment 290709 [details] [review]: yep
Thank you for the re-reviews. I've pushed the patches to master.