Commit ba10d7be authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/dialogs/preferences-dialog.c removed frames to reduce visual clutter.

2007-05-17  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c
	* app/widgets/gimptoolbox.c: removed frames to reduce visual 
clutter.

	* app/widgets/gimptoolbox-indicator-area.c: draw with borders.

svn path=/trunk/; revision=22523
parent 51114f6e
2007-05-17 Sven Neumann <sven@gimp.org>
* app/dialogs/preferences-dialog.c
* app/widgets/gimptoolbox.c: removed frames to reduce visual clutter.
* app/widgets/gimptoolbox-indicator-area.c: draw with borders.
2007-05-17 Simon Budig <simon@gimp.org>
* plug-ins/common/tiff-load.c: Fix the order of the imported paths.
......@@ -1383,13 +1383,8 @@ prefs_dialog_new (Gimp *gimp,
gtk_container_add (GTK_CONTAINER (frame), tv);
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
frame = gtk_frame_new (NULL);
......
......@@ -41,9 +41,9 @@
#include "gimp-intl.h"
#define CELL_SIZE 26 /* The size of the previews */
#define GRAD_CELL_WIDTH 54 /* The width of the gradient preview */
#define GRAD_CELL_HEIGHT 14 /* The height of the gradient preview */
#define CELL_SIZE 24 /* The size of the previews */
#define GRAD_CELL_WIDTH 52 /* The width of the gradient preview */
#define GRAD_CELL_HEIGHT 12 /* The height of the gradient preview */
#define CELL_SPACING 2 /* How much between brush and pattern cells */
......@@ -138,7 +138,7 @@ gimp_toolbox_indicator_area_create (GimpToolbox *toolbox)
brush_view =
gimp_view_new_full_by_types (context,
GIMP_TYPE_VIEW, GIMP_TYPE_BRUSH,
CELL_SIZE, CELL_SIZE, 0,
CELL_SIZE, CELL_SIZE, 1,
FALSE, TRUE, TRUE);
gimp_view_set_viewable (GIMP_VIEW (brush_view),
GIMP_VIEWABLE (gimp_context_get_brush (context)));
......@@ -169,7 +169,7 @@ gimp_toolbox_indicator_area_create (GimpToolbox *toolbox)
pattern_view =
gimp_view_new_full_by_types (context,
GIMP_TYPE_VIEW, GIMP_TYPE_PATTERN,
CELL_SIZE, CELL_SIZE, 0,
CELL_SIZE, CELL_SIZE, 1,
FALSE, TRUE, TRUE);
gimp_view_set_viewable (GIMP_VIEW (pattern_view),
GIMP_VIEWABLE (gimp_context_get_pattern (context)));
......@@ -201,7 +201,7 @@ gimp_toolbox_indicator_area_create (GimpToolbox *toolbox)
gradient_view =
gimp_view_new_full_by_types (context,
GIMP_TYPE_VIEW, GIMP_TYPE_GRADIENT,
GRAD_CELL_WIDTH, GRAD_CELL_HEIGHT, 0,
GRAD_CELL_WIDTH, GRAD_CELL_HEIGHT, 1,
FALSE, TRUE, TRUE);
gimp_view_set_viewable (GIMP_VIEW (gradient_view),
GIMP_VIEWABLE (gimp_context_get_gradient (context)));
......
......@@ -195,7 +195,7 @@ gimp_toolbox_constructor (GType type,
main_vbox = GIMP_DOCK (toolbox)->main_vbox;
vbox = gtk_vbox_new (FALSE, 0);
vbox = gtk_vbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (main_vbox), vbox, FALSE, FALSE, 0);
gtk_box_reorder_child (GTK_BOX (main_vbox), vbox, 0);
gtk_widget_show (vbox);
......@@ -348,7 +348,7 @@ gimp_toolbox_size_allocate (GtkWidget *widget,
list;
list = list->next)
{
tool_info = (GimpToolInfo *) list->data;
tool_info = list->data;
if (tool_info->visible)
n_tools++;
......@@ -671,17 +671,11 @@ static GtkWidget *
toolbox_create_color_area (GimpToolbox *toolbox,
GimpContext *context)
{
GtkWidget *frame;
GtkWidget *alignment;
GtkWidget *col_area;
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
alignment = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 3);
gtk_container_add (GTK_CONTAINER (frame), alignment);
gtk_widget_show (alignment);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 2);
gimp_help_set_help_data (alignment, NULL, GIMP_HELP_TOOLBOX_COLOR_AREA);
......@@ -694,24 +688,18 @@ toolbox_create_color_area (GimpToolbox *toolbox,
"squares reset colors. The arrows swap colors. Click "
"to open the color selection dialog."), NULL);
return frame;
return alignment;
}
static GtkWidget *
toolbox_create_foo_area (GimpToolbox *toolbox,
GimpContext *context)
{
GtkWidget *frame;
GtkWidget *alignment;
GtkWidget *foo_area;
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
alignment = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 3);
gtk_container_add (GTK_CONTAINER (frame), alignment);
gtk_widget_show (alignment);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 2);
gimp_help_set_help_data (alignment, NULL, GIMP_HELP_TOOLBOX_INDICATOR_AREA);
......@@ -719,24 +707,18 @@ toolbox_create_foo_area (GimpToolbox *toolbox,
gtk_container_add (GTK_CONTAINER (alignment), foo_area);
gtk_widget_show (foo_area);
return frame;
return alignment;
}
static GtkWidget *
toolbox_create_image_area (GimpToolbox *toolbox,
GimpContext *context)
{
GtkWidget *frame;
GtkWidget *alignment;
GtkWidget *image_area;
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
alignment = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 3);
gtk_container_add (GTK_CONTAINER (frame), alignment);
gtk_widget_show (alignment);
gtk_container_set_border_width (GTK_CONTAINER (alignment), 2);
gimp_help_set_help_data (alignment, NULL, GIMP_HELP_TOOLBOX_IMAGE_AREA);
......@@ -744,7 +726,7 @@ toolbox_create_image_area (GimpToolbox *toolbox,
gtk_container_add (GTK_CONTAINER (alignment), image_area);
gtk_widget_show (image_area);
return frame;
return alignment;
}
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