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

added some GtkSizeGroups and changed spacings to improve the dialog

2004-05-21  Sven Neumann  <sven@gimp.org>

	* app/gui/preferences-dialog.c: added some GtkSizeGroups and
	changed spacings to improve the dialog layout.

	* app/gui/file-new-dialog.c
	* app/widgets/gimpgrideditor.c
	* app/widgets/gimptemplateeditor.c: minor changes for consistency.
parent ebb19b59
2004-05-21 Sven Neumann <sven@gimp.org>
* app/gui/preferences-dialog.c: added some GtkSizeGroups and
changed spacings to improve the dialog layout.
* app/gui/file-new-dialog.c
* app/widgets/gimpgrideditor.c
* app/widgets/gimptemplateeditor.c: minor changes for consistency.
2004-05-21 Sven Neumann <sven@gimp.org> 2004-05-21 Sven Neumann <sven@gimp.org>
* plug-ins/gflare/gflare.c * plug-ins/gflare/gflare.c
......
...@@ -120,7 +120,7 @@ file_new_dialog_new (Gimp *gimp) ...@@ -120,7 +120,7 @@ file_new_dialog_new (Gimp *gimp)
gtk_widget_show (main_vbox); gtk_widget_show (main_vbox);
table = gtk_table_new (1, 2, FALSE); table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (main_vbox), table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (main_vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table); gtk_widget_show (table);
......
This diff is collapsed.
...@@ -120,7 +120,7 @@ file_new_dialog_new (Gimp *gimp) ...@@ -120,7 +120,7 @@ file_new_dialog_new (Gimp *gimp)
gtk_widget_show (main_vbox); gtk_widget_show (main_vbox);
table = gtk_table_new (1, 2, FALSE); table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (main_vbox), table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (main_vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table); gtk_widget_show (table);
......
This diff is collapsed.
...@@ -37,8 +37,11 @@ ...@@ -37,8 +37,11 @@
#include "gimp-intl.h" #include "gimp-intl.h"
#define GRID_EDITOR_DEFAULT_RESOLUTION 72.0 #define GRID_EDITOR_DEFAULT_RESOLUTION 72.0
#define GRID_EDITOR_COLOR_BUTTON_SIZE 20
#define GRID_EDITOR_COLOR_BUTTON_WIDTH 60
#define GRID_EDITOR_COLOR_BUTTON_HEIGHT 20
enum enum
{ {
...@@ -205,8 +208,8 @@ gimp_grid_editor_constructor (GType type, ...@@ -205,8 +208,8 @@ gimp_grid_editor_constructor (GType type,
gtk_widget_show (frame); gtk_widget_show (frame);
table = gtk_table_new (3, 2, FALSE); table = gtk_table_new (3, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 2); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 4); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_add (GTK_CONTAINER (frame), table); gtk_container_add (GTK_CONTAINER (frame), table);
style = gimp_prop_enum_combo_box_new (G_OBJECT (editor->grid), "style", style = gimp_prop_enum_combo_box_new (G_OBJECT (editor->grid), "style",
...@@ -214,12 +217,12 @@ gimp_grid_editor_constructor (GType type, ...@@ -214,12 +217,12 @@ gimp_grid_editor_constructor (GType type,
GIMP_GRID_SOLID); GIMP_GRID_SOLID);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0, gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Line _Style:"), 0.0, 0.5, _("Line _Style:"), 0.0, 0.5,
style, 1, TRUE); style, 1, FALSE);
color_button = gimp_prop_color_button_new (G_OBJECT (editor->grid), "fgcolor", color_button = gimp_prop_color_button_new (G_OBJECT (editor->grid), "fgcolor",
_("Change Grid Foreground Color"), _("Change Grid Foreground Color"),
GRID_EDITOR_COLOR_BUTTON_SIZE, GRID_EDITOR_COLOR_BUTTON_WIDTH,
GRID_EDITOR_COLOR_BUTTON_SIZE, GRID_EDITOR_COLOR_BUTTON_HEIGHT,
GIMP_COLOR_AREA_FLAT); GIMP_COLOR_AREA_FLAT);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1, gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Foreground Color:"), 0.0, 0.5, _("_Foreground Color:"), 0.0, 0.5,
...@@ -227,8 +230,8 @@ gimp_grid_editor_constructor (GType type, ...@@ -227,8 +230,8 @@ gimp_grid_editor_constructor (GType type,
color_button = gimp_prop_color_button_new (G_OBJECT (editor->grid), "bgcolor", color_button = gimp_prop_color_button_new (G_OBJECT (editor->grid), "bgcolor",
_("Change Grid Background Color"), _("Change Grid Background Color"),
GRID_EDITOR_COLOR_BUTTON_SIZE, GRID_EDITOR_COLOR_BUTTON_WIDTH,
GRID_EDITOR_COLOR_BUTTON_SIZE, GRID_EDITOR_COLOR_BUTTON_HEIGHT,
GIMP_COLOR_AREA_FLAT); GIMP_COLOR_AREA_FLAT);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2, gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_Background Color:"), 0.0, 0.5, _("_Background Color:"), 0.0, 0.5,
...@@ -240,8 +243,7 @@ gimp_grid_editor_constructor (GType type, ...@@ -240,8 +243,7 @@ gimp_grid_editor_constructor (GType type,
gtk_box_pack_start (GTK_BOX (editor), frame, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (editor), frame, FALSE, FALSE, 0);
gtk_widget_show (frame); gtk_widget_show (frame);
hbox = gtk_hbox_new (FALSE, 2); hbox = gtk_hbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 2);
gtk_container_add (GTK_CONTAINER (frame), hbox); gtk_container_add (GTK_CONTAINER (frame), hbox);
sizeentry = gimp_prop_coordinates_new (G_OBJECT (editor->grid), sizeentry = gimp_prop_coordinates_new (G_OBJECT (editor->grid),
...@@ -273,8 +275,7 @@ gimp_grid_editor_constructor (GType type, ...@@ -273,8 +275,7 @@ gimp_grid_editor_constructor (GType type,
gtk_box_pack_start (GTK_BOX (editor), frame, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (editor), frame, FALSE, FALSE, 0);
gtk_widget_show (frame); gtk_widget_show (frame);
hbox = gtk_hbox_new (FALSE, 2); hbox = gtk_hbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 2);
gtk_container_add (GTK_CONTAINER (frame), hbox); gtk_container_add (GTK_CONTAINER (frame), hbox);
sizeentry = gimp_prop_coordinates_new (G_OBJECT (editor->grid), sizeentry = gimp_prop_coordinates_new (G_OBJECT (editor->grid),
......
...@@ -216,7 +216,7 @@ gimp_template_editor_constructor (GType type, ...@@ -216,7 +216,7 @@ gimp_template_editor_constructor (GType type,
gtk_widget_show (frame); gtk_widget_show (frame);
table = gtk_table_new (3, 2, FALSE); table = gtk_table_new (3, 2, FALSE);
gtk_table_set_col_spacing (GTK_TABLE (table), 0, 4); gtk_table_set_col_spacing (GTK_TABLE (table), 0, 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2); gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2);
gtk_container_add (GTK_CONTAINER (frame), table); gtk_container_add (GTK_CONTAINER (frame), table);
...@@ -254,8 +254,8 @@ gimp_template_editor_constructor (GType type, ...@@ -254,8 +254,8 @@ gimp_template_editor_constructor (GType type,
gimp_size_entry_new (0, editor->template->unit,_("%p"), gimp_size_entry_new (0, editor->template->unit,_("%p"),
TRUE, FALSE, FALSE, SB_WIDTH, TRUE, FALSE, FALSE, SB_WIDTH,
GIMP_SIZE_ENTRY_UPDATE_SIZE); GIMP_SIZE_ENTRY_UPDATE_SIZE);
gtk_table_set_col_spacing (GTK_TABLE (editor->size_se), 1, 2); gtk_table_set_col_spacings (GTK_TABLE (editor->size_se), 2);
gtk_table_set_row_spacing (GTK_TABLE (editor->size_se), 0, 2); gtk_table_set_row_spacings (GTK_TABLE (editor->size_se), 2);
gtk_box_pack_start (GTK_BOX (hbox), editor->size_se, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), editor->size_se, FALSE, FALSE, 0);
gtk_widget_show (editor->size_se); gtk_widget_show (editor->size_se);
...@@ -313,7 +313,7 @@ gimp_template_editor_constructor (GType type, ...@@ -313,7 +313,7 @@ gimp_template_editor_constructor (GType type,
gtk_widget_show (frame); gtk_widget_show (frame);
table = gtk_table_new (5, 2, FALSE); table = gtk_table_new (5, 2, FALSE);
gtk_table_set_col_spacing (GTK_TABLE (table), 0, 4); gtk_table_set_col_spacing (GTK_TABLE (table), 0, 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2); gtk_table_set_row_spacing (GTK_TABLE (table), 0, 2);
gtk_container_add (GTK_CONTAINER (frame), table); gtk_container_add (GTK_CONTAINER (frame), table);
...@@ -519,8 +519,8 @@ gimp_template_editor_new (GimpTemplate *template, ...@@ -519,8 +519,8 @@ gimp_template_editor_new (GimpTemplate *template,
g_slist_free (stock_list); g_slist_free (stock_list);
table = gtk_table_new (2, 2, FALSE); table = gtk_table_new (2, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4); gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 2); gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (editor), table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (editor), table, FALSE, FALSE, 0);
gtk_box_reorder_child (GTK_BOX (editor), table, 0); gtk_box_reorder_child (GTK_BOX (editor), table, 0);
gtk_widget_show (table); gtk_widget_show (table);
......
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