[evince] Setting parent for annotation properties dialog
- From: Giselle Reis <gisellemnr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Setting parent for annotation properties dialog
- Date: Tue, 24 Jun 2014 16:05:38 +0000 (UTC)
commit 9533c6848f13a3b9725fb8c9f06829f22fbc9c20
Author: Giselle Machado <giselle mnr gmail com>
Date: Tue Jun 24 16:05:27 2014 +0200
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
shell/ev-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 6242d62..d5e1099 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -6299,6 +6299,7 @@ ev_window_popup_cmd_annot_properties (GSimpleAction *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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]