diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-12-18 14:50:42 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2017-12-18 14:50:42 +0000 |
| commit | 9ceb238f8a4f5527c3621740e75713ea79eceebc (patch) | |
| tree | 03e36e1ee30ed0b311c3d60db07ab73c42f23c57 /src/widgets/ege-adjustment-action.cpp | |
| parent | Reduce with of +/- buttons. Reduce width of Fill and Stroke dialog. (diff) | |
| download | inkscape-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.cpp | 10 |
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 ) { |
