Bug 684003 - When using the main window in secondary monitor...

If gimp_window_set_transient_for() fails (due to platform
restrictions), at least set GTK_WIN_POS_CENTER on the window, so it
gets centered on the monitor where the mouse is. This also removes the
need for OSX specific centering code in GimpDialog (bug 677776).
This commit is contained in:
Michael Natterer
2012-11-11 21:09:46 +01:00
parent 60e0cfe55c
commit 9e5ed1e70a
2 changed files with 27 additions and 16 deletions

View File

@ -149,10 +149,6 @@ gimp_dialog_class_init (GimpDialogClass *klass)
static void
gimp_dialog_init (GimpDialog *dialog)
{
#ifdef GDK_WINDOWING_QUARTZ
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
#endif
g_signal_connect (dialog, "response",
G_CALLBACK (gimp_dialog_response),
NULL);