mirror of https://github.com/GNOME/gimp.git
parent
31331996fa
commit
933a5abd54
|
@ -1,3 +1,12 @@
|
|||
Sat Sep 25 23:40:25 MEST 1999 Jens Lautenbacher <jens@tellux.de>
|
||||
Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/rect_selectP.h
|
||||
* app/selection_options.h
|
||||
* app/tool_options.c: Changed width and height in the rect/ellipse
|
||||
tools to be of type double. This makes fixed_size work with real-life
|
||||
units.
|
||||
|
||||
Sat Sep 25 21:43:35 MEST 1999 Jens Lautenbacher <jens@tellux.de>
|
||||
Sven Neumann <sven@gimp.org>
|
||||
|
||||
|
|
|
@ -421,7 +421,7 @@ selection_options_init (SelectionOptions *options,
|
|||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (width_spinbutton), TRUE);
|
||||
gtk_widget_set_usize (width_spinbutton, 75, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (options->fixed_width_w), "value_changed",
|
||||
(GtkSignalFunc) tool_options_int_adjustment_update,
|
||||
(GtkSignalFunc) tool_options_double_adjustment_update,
|
||||
&options->fixed_width);
|
||||
gtk_table_attach (GTK_TABLE (table), width_spinbutton, 1, 2, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
|
@ -443,7 +443,7 @@ selection_options_init (SelectionOptions *options,
|
|||
gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(height_spinbutton), TRUE);
|
||||
gtk_widget_set_usize (height_spinbutton, 75, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (options->fixed_height_w), "value_changed",
|
||||
(GtkSignalFunc) tool_options_int_adjustment_update,
|
||||
(GtkSignalFunc) tool_options_double_adjustment_update,
|
||||
&options->fixed_height);
|
||||
gtk_table_attach (GTK_TABLE (table), height_spinbutton, 1, 2, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
|
|
|
@ -16,8 +16,8 @@ struct _RectSelect
|
|||
int center; /* is the selection being created from the center out? */
|
||||
|
||||
int fixed_size;
|
||||
int fixed_width;
|
||||
int fixed_height;
|
||||
double fixed_width;
|
||||
double fixed_height;
|
||||
guint context_id; /* for the statusbar */
|
||||
};
|
||||
|
||||
|
|
|
@ -54,12 +54,12 @@ struct _SelectionOptions
|
|||
int fixed_size_d;
|
||||
GtkWidget *fixed_size_w;
|
||||
|
||||
int fixed_width;
|
||||
int fixed_width_d;
|
||||
double fixed_width;
|
||||
double fixed_width_d;
|
||||
GtkObject *fixed_width_w;
|
||||
|
||||
int fixed_height;
|
||||
int fixed_height_d;
|
||||
double fixed_height;
|
||||
double fixed_height_d;
|
||||
GtkObject *fixed_height_w;
|
||||
|
||||
GUnit fixed_unit;
|
||||
|
|
|
@ -421,7 +421,7 @@ selection_options_init (SelectionOptions *options,
|
|||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (width_spinbutton), TRUE);
|
||||
gtk_widget_set_usize (width_spinbutton, 75, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (options->fixed_width_w), "value_changed",
|
||||
(GtkSignalFunc) tool_options_int_adjustment_update,
|
||||
(GtkSignalFunc) tool_options_double_adjustment_update,
|
||||
&options->fixed_width);
|
||||
gtk_table_attach (GTK_TABLE (table), width_spinbutton, 1, 2, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
|
@ -443,7 +443,7 @@ selection_options_init (SelectionOptions *options,
|
|||
gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(height_spinbutton), TRUE);
|
||||
gtk_widget_set_usize (height_spinbutton, 75, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (options->fixed_height_w), "value_changed",
|
||||
(GtkSignalFunc) tool_options_int_adjustment_update,
|
||||
(GtkSignalFunc) tool_options_double_adjustment_update,
|
||||
&options->fixed_height);
|
||||
gtk_table_attach (GTK_TABLE (table), height_spinbutton, 1, 2, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
|
|
|
@ -54,12 +54,12 @@ struct _SelectionOptions
|
|||
int fixed_size_d;
|
||||
GtkWidget *fixed_size_w;
|
||||
|
||||
int fixed_width;
|
||||
int fixed_width_d;
|
||||
double fixed_width;
|
||||
double fixed_width_d;
|
||||
GtkObject *fixed_width_w;
|
||||
|
||||
int fixed_height;
|
||||
int fixed_height_d;
|
||||
double fixed_height;
|
||||
double fixed_height_d;
|
||||
GtkObject *fixed_height_w;
|
||||
|
||||
GUnit fixed_unit;
|
||||
|
|
|
@ -16,8 +16,8 @@ struct _RectSelect
|
|||
int center; /* is the selection being created from the center out? */
|
||||
|
||||
int fixed_size;
|
||||
int fixed_width;
|
||||
int fixed_height;
|
||||
double fixed_width;
|
||||
double fixed_height;
|
||||
guint context_id; /* for the statusbar */
|
||||
};
|
||||
|
||||
|
|
|
@ -54,12 +54,12 @@ struct _SelectionOptions
|
|||
int fixed_size_d;
|
||||
GtkWidget *fixed_size_w;
|
||||
|
||||
int fixed_width;
|
||||
int fixed_width_d;
|
||||
double fixed_width;
|
||||
double fixed_width_d;
|
||||
GtkObject *fixed_width_w;
|
||||
|
||||
int fixed_height;
|
||||
int fixed_height_d;
|
||||
double fixed_height;
|
||||
double fixed_height_d;
|
||||
GtkObject *fixed_height_w;
|
||||
|
||||
GUnit fixed_unit;
|
||||
|
|
|
@ -421,7 +421,7 @@ selection_options_init (SelectionOptions *options,
|
|||
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (width_spinbutton), TRUE);
|
||||
gtk_widget_set_usize (width_spinbutton, 75, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (options->fixed_width_w), "value_changed",
|
||||
(GtkSignalFunc) tool_options_int_adjustment_update,
|
||||
(GtkSignalFunc) tool_options_double_adjustment_update,
|
||||
&options->fixed_width);
|
||||
gtk_table_attach (GTK_TABLE (table), width_spinbutton, 1, 2, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
|
@ -443,7 +443,7 @@ selection_options_init (SelectionOptions *options,
|
|||
gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(height_spinbutton), TRUE);
|
||||
gtk_widget_set_usize (height_spinbutton, 75, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (options->fixed_height_w), "value_changed",
|
||||
(GtkSignalFunc) tool_options_int_adjustment_update,
|
||||
(GtkSignalFunc) tool_options_double_adjustment_update,
|
||||
&options->fixed_height);
|
||||
gtk_table_attach (GTK_TABLE (table), height_spinbutton, 1, 2, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
|
|
Loading…
Reference in New Issue