diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-04-15 20:09:36 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-04-15 20:09:36 +0000 |
| commit | 12f44c4f342837bd36dbd0f9b269d36edb2e41c6 (patch) | |
| tree | c44c89f85e572a90be197f931fa98fb6f1879840 /src/ege-adjustment-action.cpp | |
| parent | remove ridiculous comment (diff) | |
| download | inkscape-12f44c4f342837bd36dbd0f9b269d36edb2e41c6.tar.gz inkscape-12f44c4f342837bd36dbd0f9b269d36edb2e41c6.zip | |
hack C++ spinbuttons into toolbars. unit conversion does not work, and will probably be a huge pain to add
(bzr r10169)
Diffstat (limited to 'src/ege-adjustment-action.cpp')
| -rw-r--r-- | src/ege-adjustment-action.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ege-adjustment-action.cpp b/src/ege-adjustment-action.cpp index de8814f55..bfab201f4 100644 --- a/src/ege-adjustment-action.cpp +++ b/src/ege-adjustment-action.cpp @@ -62,6 +62,8 @@ #include "icon-size.h" #include "ege-adjustment-action.h" +#include "ui/widget/spinbutton.h" + static void ege_adjustment_action_class_init( EgeAdjustmentActionClass* klass ); static void ege_adjustment_action_init( EgeAdjustmentAction* action ); @@ -846,7 +848,9 @@ static GtkWidget* create_tool_item( GtkAction* action ) gtk_scale_button_set_icons( GTK_SCALE_BUTTON(spinbutton), floogles ); #endif /* GTK_CHECK_VERSION(2,12,0) */ } else { - spinbutton = gtk_spin_button_new( act->private_data->adj, act->private_data->climbRate, act->private_data->digits ); + //spinbutton = gtk_spin_button_new( act->private_data->adj, act->private_data->climbRate, act->private_data->digits ); + Inkscape::UI::Widget::SpinButton *inkscape_spinbutton = new Inkscape::UI::Widget::SpinButton(*Glib::wrap(act->private_data->adj, true), act->private_data->climbRate, act->private_data->digits); + spinbutton = GTK_WIDGET( inkscape_spinbutton->gobj() ); } item = GTK_WIDGET( gtk_tool_item_new() ); |
