[gimp/soc-2010-cage-2] app: change toolbox geometry hints to something that's closer to the docs
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: change toolbox geometry hints to something that's closer to the docs
- Date: Thu, 30 Dec 2010 18:11:41 +0000 (UTC)
commit 173f955c9e58e596821014cfe4ea55d4d1fcde9e
Author: Michael Natterer <mitch gimp org>
Date: Sat Nov 20 20:44:16 2010 +0100
app: change toolbox geometry hints to something that's closer to the docs
Feels more correct now when resizing, but not really.
app/widgets/gimptoolbox.c | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c
index d00b5d4..ef656e6 100644
--- a/app/widgets/gimptoolbox.c
+++ b/app/widgets/gimptoolbox.c
@@ -657,25 +657,23 @@ gimp_toolbox_set_host_geometry_hints (GimpDock *dock,
if (gimp_tool_palette_get_button_size (GIMP_TOOL_PALETTE (toolbox->p->tool_palette),
&button_width, &button_height))
{
- GtkWidget *main_vbox = gimp_dock_get_main_vbox (GIMP_DOCK (toolbox));
- gint border_width;
- GdkGeometry geometry;
+ GdkGeometry geometry;
gtk_widget_set_size_request (toolbox->p->header,
-1, button_height * PANGO_SCALE_SMALL);
- border_width = gtk_container_get_border_width (GTK_CONTAINER (main_vbox));
-
- geometry.min_width = (2 * border_width + 2 * button_width);
- geometry.min_height = -1;
- geometry.width_inc = button_width;
- geometry.height_inc = (gimp_dock_get_dockbooks (GIMP_DOCK (toolbox)) ?
- 1 : button_height);
+ geometry.min_width = 2 * button_width;
+ geometry.min_height = -1;
+ geometry.base_width = button_width;
+ geometry.base_height = -1;
+ geometry.width_inc = button_width;
+ geometry.height_inc = -1;
gtk_window_set_geometry_hints (window,
NULL,
&geometry,
GDK_HINT_MIN_SIZE |
+ GDK_HINT_BASE_SIZE |
GDK_HINT_RESIZE_INC |
GDK_HINT_USER_POS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]