diff --git a/src/preview.c b/src/preview.c index 493fe7a..162aa5d 100644 --- a/src/preview.c +++ b/src/preview.c @@ -907,7 +907,6 @@ scan_start (Preview * p) SANE_Status status; char buf[256]; int fd; - Progress_t *progress; #ifdef HAVE_SYS_TIME_H struct timeval start, current; #endif diff --git a/src/progress.c b/src/progress.c index 71a0c32..a53a150 100644 --- a/src/progress.c +++ b/src/progress.c @@ -51,12 +51,7 @@ progress_new (char *title, char *text, GtkWindow * parent, p->firstTime = 0; p->shell = gtk_dialog_new (); -#if GTK_MAJOR_VERSION < 2 - gtk_window_get_position (GTK_WINDOW (parent), &x, &y); - gtk_widget_set_uposition (p->shell, x, y); -#else gtk_window_set_transient_for (GTK_WINDOW (p->shell), parent); -#endif gtk_window_set_title (GTK_WINDOW (p->shell), title); vbox = GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG (p->shell)));