gimp r27615 - in trunk: . app/display
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27615 - in trunk: . app/display
- Date: Tue, 11 Nov 2008 10:12:52 +0000 (UTC)
Author: mitch
Date: Tue Nov 11 10:12:51 2008
New Revision: 27615
URL: http://svn.gnome.org/viewvc/gimp?rev=27615&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/display/gimpdisplayshell.c
Modified: trunk/app/display/gimpdisplayshell.c
==============================================================================
--- trunk/app/display/gimpdisplayshell.c (original)
+++ trunk/app/display/gimpdisplayshell.c Tue Nov 11 10:12:51 2008
@@ -689,6 +689,7 @@
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 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]