mirror of https://github.com/GNOME/gimp.git
connect to the chain-button and update the "keep-aspect" property when it
2006-05-19 Sven Neumann <sven@gimp.org> * app/widgets/gimpsizebox.c: connect to the chain-button and update the "keep-aspect" property when it is toggled.
This commit is contained in:
parent
c6d8d49224
commit
414e661696
|
@ -1,3 +1,8 @@
|
|||
2006-05-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpsizebox.c: connect to the chain-button and
|
||||
update the "keep-aspect" property when it is toggled.
|
||||
|
||||
2006-05-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpaligntool.c (gimp_align_tool_register): actually
|
||||
|
|
|
@ -69,19 +69,21 @@ static GObject * gimp_size_box_constructor (GType type,
|
|||
guint n_params,
|
||||
GObjectConstructParam *params);
|
||||
|
||||
static void gimp_size_box_set_property (GObject *object,
|
||||
guint property_id,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gimp_size_box_get_property (GObject *object,
|
||||
guint property_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gimp_size_box_set_property (GObject *object,
|
||||
guint property_id,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gimp_size_box_get_property (GObject *object,
|
||||
guint property_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
|
||||
static void gimp_size_box_destroy (GtkObject *object);
|
||||
static void gimp_size_box_destroy (GtkObject *object);
|
||||
|
||||
static void gimp_size_box_update_size (GimpSizeBox *box);
|
||||
static void gimp_size_box_update_resolution (GimpSizeBox *box);
|
||||
static void gimp_size_box_update_size (GimpSizeBox *box);
|
||||
static void gimp_size_box_update_resolution (GimpSizeBox *box);
|
||||
static void gimp_size_box_chain_toggled (GimpChainButton *button,
|
||||
GimpSizeBox *box);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpSizeBox, gimp_size_box, GTK_TYPE_VBOX)
|
||||
|
@ -221,6 +223,10 @@ gimp_size_box_constructor (GType type,
|
|||
box->xresolution,
|
||||
box->yresolution);
|
||||
|
||||
g_signal_connect (priv->size_chain, "toggled",
|
||||
G_CALLBACK (gimp_size_box_chain_toggled),
|
||||
box);
|
||||
|
||||
gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0);
|
||||
gtk_widget_show (entry);
|
||||
|
||||
|
@ -462,3 +468,12 @@ gimp_size_box_update_resolution (GimpSizeBox *box)
|
|||
g_free (text);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_size_box_chain_toggled (GimpChainButton *button,
|
||||
GimpSizeBox *box)
|
||||
{
|
||||
g_object_set (box,
|
||||
"keep-aspect", gimp_chain_button_get_active (button),
|
||||
NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue