Commit 90c932f7 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

fix to work without menubar, don't reset GDK_HINT_USER_POS.

2008-03-25  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
	fix to work without menubar, don't reset GDK_HINT_USER_POS.


svn path=/trunk/; revision=25217
parent 809f4fe6
2008-03-25 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
fix to work without menubar, don't reset GDK_HINT_USER_POS.
2008-03-25 Sven Neumann <sven@gimp.org>
* app/gui/gui.c (gui_restore_after_callback): focus the image
......
......@@ -590,20 +590,27 @@ gimp_display_shell_style_set (GtkWidget *widget,
GtkStyle *prev_style)
{
GimpDisplayShell *shell = GIMP_DISPLAY_SHELL (widget);
GtkRequisition menubar_req;
GtkRequisition statusbar_req;
GtkRequisition requisition;
GdkGeometry geometry;
GTK_WIDGET_CLASS (parent_class)->style_set (widget, prev_style);
gtk_widget_size_request (shell->menubar, &menubar_req);
gtk_widget_size_request (shell->statusbar, &statusbar_req);
gtk_widget_size_request (shell->statusbar, &requisition);
geometry.min_width = statusbar_req.width;
geometry.min_height = statusbar_req.height + menubar_req.height + 1;
geometry.min_width = requisition.width;
geometry.min_height = requisition.height;
if (shell->menubar)
{
gtk_widget_size_request (shell->menubar, &requisition);
geometry.min_height += requisition.height + 1;
}
gtk_window_set_geometry_hints (GTK_WINDOW (widget), NULL,
&geometry, GDK_HINT_MIN_SIZE);
&geometry,
GDK_HINT_MIN_SIZE |
GDK_HINT_USER_POS);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment