GNOME Bugzilla – Bug 732114
Gtk warning upon opening Annotation properties dialog
Last modified: 2014-06-24 16:07:08 UTC
The following Gtk warning is shown: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. when an annotation property window is opened. I am using the latest gtk and this happens because of this recent commit: https://mail.gnome.org/archives/commits-list/2014-May/msg00576.html
Created attachment 279046 [details] [review] Sets the main window as the transient parent of annotation properties dialog Mimics the implementation of ev-annotation-window with respect to the 'parent' property.
Review of attachment 279046 [details] [review]: ::: shell/ev-window.c @@ +6311,3 @@ return; + dialog = EV_ANNOTATION_PROPERTIES_DIALOG (ev_annotation_properties_dialog_new_with_annotation (window->priv->annot, GTK_WINDOW (window))); It's probably easier to simply call gtk_window_set_transient_for() here, no?
Yes... but then if someone decides to create another property dialog somewhere else, they would have to call gtk_window_set_transient_for() before instantiating it also. With the solution I proposed, we make sure that every property dialog has always a parent. If you think this is unlikely to happen though, I can simplify the patch a lot :)
(In reply to comment #3) > Yes... but then if someone decides to create another property dialog somewhere > else, they would have to call gtk_window_set_transient_for() before > instantiating it also. With the solution I proposed, we make sure that every > property dialog has always a parent. > > If you think this is unlikely to happen though, I can simplify the patch a lot > :) Yes, please, I don't think that will happen.
Created attachment 279116 [details] [review] Sets the annotation property dialog transient for the main window Ok, this was much easier than before :)
Review of attachment 279116 [details] [review]: Nice
Review of attachment 279116 [details] [review]: Pushed, thanks!
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.