Ticket #24761: patch-gtk_adjustment_new.diff

File patch-gtk_adjustment_new.diff, 2.1 KB (added by mklein-de (Michael Klein), 15 years ago)
  • src/xsane.c

    old new  
    12181218  gtk_widget_show(pixmapwidget);
    12191219
    12201220  /* adf pages maximum */
    1221   adjustment = gtk_adjustment_new(preferences.adf_pages_max, 1, 9999, 1, 10, 1);
     1221  adjustment = gtk_adjustment_new(preferences.adf_pages_max, 1, 9999, 1, 10, 0);
    12221222  xsane_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(adjustment), 0, 0);
    12231223  gtk_widget_set_size_request(xsane_spinbutton, 55, -1);
    12241224  gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(xsane_spinbutton), FALSE);
     
    13171317
    13181318
    13191319    /* number of copies */
    1320     adjustment = gtk_adjustment_new(xsane.copy_number, 1, 99, 1, 10, 1);
     1320    adjustment = gtk_adjustment_new(xsane.copy_number, 1, 99, 1, 10, 0);
    13211321    xsane_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(adjustment), 0, 0);
    13221322    gtk_widget_set_size_request(xsane_spinbutton, 40, -1);
    13231323    gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(xsane_spinbutton), FALSE);
  • src/xsane-front-gtk.c

    old new  
    11531153  /* spinbutton */
    11541154  if (preferences.show_range_mode & 4)
    11551155  {
     1156    g_object_set(*data, "page-size", 0.0, (void*)NULL);
    11561157    spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(*data), 0, digits);
    11571158    if (preferences.show_range_mode & 3) /* slider also visible */
    11581159    {
     
    12461247  /* spinbutton */
    12471248  if (preferences.show_range_mode & 4)
    12481249  {
     1250    g_object_set(*data, "page-size", 0.0, (void*)NULL);
    12491251    spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(*data), 0, digits);
    12501252    gtk_widget_set_size_request(spinbutton, 60, -1);
    12511253    xsane_back_gtk_set_tooltip(xsane.tooltips, spinbutton, desc);
  • src/xsane-back-gtk.c

    old new  
    20292029      digits = 5;
    20302030    }
    20312031#endif
     2032    g_object_set(elem->data, "page-size", 0.0, (void*)NULL);
    20322033    spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(elem->data), 0, digits);
    20332034
    20342035    if (preferences.show_range_mode & 3) /* slider also visible */