let new docks appear at the pointer position.

2008-10-14  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdialogfactory.c 
(gimp_dialog_factory_add_dialog):
	let new docks appear at the pointer position.


svn path=/trunk/; revision=27282
This commit is contained in:
Sven Neumann 2008-10-14 21:39:14 +00:00 committed by Sven Neumann
parent c66dd26ba7
commit ce4c2c3bfc
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-10-14 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdialogfactory.c (gimp_dialog_factory_add_dialog):
let new docks appear at the pointer position.
2008-10-14 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.[ch]: add a default implementation of

View File

@ -895,6 +895,9 @@ gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
"creating session info %p (widget %p) for dock",
info, info->widget);
/* let new docks appear at the pointer position */
gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
/* if we create a new session info, we never call
* gimp_session_info_set_geometry(), but still the
* dialog needs GDK_HINT_USER_POS so it keeps its