set the default window type hint for dockables to Normal.

2003-11-29  Sven Neumann  <sven@gimp.org>

	* app/config/gimpguiconfig.c: set the default window type hint for
	dockables to Normal.

	* plug-ins/sel2path/sel2path_adv_dialog.c: set the number of
	digits to the same value for all spinbuttons.
This commit is contained in:
Sven Neumann 2003-11-29 22:38:50 +00:00 committed by Sven Neumann
parent acb5808381
commit e4ff018ef4
3 changed files with 56 additions and 46 deletions

View File

@ -1,3 +1,11 @@
2003-11-29 Sven Neumann <sven@gimp.org>
* app/config/gimpguiconfig.c: set the default window type hint for
dockables to Normal.
* plug-ins/sel2path/sel2path_adv_dialog.c: set the number of
digits to the same value for all spinbuttons.
2003-11-29 Sven Neumann <sven@gimp.org>
* plug-ins/common/AlienMap.c

View File

@ -233,7 +233,7 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
"dock-window-type",
DOCK_WINDOW_TYPE_BLURB,
GIMP_TYPE_WINDOW_TYPE_HINT,
GIMP_WINDOW_TYPE_HINT_UTILITY,
GIMP_WINDOW_TYPE_HINT_NORMAL,
GIMP_PARAM_RESTART);
}

View File

@ -38,6 +38,8 @@
#define SCALE_WIDTH 100
#define SCALE_DIGITS 8
static GSList * adjust_widgets = NULL;
@ -93,7 +95,7 @@ dialog_create_selection_area (SELVALS *sels)
row = 0;
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Align Threshold:", SCALE_WIDTH, 0,
"Align Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->align_threshold,
0.2, 2.0, 0.1, 0.1, 2,
TRUE, 0, 0,
@ -106,7 +108,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.5));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Corner Always Threshold:", SCALE_WIDTH, 0,
"Corner Always Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->corner_always_threshold,
30, 180, 1, 1, 2,
TRUE, 0, 0,
@ -121,7 +123,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (60.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Corner Surround:", SCALE_WIDTH, 0,
"Corner Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->corner_surround,
3, 8, 1, 1, 0,
TRUE, 0, 0,
@ -134,7 +136,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (4.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Corner Threshold:", SCALE_WIDTH, 0,
"Corner Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->corner_threshold,
0, 180, 1, 1, 2,
TRUE, 0, 0,
@ -149,7 +151,7 @@ dialog_create_selection_area (SELVALS *sels)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Error Threshold:", SCALE_WIDTH, 0,
"Error Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->error_threshold,
0.2, 10, 0.1, 0.1, 2,
TRUE, 0, 0,
@ -164,7 +166,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.40));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Alternative Surround:", SCALE_WIDTH, 0,
"Filter Alternative Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_alternative_surround,
1, 10, 1, 1, 0,
TRUE, 0, 0,
@ -178,7 +180,7 @@ dialog_create_selection_area (SELVALS *sels)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Epsilon:", SCALE_WIDTH, 0,
"Filter Epsilon:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_epsilon,
5, 40, 1, 1, 2,
TRUE, 0, 0,
@ -193,7 +195,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (10.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Iteration Count:", SCALE_WIDTH, 0,
"Filter Iteration Count:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_iteration_count,
4, 70, 1, 1, 0,
TRUE, 0, 0,
@ -209,7 +211,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (4.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Percent:", SCALE_WIDTH, 0,
"Filter Percent:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_percent,
0, 1, 0.05, 0.01, 2,
TRUE, 0, 0,
@ -222,7 +224,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.33));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Secondary Surround:", SCALE_WIDTH, 0,
"Filter Secondary Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_secondary_surround,
3, 10, 1, 1, 0,
TRUE, 0, 0,
@ -236,7 +238,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (3.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Surround:", SCALE_WIDTH, 0,
"Filter Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_surround,
2, 10, 1, 1, 0,
TRUE, 0, 0,
@ -264,7 +266,7 @@ dialog_create_selection_area (SELVALS *sels)
row++;
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Line Reversion Threshold:", SCALE_WIDTH, 0,
"Line Reversion Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->line_reversion_threshold,
0.01, 0.2, 0.01, 0.01, 3,
TRUE, 0, 0,
@ -280,7 +282,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.01));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Line Threshold:", SCALE_WIDTH, 0,
"Line Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->line_threshold,
0.2, 4, 0.1, 0.01, 2,
TRUE, 0, 0,
@ -294,7 +296,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.5));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Reparametrize Improvement:", SCALE_WIDTH, 0,
"Reparametrize Improvement:", SCALE_WIDTH, SCALE_DIGITS,
sels->reparameterize_improvement,
0, 1, 0.05, 0.01, 2,
TRUE, 0, 0,
@ -308,7 +310,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.01));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Reparametrize Threshold:", SCALE_WIDTH, 0,
"Reparametrize Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->reparameterize_threshold,
1, 50, 0.5, 0.5, 2,
TRUE, 0, 0,
@ -325,7 +327,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (1.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Subdivide Search:", SCALE_WIDTH, 0,
"Subdivide Search:", SCALE_WIDTH, SCALE_DIGITS,
sels->subdivide_search,
0.05, 1, 0.05, 0.01, 2,
TRUE, 0, 0,
@ -338,7 +340,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.1));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Subdivide Surround:", SCALE_WIDTH, 0,
"Subdivide Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->subdivide_surround,
2, 10, 1, 1, 0,
TRUE, 0, 0,
@ -352,7 +354,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (4.0));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Subdivide Threshold:", SCALE_WIDTH, 0,
"Subdivide Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->subdivide_threshold,
0.01, 1, 0.01, 0.01, 2,
TRUE, 0, 0,
@ -366,7 +368,7 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (0.03));
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Tangent Surround:", SCALE_WIDTH, 0,
"Tangent Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->tangent_surround,
2, 10, 1, 1, 0,
TRUE, 0, 0,