diff options
author | Julien BLACHE <jblache@debian.org> | 2007-11-22 11:42:18 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:42 +0000 |
commit | 95475333e13157b2a9b62c57be7c82d99e0c4460 (patch) | |
tree | 3726327549b591aba1510ff4e56317c12b276243 /src/xsane-viewer.c | |
parent | 0db1f3318701235603f80455d7d1e5c1709e5eb1 (diff) | |
parent | 41b1173190f702693b0b4fd2654cf2dc28a447f4 (diff) |
Imported Debian patch 0.995-1debian/0.995-1
Diffstat (limited to 'src/xsane-viewer.c')
-rw-r--r-- | src/xsane-viewer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xsane-viewer.c b/src/xsane-viewer.c index ef47529..57abd98 100644 --- a/src/xsane-viewer.c +++ b/src/xsane-viewer.c @@ -1095,7 +1095,7 @@ static void xsane_viewer_scale_image(GtkWidget *window, gpointer data) gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), PROGRESS_SCALING_DATA); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); if (v->bind_scale) { @@ -1108,7 +1108,7 @@ static void xsane_viewer_scale_image(GtkWidget *window, gpointer data) fclose(outfile); gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), ""); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); if (v->undo_filename) { @@ -1177,7 +1177,7 @@ static void xsane_viewer_despeckle_image(GtkWidget *window, gpointer data) gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), PROGRESS_DESPECKLING_DATA); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); xsane_save_despeckle_image(outfile, infile, &image_info, v->despeckle_radius, v->progress_bar, &v->cancel_save); @@ -1185,7 +1185,7 @@ static void xsane_viewer_despeckle_image(GtkWidget *window, gpointer data) fclose(outfile); gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), ""); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); if (v->undo_filename) { @@ -1254,7 +1254,7 @@ static void xsane_viewer_blur_image(GtkWidget *window, gpointer data) gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), PROGRESS_BLURING_DATA); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); xsane_save_blur_image(outfile, infile, &image_info, v->blur_radius, v->progress_bar, &v->cancel_save); @@ -1262,7 +1262,7 @@ static void xsane_viewer_blur_image(GtkWidget *window, gpointer data) fclose(outfile); gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), ""); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); if (v->undo_filename) { @@ -1344,7 +1344,7 @@ static void xsane_viewer_rotate(Viewer *v, int rotation) gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), PROGRESS_MIRRORING_DATA); } - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); xsane_save_rotate_image(outfile, infile, &image_info, rotation, v->progress_bar, &v->cancel_save); @@ -1352,7 +1352,7 @@ static void xsane_viewer_rotate(Viewer *v, int rotation) fclose(outfile); gtk_progress_set_format_string(GTK_PROGRESS(v->progress_bar), ""); - gtk_progress_bar_update(GTK_PROGRESS_BAR(v->progress_bar), 0.0); + xsane_progress_bar_set_fraction(GTK_PROGRESS_BAR(v->progress_bar), 0.0); if (v->undo_filename) { @@ -2864,7 +2864,7 @@ Viewer *xsane_viewer_new(char *filename, char *selection_filetype, int allow_red snprintf(buf, sizeof(buf), "%s %s", WINDOW_VIEWER, xsane.device_text); } - xsane_viewer_read_image_header(v); // xxx oli + xsane_viewer_read_image_header(v); v->top = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(v->top), buf); |