Revision 280,
1.3 KB
checked in by yasumichi, 15 years ago
(diff) |
first import
|
Line | |
---|
1 | /* rgdummyinstallprogress.cc |
---|
2 | * |
---|
3 | * Copyright (c) 2000, 2001 Conectiva S/A |
---|
4 | * |
---|
5 | * Author: Alfredo K. Kojima <kojima@conectiva.com.br> |
---|
6 | * |
---|
7 | * This program is free software; you can redistribute it and/or |
---|
8 | * modify it under the terms of the GNU General Public License as |
---|
9 | * published by the Free Software Foundation; either version 2 of the |
---|
10 | * License, or (at your option) any later version. |
---|
11 | * |
---|
12 | * This program is distributed in the hope that it will be useful, |
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | * GNU General Public License for more details. |
---|
16 | * |
---|
17 | * You should have received a copy of the GNU General Public License |
---|
18 | * along with this program; if not, write to the Free Software |
---|
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
20 | * USA |
---|
21 | */ |
---|
22 | |
---|
23 | #include "config.h" |
---|
24 | |
---|
25 | #include "rgdummyinstallprogress.h" |
---|
26 | #include "rgmisc.h" |
---|
27 | |
---|
28 | #include <unistd.h> |
---|
29 | #include <stdio.h> |
---|
30 | |
---|
31 | #include "i18n.h" |
---|
32 | |
---|
33 | void RGDummyInstallProgress::startUpdate() |
---|
34 | { |
---|
35 | RGFlushInterface(); |
---|
36 | } |
---|
37 | |
---|
38 | |
---|
39 | void RGDummyInstallProgress::finishUpdate() |
---|
40 | { |
---|
41 | RGFlushInterface(); |
---|
42 | } |
---|
43 | |
---|
44 | void RGDummyInstallProgress::updateInterface() |
---|
45 | { |
---|
46 | if (gtk_events_pending()) { |
---|
47 | while (gtk_events_pending()) |
---|
48 | gtk_main_iteration(); |
---|
49 | } else { |
---|
50 | usleep(1000000); |
---|
51 | } |
---|
52 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.