"[Bug 696]" <[EMAIL PROTECTED]> writes:

> PROCESS TO REPRODUCE:  
> =====================  
> *Under kde   
> *Enter:urpmi.update -a, urpmi --auto-select 
> *Reboot  
> *On the Task bar, click on Mandrake Control Center  
> *posting of a window of error on the desktop  
>   
> DESCRIPTION:  
> ============  
> After having entered these commands : urpmi.update -a, urpmi --auto-select and  
> rebooting, i click on the icon "Mandrake Control Center", then a window of  
> error appears with this message : "Embeding support is currently broken as of  
> GTK+-2.1.5". Mandrake Control Center frame does not launch out. (see the  
> enclosing file).

let fix it :
--- usr/sbin/drakconf.real	2002-12-20 10:55:22.000000000 -0500
+++ /usr/sbin/drakconf.real	2002-12-20 10:53:12.000000000 -0500
@@ -52,6 +52,7 @@
 $h{THEME} ||= 'default';
 $h{EMBEDDED} ||= bool2text(1);
 $h{LOGS} ||= bool2text($class{CLASS} eq 'expert' ? 1 : 0);
+$h{EXPERT_WIZARD} ||= 0;
 my ($embedded, $show_logs, $expert_wizard) = (text2bool($h{EMBEDDED}), text2bool($h{LOGS}), text2bool($h{EXPERT_WIZARD}));
 my $theme = $h{THEME};
 if ("@ARGV" =~ /--theme (\w+)/) { $theme = $1 }
@@ -285,6 +286,7 @@
                                                     $embedded = $embedded_check_box->active;
                                                     if ($embedded) {
                                                         $embedded = 0;
+							return if $window_splash;
                                                         splash_warning(N("Embedding support is currently broken as of Gtk+-2.1.5."));
                                                     }
                                                 }
@@ -538,11 +540,14 @@
 
 $emb_box->set_size_request(-1, $index * 50);
 
-if (defined $show_log_check_box) {
-    $show_log_check_box->set_active($show_logs);
-    $embedded_check_box->set_active($embedded);
-    $expert_wizard_check_box->set_active($expert_wizard);
-} else { print STDERR "BUG with LANGUAGE $ENV{LANGUAGE}\n" }
+eval {
+    if (defined $show_log_check_box) {
+	$show_log_check_box->set_active($show_logs);
+	$embedded_check_box->set_active($embedded);
+	$expert_wizard_check_box->set_active($expert_wizard);
+    };
+};
+print STDERR "BUG with LANGUAGE $ENV{LANGUAGE}\n" if $@;
 
 create_hidden_socket_if_needed();
 
- add a default value for old users that did not have that option
  saved
- don't print warnings while the main window is not yet up
- just catch exceptions when broken translation or missing option

Reply via email to