summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-03 12:51:36 +0200
committerraveit65 <[email protected]>2016-07-03 13:01:21 +0200
commit4edab6c5f5cd9acf220f2acfa81d3cd05a8dc879 (patch)
tree039b5f78054ac1868f28c6aa1ca8c20298d5c644
parent3bee2df64cfd3335640b34c5b87fcd290c01b7b4 (diff)
downloadatril-4edab6c5f5cd9acf220f2acfa81d3cd05a8dc879.tar.bz2
atril-4edab6c5f5cd9acf220f2acfa81d3cd05a8dc879.tar.xz
Setting parent for annotation properties dialog
After the last gtk+ update, the warning: "Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged." was shown whenever the annotation properties dialog was opened. The commit fixes this issue by setting this dialog transient for the main window. As a plus, the dialog is now shown always on the center of the main window. https://bugzilla.gnome.org/show_bug.cgi?id=732114 taken from: https://git.gnome.org/browse/evince/commit/?id=9533c68
-rw-r--r--shell/ev-window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 993df17e..2fb1a66c 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -7044,6 +7044,7 @@ ev_view_popup_cmd_annot_properties (GtkAction *action,
return;
dialog = EV_ANNOTATION_PROPERTIES_DIALOG (ev_annotation_properties_dialog_new_with_annotation (window->priv->annot));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (window));
if (gtk_dialog_run (GTK_DIALOG (dialog)) != GTK_RESPONSE_APPLY) {
gtk_widget_destroy (GTK_WIDGET (dialog));