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 1218 1218 gtk_widget_show(pixmapwidget); 1219 1219 1220 1220 /* 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); 1222 1222 xsane_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(adjustment), 0, 0); 1223 1223 gtk_widget_set_size_request(xsane_spinbutton, 55, -1); 1224 1224 gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(xsane_spinbutton), FALSE); … … 1317 1317 1318 1318 1319 1319 /* 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); 1321 1321 xsane_spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(adjustment), 0, 0); 1322 1322 gtk_widget_set_size_request(xsane_spinbutton, 40, -1); 1323 1323 gtk_spin_button_set_wrap(GTK_SPIN_BUTTON(xsane_spinbutton), FALSE); -
src/xsane-front-gtk.c
old new 1153 1153 /* spinbutton */ 1154 1154 if (preferences.show_range_mode & 4) 1155 1155 { 1156 g_object_set(*data, "page-size", 0.0, (void*)NULL); 1156 1157 spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(*data), 0, digits); 1157 1158 if (preferences.show_range_mode & 3) /* slider also visible */ 1158 1159 { … … 1246 1247 /* spinbutton */ 1247 1248 if (preferences.show_range_mode & 4) 1248 1249 { 1250 g_object_set(*data, "page-size", 0.0, (void*)NULL); 1249 1251 spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(*data), 0, digits); 1250 1252 gtk_widget_set_size_request(spinbutton, 60, -1); 1251 1253 xsane_back_gtk_set_tooltip(xsane.tooltips, spinbutton, desc); -
src/xsane-back-gtk.c
old new 2029 2029 digits = 5; 2030 2030 } 2031 2031 #endif 2032 g_object_set(elem->data, "page-size", 0.0, (void*)NULL); 2032 2033 spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(elem->data), 0, digits); 2033 2034 2034 2035 if (preferences.show_range_mode & 3) /* slider also visible */