summaryrefslogtreecommitdiffstats
path: root/src/widgets/ege-adjustment-action.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-12-18 14:50:42 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-12-18 14:50:42 +0000
commit9ceb238f8a4f5527c3621740e75713ea79eceebc (patch)
tree03e36e1ee30ed0b311c3d60db07ab73c42f23c57 /src/widgets/ege-adjustment-action.cpp
parentReduce with of +/- buttons. Reduce width of Fill and Stroke dialog. (diff)
downloadinkscape-9ceb238f8a4f5527c3621740e75713ea79eceebc.tar.gz
inkscape-9ceb238f8a4f5527c3621740e75713ea79eceebc.zip
Replace GimpSpinScale by InkSpinScale.
Diffstat (limited to 'src/widgets/ege-adjustment-action.cpp')
-rw-r--r--src/widgets/ege-adjustment-action.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/widgets/ege-adjustment-action.cpp b/src/widgets/ege-adjustment-action.cpp
index 3d46fd81d..0f0d205e2 100644
--- a/src/widgets/ege-adjustment-action.cpp
+++ b/src/widgets/ege-adjustment-action.cpp
@@ -46,12 +46,12 @@
#include <gtkmm/container.h>
#include <gtkmm/radiomenuitem.h>
+#include <gtkmm/adjustment.h>
#include <gdk/gdkkeysyms.h>
#include "widgets/ege-adjustment-action.h"
-#include "gimp/gimpspinscale.h"
#include "ui/icon-names.h"
-
+#include "ui/widget/ink-spinscale.h"
static void ege_adjustment_action_finalize( GObject* object );
static void ege_adjustment_action_get_property( GObject* obj, guint propId, GValue* value, GParamSpec * pspec );
@@ -820,7 +820,11 @@ static GtkWidget* create_tool_item( GtkAction* action )
if ( act->private_data->appearanceMode == APPEARANCE_FULL ) {
/* Slider */
- spinbutton = gimp_spin_scale_new (act->private_data->adj, g_value_get_string( &value ), 0);
+ InkSpinScale* inkspinscale =
+ new InkSpinScale(Glib::wrap(act->private_data->adj));
+ inkspinscale->set_label( g_value_get_string( &value ));
+ inkspinscale->set_digits(0);
+ spinbutton = (GtkWidget*)inkspinscale->gobj();
gtk_widget_set_size_request(spinbutton, 100, -1);
} else if ( act->private_data->appearanceMode == APPEARANCE_MINIMAL ) {