[gimp/gimp-2-8] Bug 742202 - new layer/path dialog opens always in the upper left corner
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 742202 - new layer/path dialog opens always in the upper left corner
- Date: Thu, 8 Jan 2015 20:19:43 +0000 (UTC)
commit 440a045986fc7f2863ed25ae7ffdc879571d0e7b
Author: Michael Natterer <mitch gimp org>
Date: Thu Jan 8 21:13:41 2015 +0100
Bug 742202 - new layer/path dialog opens always in the upper left corner
gimp_dialog_set_property(): when setting a non-toplevel parent widget,
don't just set the dialog's screen, also set the window position to
GTK_WIN_POS_MOUSE, so the window opens at the mouse position.
(cherry picked from commit 1dd2752949de62bf5968605af45ea12d1b55109d)
libgimpwidgets/gimpdialog.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/libgimpwidgets/gimpdialog.c b/libgimpwidgets/gimpdialog.c
index 076a4a3..58122f9 100644
--- a/libgimpwidgets/gimpdialog.c
+++ b/libgimpwidgets/gimpdialog.c
@@ -245,11 +245,17 @@ gimp_dialog_set_property (GObject *object,
if (parent)
{
if (GTK_IS_WINDOW (parent))
- gtk_window_set_transient_for (GTK_WINDOW (object),
- GTK_WINDOW (parent));
+ {
+ gtk_window_set_transient_for (GTK_WINDOW (object),
+ GTK_WINDOW (parent));
+ }
else
- gtk_window_set_screen (GTK_WINDOW (object),
- gtk_widget_get_screen (parent));
+ {
+ gtk_window_set_screen (GTK_WINDOW (object),
+ gtk_widget_get_screen (parent));
+ gtk_window_set_position (GTK_WINDOW (object),
+ GTK_WIN_POS_MOUSE);
+ }
}
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]