From c4bba072f5a8f0dc3f223cbe4c2630925d32fe14 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 16 Mar 2013 09:02:58 +0000 Subject: support other distros which do not have exception support in gtk+ callbacks --- gurpmi2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gurpmi2') diff --git a/gurpmi2 b/gurpmi2 index de7a7bfe..d1d3be26 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -30,7 +30,12 @@ our $test = 0; our $use_provides = 1; my $progressbar_size = 450; -Glib->enable_exceptions2; + +# For other distros w/o exception support: +eval { Glib->enable_exceptions2 }; +if (my $err = $@) { + warn "Error: $err\n"; +} #- GUI globals my ($mainw, $mainbox); -- cgit v1.2.1