[Thoggen-cvs] thoggen/src th-job-cropping-dialog.c,1.4,1.5
Status: Beta
Brought to you by:
tp-m
From: Tim M. <tp...@us...> - 2004-11-27 19:57:09
|
Update of /cvsroot/thoggen/thoggen/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16816 Modified Files: th-job-cropping-dialog.c Log Message: Restrict cropping to sensible dimensions Index: th-job-cropping-dialog.c =================================================================== RCS file: /cvsroot/thoggen/thoggen/src/th-job-cropping-dialog.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** th-job-cropping-dialog.c 26 Nov 2004 16:43:26 -0000 1.4 --- th-job-cropping-dialog.c 27 Nov 2004 19:56:48 -0000 1.5 *************** *** 267,270 **** --- 267,282 ---- G_CALLBACK (jcd_frame_scale_value_changed), jcd); + gtk_spin_button_set_range (GTK_SPIN_BUTTON (jcd->priv->spin_right), + 0.0, (CROP_SNAPSHOT_WIDTH - 32.0) * 0.5); + + gtk_spin_button_set_range (GTK_SPIN_BUTTON (jcd->priv->spin_left), + 0.0, (CROP_SNAPSHOT_WIDTH - 32.0) * 0.5); + + gtk_spin_button_set_range (GTK_SPIN_BUTTON (jcd->priv->spin_top), + 0.0, (CROP_SNAPSHOT_HEIGHT - 32.0) * 0.5); + + gtk_spin_button_set_range (GTK_SPIN_BUTTON (jcd->priv->spin_bottom), + 0.0, (CROP_SNAPSHOT_HEIGHT - 32.0) * 0.5); + gtk_widget_set_size_request (jcd->priv->image, CROP_SNAPSHOT_WIDTH, |