summaryrefslogtreecommitdiffstats
path: root/src/dialogs/clonetiler.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-01-03 00:07:54 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-01-03 00:07:54 +0000
commitc0ae0bee37a04c6e79dbe0de00f173c80917ffbe (patch)
tree175bfaf44d18be4d17ebd3803cb0ec7314c2e37e /src/dialogs/clonetiler.cpp
parentadd buttons for node adding at extrema (diff)
downloadinkscape-c0ae0bee37a04c6e79dbe0de00f173c80917ffbe.tar.gz
inkscape-c0ae0bee37a04c6e79dbe0de00f173c80917ffbe.zip
Cleanup GSEAL issues and deprecated GtkTooltips
(bzr r10826)
Diffstat (limited to 'src/dialogs/clonetiler.cpp')
-rw-r--r--src/dialogs/clonetiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp
index 1bb6b75d0..927f00233 100644
--- a/src/dialogs/clonetiler.cpp
+++ b/src/dialogs/clonetiler.cpp
@@ -1494,7 +1494,7 @@ static void clonetiler_value_changed(GtkAdjustment *adj, gpointer data)
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
const gchar *pref = (const gchar *) data;
- prefs->setDouble(prefs_path + pref, adj->value);
+ prefs->setDouble(prefs_path + pref, gtk_adjustment_get_value (adj));
}
static GtkWidget * clonetiler_spinbox(const char *tip, const char *attr, double lower, double upper, const gchar *suffix, bool exponent = false)
@@ -1555,7 +1555,7 @@ static void clonetiler_xy_changed(GtkAdjustment *adj, gpointer data)
{
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
const gchar *pref = (const gchar *) data;
- prefs->setInt(prefs_path + pref, (int) floor(adj->value + 0.5));
+ prefs->setInt(prefs_path + pref, (int) floor(gtk_adjustment_get_value (adj) + 0.5));
}
static void clonetiler_keep_bbox_toggled(GtkToggleButton *tb, gpointer /*data*/)
@@ -1706,7 +1706,7 @@ static void clonetiler_switch_to_fill(GtkToggleButton */*tb*/, GtkWidget *dlg)
static void clonetiler_fill_width_changed(GtkAdjustment *adj, GtkWidget *u)
{
- gdouble const raw_dist = adj->value;
+ gdouble const raw_dist = gtk_adjustment_get_value (adj);
SPUnit const &unit = *sp_unit_selector_get_unit(SP_UNIT_SELECTOR(u));
gdouble const pixels = sp_units_get_pixels (raw_dist, unit);