aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-07-04 12:09:11 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-07-04 12:09:11 +0000
commit9c88bb7ae3c1a947fb6f0efb038fed5085de0c2a (patch)
tree4bc5bb0a08065a52407e87dffe08b143894a697f
parentd8b0bada1d8938a45eb1b0b1955607669cf1a1c2 (diff)
downloadrpmdrake-9c88bb7ae3c1a947fb6f0efb038fed5085de0c2a.tar
rpmdrake-9c88bb7ae3c1a947fb6f0efb038fed5085de0c2a.tar.gz
rpmdrake-9c88bb7ae3c1a947fb6f0efb038fed5085de0c2a.tar.bz2
rpmdrake-9c88bb7ae3c1a947fb6f0efb038fed5085de0c2a.tar.xz
rpmdrake-9c88bb7ae3c1a947fb6f0efb038fed5085de0c2a.zip
import mygtk2->gtknew
-rwxr-xr-xrpmdrake9
1 files changed, 8 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index 524e7383..7ed9f2b0 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -94,7 +94,14 @@ unless ($MODE) {
$0 =~ m|update$|i and $MODE = 'update';
}
-eval { require ugtk2; ugtk2->import(qw(:all)); require Gtk2::Pango; require Gtk2::Gdk::Keysyms };
+eval {
+ require mygtk2;
+ require ugtk2;
+ ugtk2->import(qw(:all));
+ mygtk2->import(qw(gtknew)); #- do not import anything else, especially gtkadd() which conflicts with ugtk2 one
+ require Gtk2::Pango;
+ require Gtk2::Gdk::Keysyms;
+};
if ($@) {
print "This program cannot be run in console mode.\n";
_exit(0); #- skip ugtk2::END