summaryrefslogtreecommitdiffstats
path: root/src/widgets/select-toolbar.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-01-06 00:44:17 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-01-06 00:44:17 +0000
commita6eeea52037e555b85631f3006c0d0da1b93fcb0 (patch)
tree3f29d61198b992deaa9678a7d2458b16b8b1ff8c /src/widgets/select-toolbar.cpp
parentadd toolbutton menu action type. now the add extremum node buttons are somewh... (diff)
downloadinkscape-a6eeea52037e555b85631f3006c0d0da1b93fcb0.tar.gz
inkscape-a6eeea52037e555b85631f3006c0d0da1b93fcb0.zip
More GSEAL stuff
(bzr r10850)
Diffstat (limited to 'src/widgets/select-toolbar.cpp')
-rw-r--r--src/widgets/select-toolbar.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/widgets/select-toolbar.cpp b/src/widgets/select-toolbar.cpp
index 38346ce56..83cbe98ff 100644
--- a/src/widgets/select-toolbar.cpp
+++ b/src/widgets/select-toolbar.cpp
@@ -187,20 +187,20 @@ sp_object_layout_any_value_changed(GtkAdjustment *adj, SPWidget *spw)
GtkAdjustment* a_h = GTK_ADJUSTMENT( g_object_get_data( G_OBJECT(spw), "height" ) );
if (unit.base == SP_UNIT_ABSOLUTE || unit.base == SP_UNIT_DEVICE) {
- x0 = sp_units_get_pixels (a_x->value, unit);
- y0 = sp_units_get_pixels (a_y->value, unit);
- x1 = x0 + sp_units_get_pixels (a_w->value, unit);
- xrel = sp_units_get_pixels (a_w->value, unit) / bbox_user->dimensions()[Geom::X];
- y1 = y0 + sp_units_get_pixels (a_h->value, unit);
- yrel = sp_units_get_pixels (a_h->value, unit) / bbox_user->dimensions()[Geom::Y];
+ x0 = sp_units_get_pixels (gtk_adjustment_get_value (a_x), unit);
+ y0 = sp_units_get_pixels (gtk_adjustment_get_value (a_y), unit);
+ x1 = x0 + sp_units_get_pixels (gtk_adjustment_get_value (a_w), unit);
+ xrel = sp_units_get_pixels (gtk_adjustment_get_value (a_w), unit) / bbox_user->dimensions()[Geom::X];
+ y1 = y0 + sp_units_get_pixels (gtk_adjustment_get_value (a_h), unit);
+ yrel = sp_units_get_pixels (gtk_adjustment_get_value (a_h), unit) / bbox_user->dimensions()[Geom::Y];
} else {
- double const x0_propn = a_x->value * unit.unittobase;
+ double const x0_propn = gtk_adjustment_get_value (a_x) * unit.unittobase;
x0 = bbox_user->min()[Geom::X] * x0_propn;
- double const y0_propn = a_y->value * unit.unittobase;
+ double const y0_propn = gtk_adjustment_get_value (a_y) * unit.unittobase;
y0 = y0_propn * bbox_user->min()[Geom::Y];
- xrel = a_w->value * unit.unittobase;
+ xrel = gtk_adjustment_get_value (a_w) * unit.unittobase;
x1 = x0 + xrel * bbox_user->dimensions()[Geom::X];
- yrel = a_h->value * unit.unittobase;
+ yrel = gtk_adjustment_get_value (a_h) * unit.unittobase;
y1 = y0 + yrel * bbox_user->dimensions()[Geom::Y];
}