Commit e4ff018e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent acb58083
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
......@@ -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);
}
......
......@@ -20,7 +20,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*/
/* Change log:-
......@@ -37,7 +37,9 @@
#include <libgimp/gimpui.h>
#define SCALE_WIDTH 100
#define SCALE_WIDTH 100
#define SCALE_DIGITS 8
static GSList * adjust_widgets = NULL;
......@@ -49,7 +51,7 @@ reset_adv_dialog (void)
GSList *list;
GtkObject *widget;
gdouble *value;
for (list = adjust_widgets; list; list = g_slist_next (list))
{
widget = GTK_OBJECT (list->data);
......@@ -58,7 +60,7 @@ reset_adv_dialog (void)
if (GTK_IS_ADJUSTMENT (widget))
{
gtk_adjustment_set_value (GTK_ADJUSTMENT (widget),
gtk_adjustment_set_value (GTK_ADJUSTMENT (widget),
*value);
}
else if (GTK_IS_TOGGLE_BUTTON (widget))
......@@ -93,8 +95,8 @@ dialog_create_selection_area (SELVALS *sels)
row = 0;
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Align Threshold:", SCALE_WIDTH, 0,
sels->align_threshold,
"Align Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->align_threshold,
0.2, 2.0, 0.1, 0.1, 2,
TRUE, 0, 0,
"If two endpoints are closer than this,"
......@@ -106,11 +108,11 @@ 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,
sels->corner_always_threshold,
"Corner Always Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->corner_always_threshold,
30, 180, 1, 1, 2,
TRUE, 0, 0,
"If the angle defined by a point and its predecessors "
"If the angle defined by a point and its predecessors "
"and successors is smaller than this, it's a corner, "
"even if it's within `corner_surround' pixels of a "
"point with a smaller angle.", NULL);
......@@ -121,8 +123,8 @@ 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,
sels->corner_surround,
"Corner Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->corner_surround,
3, 8, 1, 1, 0,
TRUE, 0, 0,
"Number of points to consider when determining if a "
......@@ -134,12 +136,12 @@ 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,
sels->corner_threshold,
"Corner Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->corner_threshold,
0, 180, 1, 1, 2,
TRUE, 0, 0,
"If a point, its predecessors, and its successors "
"define an angle smaller than this, it's a corner.",
"define an angle smaller than this, it's a corner.",
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -149,13 +151,13 @@ dialog_create_selection_area (SELVALS *sels)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Error Threshold:", SCALE_WIDTH, 0,
sels->error_threshold,
"Error Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->error_threshold,
0.2, 10, 0.1, 0.1, 2,
TRUE, 0, 0,
"Amount of error at which a fitted spline is "
"unacceptable. If any pixel is further away "
"than this from the fitted curve, we try again.",
"than this from the fitted curve, we try again.",
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -164,8 +166,8 @@ 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,
sels->filter_alternative_surround,
"Filter Alternative Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_alternative_surround,
1, 10, 1, 1, 0,
TRUE, 0, 0,
"A second number of adjacent points to consider "
......@@ -178,8 +180,8 @@ dialog_create_selection_area (SELVALS *sels)
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Filter Epsilon:", SCALE_WIDTH, 0,
sels->filter_epsilon,
"Filter Epsilon:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_epsilon,
5, 40, 1, 1, 2,
TRUE, 0, 0,
"If the angles between the vectors produced by "
......@@ -193,8 +195,8 @@ 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,
sels->filter_iteration_count,
"Filter Iteration Count:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_iteration_count,
4, 70, 1, 1, 0,
TRUE, 0, 0,
"Number of times to smooth original data points. "
......@@ -209,8 +211,8 @@ 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,
sels->filter_percent,
"Filter Percent:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_percent,
0, 1, 0.05, 0.01, 2,
TRUE, 0, 0,
"To produce the new point, use the old point plus "
......@@ -222,12 +224,12 @@ 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,
sels->filter_secondary_surround,
"Filter Secondary Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_secondary_surround,
3, 10, 1, 1, 0,
TRUE, 0, 0,
"Number of adjacent points to consider if "
"`filter_surround' points defines a straight line.",
"`filter_surround' points defines a straight line.",
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -236,11 +238,11 @@ 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,
sels->filter_surround,
"Filter Surround:", SCALE_WIDTH, SCALE_DIGITS,
sels->filter_surround,
2, 10, 1, 1, 0,
TRUE, 0, 0,
"Number of adjacent points to consider when filtering.",
"Number of adjacent points to consider when filtering.",
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -249,10 +251,10 @@ dialog_create_selection_area (SELVALS *sels)
g_object_set_data (G_OBJECT (adj), "default_value", def_val (2.0));
check = gtk_check_button_new_with_label ("Keep Knees");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), sels->keep_knees);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), sels->keep_knees);
gtk_table_attach (GTK_TABLE (table), check, 1, 3, row, row + 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
gimp_help_set_help_data (GTK_WIDGET (check),
gimp_help_set_help_data (GTK_WIDGET (check),
"Says whether or not to remove ``knee'' "
"points after finding the outline.", NULL);
g_signal_connect (check, "toggled",
......@@ -264,8 +266,8 @@ dialog_create_selection_area (SELVALS *sels)
row++;
adj = gimp_scale_entry_new (GTK_TABLE (table), 0, row++,
"Line Reversion Threshold:", SCALE_WIDTH, 0,
sels->line_reversion_threshold,
"Line Reversion Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->line_reversion_threshold,
0.01, 0.2, 0.01, 0.01, 3,
TRUE, 0, 0,
"If a spline is closer to a straight line than this, "
......@@ -280,8 +282,8 @@ 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,
sels->line_threshold,
"Line Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->line_threshold,
0.2, 4, 0.1, 0.01, 2,
TRUE, 0, 0,
"How many pixels (on the average) a spline can "
......@@ -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,8 +310,8 @@ 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,
sels->reparameterize_threshold,
"Reparametrize Threshold:", SCALE_WIDTH, SCALE_DIGITS,
sels->reparameterize_threshold,
1, 50, 0.5, 0.5, 2,
TRUE, 0, 0,
"Amount of error at which it is pointless to reparameterize. "
......@@ -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,12 +340,12 @@ 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,
"Number of points to consider when deciding whether "
"a given point is a better place to subdivide.",
"a given point is a better place to subdivide.",
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -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,
......
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