Code

remove fractional digits from hscales, we cannot drag with such precision anyway
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 9 Jul 2008 03:22:09 +0000 (03:22 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 9 Jul 2008 03:22:09 +0000 (03:22 +0000)
src/ege-adjustment-action.cpp

index c70fcc27d1cbf61c19cbdaa5b382c5acaa26337a..a8ec26c5046ecb3aef57eeb26b43ae8fe4f9d996 100644 (file)
@@ -780,6 +780,7 @@ static GtkWidget* create_tool_item( GtkAction* action )
         if ( act->private_data->appearanceMode == APPEARANCE_FULL ) {
             spinbutton = gtk_hscale_new( act->private_data->adj);
             gtk_widget_set_size_request(spinbutton, 100, -1);
+            gtk_scale_set_digits (GTK_SCALE(spinbutton), 0);
 #if GTK_CHECK_VERSION(2,12,0)
         } else if ( act->private_data->appearanceMode == APPEARANCE_MINIMAL ) {
             spinbutton = gtk_scale_button_new( GTK_ICON_SIZE_MENU, 0, 100, 2, 0 );