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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user