Bug 559580 – Image windows need better default locations

2008-11-11  Michael Natterer  <mitch@gimp.org>

	Bug 559580 – Image windows need better default locations

	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	Only set GDK_HINT_USER_POS on the empty display because it gets a
	position set by gimp. All other displays should be placed by the
	window manager. Fixes all displays appearing at 0,0.


svn path=/trunk/; revision=27615
This commit is contained in:
Michael Natterer 2008-11-11 10:12:51 +00:00 committed by Michael Natterer
parent 52c583cdd8
commit c02822ea05
2 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2008-11-11 Michael Natterer <mitch@gimp.org>
Bug 559580 Image windows need better default locations
* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
Only set GDK_HINT_USER_POS on the empty display because it gets a
position set by gimp. All other displays should be placed by the
window manager. Fixes all displays appearing at 0,0.
2008-11-11 Sven Neumann <sven@gimp.org>
Bug 558797 "Export Path" doesn't remember last used folder

View File

@ -689,6 +689,7 @@ gimp_display_shell_style_set (GtkWidget *widget,
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (widget);
GtkRequisition requisition;
GdkGeometry geometry;
GdkWindowHints geometry_mask;
GTK_WIDGET_CLASS (parent_class)->style_set (widget, prev_style);
@ -706,9 +707,17 @@ gimp_display_shell_style_set (GtkWidget *widget,
geometry.min_height += requisition.height;
}
geometry_mask = GDK_HINT_MIN_SIZE;
/* Only set user pos on the empty display because it gets a pos
* set by gimp. All other displays should be placed by the window
* manager. See http://bugzilla.gnome.org/show_bug.cgi?id=559580
*/
if (! shell->display->image)
geometry_mask |= GDK_HINT_USER_POS;
gtk_window_set_geometry_hints (GTK_WINDOW (widget), NULL,
&geometry,
GDK_HINT_MIN_SIZE | GDK_HINT_USER_POS);
&geometry, geometry_mask);
}
static void