summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-01-21 23:49:19 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-01-21 23:49:19 +0000
commit8aae510a98bb214192ec50688e44267751d49b1c (patch)
treedbf2cf229a7c584958f532c3f8ee68a9d00a58a2 /src/widgets/toolbox.cpp
parentfix part of inbox:16 Spinbuttons look glitchy (diff)
downloadinkscape-8aae510a98bb214192ec50688e44267751d49b1c.tar.gz
inkscape-8aae510a98bb214192ec50688e44267751d49b1c.zip
Cleanup unused toolbar code
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 2dd1c57ef..7cfa4de03 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -714,11 +714,9 @@ EgeAdjustmentAction * create_adjustment_action( gchar const *name,
gchar const *label, gchar const *shortLabel, gchar const *tooltip,
Glib::ustring const &path, gdouble def,
GtkWidget *focusTarget,
- GObject * /* dataKludge */,
gboolean altx, gchar const *altx_mark,
gdouble lower, gdouble upper, gdouble step, gdouble page,
gchar const** descrLabels, gdouble const* descrValues, guint descrCount,
- void (*callback)(GtkAdjustment *, GObject *),
Inkscape::UI::Widget::UnitTracker *unit_tracker,
gdouble climb/* = 0.1*/, guint digits/* = 3*/, double factor/* = 1.0*/ )
{
@@ -732,8 +730,6 @@ EgeAdjustmentAction * create_adjustment_action( gchar const *name,
GtkAdjustment* adj = GTK_ADJUSTMENT( gtk_adjustment_new( prefs->getDouble(path, def) * factor,
lower, upper, step, page, 0 ) );
-// g_signal_connect( G_OBJECT(adj), "value-changed", G_CALLBACK(callback), dataKludge );
-
EgeAdjustmentAction* act = ege_adjustment_action_new( adj, name, label, tooltip, nullptr, climb, digits, unit_tracker );
if ( shortLabel ) {
g_object_set( act, "short_label", shortLabel, NULL );
@@ -751,15 +747,6 @@ EgeAdjustmentAction * create_adjustment_action( gchar const *name,
g_object_set( G_OBJECT(act), "self-id", altx_mark, NULL );
}
- /*
- * TODO: Is this ever used?
- if ( dataKludge ) {
- // Rather lame, but it's the only place where we need to get the entry name
- // but we don't have an Entry
- g_object_set_data( dataKludge, prefs->getEntry(path).getEntryName().data(), adj );
- }
- */
-
if (unit_tracker) {
unit_tracker->addAdjustment(adj);
}