kopia lustrzana https://gitlab.com/sane-project/frontends
Fix progress
rodzic
d4e596049c
commit
c3cc0cb55b
|
@ -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
|
||||
|
|
|
@ -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)));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue