summaryrefslogtreecommitdiffstats
path: root/SidebarView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarView.cpp')
-rw-r--r--SidebarView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/SidebarView.cpp b/SidebarView.cpp
index cdf4a2e..99eae25 100644
--- a/SidebarView.cpp
+++ b/SidebarView.cpp
@@ -19,7 +19,7 @@ void SidebarView::spinButtonChanged(GtkWidget *spinbutton, SidebarView *view) {
((PlayerStart*)view->editor->getSelectedObject())->setZ(gtk_spin_button_get_value(GTK_SPIN_BUTTON(spinbutton)));
}
- view->editor->update();
+ view->editor->redraw();
}
SidebarView::SidebarView(EditManager *editor) {
@@ -100,7 +100,7 @@ SidebarView::SidebarView(EditManager *editor) {
gtk_widget_show(labelX);
gtk_table_attach(GTK_TABLE(tablePlayerStart), labelX, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
- spinButtonX = gtk_spin_button_new_with_range(-10000, 10000, 0.1f);
+ spinButtonX = gtk_spin_button_new_with_range(-10000, 10000, 0.01f);
gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spinButtonX), 2);
gtk_entry_set_alignment(GTK_ENTRY(spinButtonX), 1.0);
gtk_widget_show(spinButtonX);
@@ -114,7 +114,7 @@ SidebarView::SidebarView(EditManager *editor) {
gtk_widget_show(labelY);
gtk_table_attach(GTK_TABLE(tablePlayerStart), labelY, 0, 1, 2, 3, GTK_FILL, GTK_FILL, 0, 0);
- spinButtonY = gtk_spin_button_new_with_range(-10000, 10000, 0.1f);
+ spinButtonY = gtk_spin_button_new_with_range(-10000, 10000, 0.01f);
gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spinButtonY), 2);
gtk_entry_set_alignment(GTK_ENTRY(spinButtonY), 1.0);
gtk_widget_show(spinButtonY);
@@ -128,7 +128,7 @@ SidebarView::SidebarView(EditManager *editor) {
gtk_widget_show(labelZ);
gtk_table_attach(GTK_TABLE(tablePlayerStart), labelZ, 0, 1, 3, 4, GTK_FILL, GTK_FILL, 0, 0);
- spinButtonZ = gtk_spin_button_new_with_range(-10000, 10000, 0.1f);
+ spinButtonZ = gtk_spin_button_new_with_range(-10000, 10000, 0.01f);
gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spinButtonZ), 2);
gtk_entry_set_alignment(GTK_ENTRY(spinButtonZ), 1.0);
gtk_widget_show(spinButtonZ);