summaryrefslogtreecommitdiffstats
path: root/src/ege-adjustment-action.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-04-10 10:56:57 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-04-10 10:56:57 +0000
commit9e80f1d4786043549189fb2583d7fe198f688f2c (patch)
treef6aab15995978e7f1e2517cba309d35732b0318e /src/ege-adjustment-action.cpp
parentAdopt obsolete GtkAnchorType enum as SPAnchorType (diff)
downloadinkscape-9e80f1d4786043549189fb2583d7fe198f688f2c.tar.gz
inkscape-9e80f1d4786043549189fb2583d7fe198f688f2c.zip
Clean up some deprecated orientable API
(bzr r11208)
Diffstat (limited to 'src/ege-adjustment-action.cpp')
-rw-r--r--src/ege-adjustment-action.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ege-adjustment-action.cpp b/src/ege-adjustment-action.cpp
index 7497b0497..47500c8c4 100644
--- a/src/ege-adjustment-action.cpp
+++ b/src/ege-adjustment-action.cpp
@@ -829,7 +829,11 @@ static GtkWidget* create_tool_item( GtkAction* action )
if ( act->private_data->appearanceMode == APPEARANCE_FULL ) {
/* Slider */
gchar *leakyForNow = g_value_dup_string( &value );
+#if GTK_CHECK_VERSION(3,0,0)
+ spinbutton = gtk_scale_new(GTK_ORIENTATION_HORIZONTAL, act->private_data->adj);
+#else
spinbutton = gtk_hscale_new( act->private_data->adj);
+#endif
gtk_widget_set_size_request(spinbutton, 100, -1);
gtk_scale_set_digits( GTK_SCALE(spinbutton), 0 );
g_signal_connect( G_OBJECT(spinbutton), "format-value", G_CALLBACK(slider_format_falue), leakyForNow );