summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 66395a0)
raw | patch | inline | side by side (parent: 66395a0)
author | joncruz <joncruz@users.sourceforge.net> | |
Sat, 22 Mar 2008 18:54:06 +0000 (18:54 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sat, 22 Mar 2008 18:54:06 +0000 (18:54 +0000) |
src/ui/dialog/input.cpp | patch | blob | history |
index e9b250d594c3060aebd84458acc4ee003504a825..1400ce93ff0c47b785b27e58acadb31584c352cf 100644 (file)
--- a/src/ui/dialog/input.cpp
+++ b/src/ui/dialog/input.cpp
@@ -841,6 +841,9 @@ void InputDialogImpl::updateTestAxes( Glib::ustring const& key, GdkDevice* dev )
axesValues[i].set_sensitive(true);
axesValues[i].set_fraction( (axesMap[key][i].second- dev->axes[i].min) / (dev->axes[i].max - dev->axes[i].min) );
}
+ gchar* str = g_strdup_printf("%f", axesMap[key][i].second);
+ axesValues[i].set_text(str);
+ g_free(str);
}
break;
case 3:
@@ -851,6 +854,9 @@ void InputDialogImpl::updateTestAxes( Glib::ustring const& key, GdkDevice* dev )
axesValues[i].set_sensitive(true);
axesValues[i].set_fraction( (axesMap[key][i].second- dev->axes[i].min) / (dev->axes[i].max - dev->axes[i].min) );
}
+ gchar* str = g_strdup_printf("%f", axesMap[key][i].second);
+ axesValues[i].set_text(str);
+ g_free(str);
}
}
@@ -861,6 +867,7 @@ void InputDialogImpl::updateTestAxes( Glib::ustring const& key, GdkDevice* dev )
if ( !dev ) {
for ( gint i = 0; i < static_cast<gint>(G_N_ELEMENTS(axesValues)); i++ ) {
axesValues[i].set_fraction(0.0);
+ axesValues[i].set_text("");
axesValues[i].set_sensitive(false);
}
}