summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-15 10:54:55 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-15 10:54:55 +0000
commit995c5826067a9d2e4407f277dfd11e52176c92a3 (patch)
tree4321a4ed70f6823d8516a45d2550df356bcc01a3
parent04ecb744d0f1d032a74599b59652f2bdb3c68ca1 (diff)
downloadurpmi-995c5826067a9d2e4407f277dfd11e52176c92a3.tar
urpmi-995c5826067a9d2e4407f277dfd11e52176c92a3.tar.gz
urpmi-995c5826067a9d2e4407f277dfd11e52176c92a3.tar.bz2
urpmi-995c5826067a9d2e4407f277dfd11e52176c92a3.tar.xz
urpmi-995c5826067a9d2e4407f277dfd11e52176c92a3.zip
Remove gurpm.pm, now unused
-rw-r--r--gurpm.pm81
1 files changed, 0 insertions, 81 deletions
diff --git a/gurpm.pm b/gurpm.pm
deleted file mode 100644
index dd1431a6..00000000
--- a/gurpm.pm
+++ /dev/null
@@ -1,81 +0,0 @@
-#*****************************************************************************
-#
-# Copyright (c) 2003 Guillaume Cottenceau (gc at mandrakesoft dot com)
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2, as
-# published by the Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-#*****************************************************************************
-
-package gurpm;
-
-use strict;
-use lib qw(/usr/lib/libDrakX);
-use ugtk2 qw(:all);
-$::isStandalone = 1;
-
-our ($mainw, $label, $progressbar, $vbox, $cancel, $hbox_cancel);
-
-sub init {
- my ($title, $initializing, %options) = @_;
- $mainw = ugtk2->new($title, %options);
- $label = Gtk2::Label->new($initializing);
- $progressbar = gtkset_size_request(Gtk2::ProgressBar->new, 300, -1);
- gtkadd($mainw->{window}, gtkpack__($vbox = gtkset_border_width(Gtk2::VBox->new(0, 5),6), $label, $progressbar));
- $mainw->{rwindow}->set_position('center');
- $mainw->sync;
-}
-
-sub sync {
- $mainw->flush;
-}
-
-sub label {
- $label->set($_[0]);
- select(undef, undef, undef, 0.1); #- hackish :-(
- sync();
-}
-
-sub progress {
- $progressbar->set_fraction($_[0]);
- sync();
-}
-
-sub end {
- $mainw and $mainw->destroy;
- $mainw = undef;
- $cancel = undef; #- in case we'll do another one later
-}
-
-sub validate_cancel {
- my ($cancel_msg, $cancel_cb) = @_;
- if (!$cancel) {
- gtkpack__($vbox,
- $hbox_cancel = gtkpack__(create_hbox(),
- $cancel = gtksignal_connect(Gtk2::Button->new($cancel_msg), clicked => \&$cancel_cb)));
- }
- $cancel->set_sensitive(1);
- $cancel->show;
-}
-
-sub invalidate_cancel {
- $cancel and $cancel->set_sensitive(0);
-}
-
-sub invalidate_cancel_forever {
- $hbox_cancel or return;
- $hbox_cancel->destroy;
- $mainw->shrink_topwindow;
-}
-
-1;