summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hig.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hig.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index 4baf960a48..b6c970b15c 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -309,7 +309,7 @@ class AdvancedSettingDialog (CrumbsDialog):
309 309
310 def __init__(self, title, configuration, all_image_types, 310 def __init__(self, title, configuration, all_image_types,
311 all_package_formats, all_distros, all_sdk_machines, 311 all_package_formats, all_distros, all_sdk_machines,
312 max_threads, enable_proxy, parent, flags, buttons=None): 312 max_threads, parent, flags, buttons=None):
313 super(AdvancedSettingDialog, self).__init__(title, parent, flags, buttons) 313 super(AdvancedSettingDialog, self).__init__(title, parent, flags, buttons)
314 314
315 # class members from other objects 315 # class members from other objects
@@ -320,7 +320,6 @@ class AdvancedSettingDialog (CrumbsDialog):
320 self.all_distros = all_distros 320 self.all_distros = all_distros
321 self.all_sdk_machines = all_sdk_machines 321 self.all_sdk_machines = all_sdk_machines
322 self.max_threads = max_threads 322 self.max_threads = max_threads
323 self.enable_proxy = enable_proxy
324 323
325 # class members for internal use 324 # class members for internal use
326 self.distro_combo = None 325 self.distro_combo = None
@@ -356,7 +355,8 @@ class AdvancedSettingDialog (CrumbsDialog):
356 data += ("SDK_MACHINE: " + self._get_sorted_value(self.configuration.curr_sdk_machine)) 355 data += ("SDK_MACHINE: " + self._get_sorted_value(self.configuration.curr_sdk_machine))
357 data += ("TOOLCHAIN_BUILD: " + self._get_sorted_value(self.configuration.toolchain_build)) 356 data += ("TOOLCHAIN_BUILD: " + self._get_sorted_value(self.configuration.toolchain_build))
358 data += ("IMAGE_FSTYPES: " + self._get_sorted_value(self.configuration.image_fstypes)) 357 data += ("IMAGE_FSTYPES: " + self._get_sorted_value(self.configuration.image_fstypes))
359 if self.enable_proxy: 358 data += ("ENABLE_PROXY: " + self._get_sorted_value(self.configuration.enable_proxy))
359 if self.configuration.enable_proxy:
360 data += ("ALL_PROXY: " + self._get_sorted_value(self.configuration.all_proxy)) 360 data += ("ALL_PROXY: " + self._get_sorted_value(self.configuration.all_proxy))
361 data += ("HTTP_PROXY: " + self._get_sorted_value(self.configuration.http_proxy)) 361 data += ("HTTP_PROXY: " + self._get_sorted_value(self.configuration.http_proxy))
362 data += ("HTTPS_PROXY: " + self._get_sorted_value(self.configuration.https_proxy)) 362 data += ("HTTPS_PROXY: " + self._get_sorted_value(self.configuration.https_proxy))
@@ -531,55 +531,55 @@ class AdvancedSettingDialog (CrumbsDialog):
531 advanced_vbox.pack_start(sub_vbox, expand=False, fill=False) 531 advanced_vbox.pack_start(sub_vbox, expand=False, fill=False)
532 self.proxy_checkbox = gtk.CheckButton("Enable proxy") 532 self.proxy_checkbox = gtk.CheckButton("Enable proxy")
533 self.proxy_checkbox.set_tooltip_text("Check this box to setup the proxy you specified") 533 self.proxy_checkbox.set_tooltip_text("Check this box to setup the proxy you specified")
534 self.proxy_checkbox.set_active(self.enable_proxy) 534 self.proxy_checkbox.set_active(self.configuration.enable_proxy)
535 self.proxy_checkbox.connect("toggled", self.proxy_checkbox_toggled_cb) 535 self.proxy_checkbox.connect("toggled", self.proxy_checkbox_toggled_cb)
536 sub_vbox.pack_start(self.proxy_checkbox, expand=False, fill=False) 536 sub_vbox.pack_start(self.proxy_checkbox, expand=False, fill=False)
537 537
538 label = self.gen_label_widget("<span weight=\"bold\">Set all proxy:</span>") 538 label = self.gen_label_widget("<span weight=\"bold\">Set all proxy:</span>")
539 tooltip = "Set the all proxy that will be used if the proxy for a URL isn't specified." 539 tooltip = "Set the all proxy that will be used if the proxy for a URL isn't specified."
540 proxy_widget, self.all_proxy_text = self.gen_entry_widget(self.configuration.all_proxy, self, tooltip, False) 540 proxy_widget, self.all_proxy_text = self.gen_entry_widget(self.configuration.all_proxy, self, tooltip, False)
541 self.all_proxy_text.set_editable(self.enable_proxy) 541 self.all_proxy_text.set_editable(self.configuration.enable_proxy)
542 self.all_proxy_text.set_sensitive(self.enable_proxy) 542 self.all_proxy_text.set_sensitive(self.configuration.enable_proxy)
543 sub_vbox.pack_start(label, expand=False, fill=False) 543 sub_vbox.pack_start(label, expand=False, fill=False)
544 sub_vbox.pack_start(proxy_widget, expand=False, fill=False) 544 sub_vbox.pack_start(proxy_widget, expand=False, fill=False)
545 545
546 label = self.gen_label_widget("<span weight=\"bold\">Set http proxy:</span>") 546 label = self.gen_label_widget("<span weight=\"bold\">Set http proxy:</span>")
547 tooltip = "Set the http proxy that will be used in do_fetch() source code" 547 tooltip = "Set the http proxy that will be used in do_fetch() source code"
548 proxy_widget, self.http_proxy_text = self.gen_entry_widget(self.configuration.http_proxy, self, tooltip, False) 548 proxy_widget, self.http_proxy_text = self.gen_entry_widget(self.configuration.http_proxy, self, tooltip, False)
549 self.http_proxy_text.set_editable(self.enable_proxy) 549 self.http_proxy_text.set_editable(self.configuration.enable_proxy)
550 self.http_proxy_text.set_sensitive(self.enable_proxy) 550 self.http_proxy_text.set_sensitive(self.configuration.enable_proxy)
551 sub_vbox.pack_start(label, expand=False, fill=False) 551 sub_vbox.pack_start(label, expand=False, fill=False)
552 sub_vbox.pack_start(proxy_widget, expand=False, fill=False) 552 sub_vbox.pack_start(proxy_widget, expand=False, fill=False)
553 553
554 label = self.gen_label_widget("<span weight=\"bold\">Set https proxy:</span>") 554 label = self.gen_label_widget("<span weight=\"bold\">Set https proxy:</span>")
555 tooltip = "Set the https proxy that will be used in do_fetch() source code" 555 tooltip = "Set the https proxy that will be used in do_fetch() source code"
556 proxy_widget, self.https_proxy_text = self.gen_entry_widget(self.configuration.https_proxy, self, tooltip, False) 556 proxy_widget, self.https_proxy_text = self.gen_entry_widget(self.configuration.https_proxy, self, tooltip, False)
557 self.https_proxy_text.set_editable(self.enable_proxy) 557 self.https_proxy_text.set_editable(self.configuration.enable_proxy)
558 self.https_proxy_text.set_sensitive(self.enable_proxy) 558 self.https_proxy_text.set_sensitive(self.configuration.enable_proxy)
559 sub_vbox.pack_start(label, expand=False, fill=False) 559 sub_vbox.pack_start(label, expand=False, fill=False)
560 sub_vbox.pack_start(proxy_widget, expand=False, fill=False) 560 sub_vbox.pack_start(proxy_widget, expand=False, fill=False)
561 561
562 label = self.gen_label_widget("<span weight=\"bold\">Set ftp proxy:</span>") 562 label = self.gen_label_widget("<span weight=\"bold\">Set ftp proxy:</span>")
563 tooltip = "Set the ftp proxy that will be used in do_fetch() source code" 563 tooltip = "Set the ftp proxy that will be used in do_fetch() source code"
564 proxy_widget, self.ftp_proxy_text = self.gen_entry_widget(self.configuration.ftp_proxy, self, tooltip, False) 564 proxy_widget, self.ftp_proxy_text = self.gen_entry_widget(self.configuration.ftp_proxy, self, tooltip, False)
565 self.ftp_proxy_text.set_editable(self.enable_proxy) 565 self.ftp_proxy_text.set_editable(self.configuration.enable_proxy)
566 self.ftp_proxy_text.set_sensitive(self.enable_proxy) 566 self.ftp_proxy_text.set_sensitive(self.configuration.enable_proxy)
567 sub_vbox.pack_start(label, expand=False, fill=False) 567 sub_vbox.pack_start(label, expand=False, fill=False)
568 sub_vbox.pack_start(proxy_widget, expand=False, fill=False) 568 sub_vbox.pack_start(proxy_widget, expand=False, fill=False)
569 569
570 label = self.gen_label_widget("<span weight=\"bold\">Set git proxy:</span>") 570 label = self.gen_label_widget("<span weight=\"bold\">Set git proxy:</span>")
571 tooltip = "Set the git proxy that will be used in do_fetch() source code" 571 tooltip = "Set the git proxy that will be used in do_fetch() source code"
572 proxy_widget, self.git_proxy_text = self.gen_entry_widget(self.configuration.git_proxy_host + ':' + self.configuration.git_proxy_port, self, tooltip, False) 572 proxy_widget, self.git_proxy_text = self.gen_entry_widget(self.configuration.git_proxy_host + ':' + self.configuration.git_proxy_port, self, tooltip, False)
573 self.git_proxy_text.set_editable(self.enable_proxy) 573 self.git_proxy_text.set_editable(self.configuration.enable_proxy)
574 self.git_proxy_text.set_sensitive(self.enable_proxy) 574 self.git_proxy_text.set_sensitive(self.configuration.enable_proxy)
575 sub_vbox.pack_start(label, expand=False, fill=False) 575 sub_vbox.pack_start(label, expand=False, fill=False)
576 sub_vbox.pack_start(proxy_widget, expand=False, fill=False) 576 sub_vbox.pack_start(proxy_widget, expand=False, fill=False)
577 577
578 label = self.gen_label_widget("<span weight=\"bold\">Set cvs proxy:</span>") 578 label = self.gen_label_widget("<span weight=\"bold\">Set cvs proxy:</span>")
579 tooltip = "Set the cvs proxy that will be used in do_fetch() source code" 579 tooltip = "Set the cvs proxy that will be used in do_fetch() source code"
580 proxy_widget, self.cvs_proxy_text = self.gen_entry_widget(self.configuration.cvs_proxy_host + ':' + self.configuration.cvs_proxy_port, self, tooltip, False) 580 proxy_widget, self.cvs_proxy_text = self.gen_entry_widget(self.configuration.cvs_proxy_host + ':' + self.configuration.cvs_proxy_port, self, tooltip, False)
581 self.cvs_proxy_text.set_editable(self.enable_proxy) 581 self.cvs_proxy_text.set_editable(self.configuration.enable_proxy)
582 self.cvs_proxy_text.set_sensitive(self.enable_proxy) 582 self.cvs_proxy_text.set_sensitive(self.configuration.enable_proxy)
583 sub_vbox.pack_start(label, expand=False, fill=False) 583 sub_vbox.pack_start(label, expand=False, fill=False)
584 sub_vbox.pack_start(proxy_widget, expand=False, fill=False) 584 sub_vbox.pack_start(proxy_widget, expand=False, fill=False)
585 585
@@ -600,19 +600,19 @@ class AdvancedSettingDialog (CrumbsDialog):
600 return advanced_vbox 600 return advanced_vbox
601 601
602 def proxy_checkbox_toggled_cb(self, button): 602 def proxy_checkbox_toggled_cb(self, button):
603 self.enable_proxy = self.proxy_checkbox.get_active() 603 self.configuration.enable_proxy = self.proxy_checkbox.get_active()
604 self.all_proxy_text.set_editable(self.enable_proxy) 604 self.all_proxy_text.set_editable(self.configuration.enable_proxy)
605 self.all_proxy_text.set_sensitive(self.enable_proxy) 605 self.all_proxy_text.set_sensitive(self.configuration.enable_proxy)
606 self.http_proxy_text.set_editable(self.enable_proxy) 606 self.http_proxy_text.set_editable(self.configuration.enable_proxy)
607 self.http_proxy_text.set_sensitive(self.enable_proxy) 607 self.http_proxy_text.set_sensitive(self.configuration.enable_proxy)
608 self.https_proxy_text.set_editable(self.enable_proxy) 608 self.https_proxy_text.set_editable(self.configuration.enable_proxy)
609 self.https_proxy_text.set_sensitive(self.enable_proxy) 609 self.https_proxy_text.set_sensitive(self.configuration.enable_proxy)
610 self.ftp_proxy_text.set_editable(self.enable_proxy) 610 self.ftp_proxy_text.set_editable(self.configuration.enable_proxy)
611 self.ftp_proxy_text.set_sensitive(self.enable_proxy) 611 self.ftp_proxy_text.set_sensitive(self.configuration.enable_proxy)
612 self.git_proxy_text.set_editable(self.enable_proxy) 612 self.git_proxy_text.set_editable(self.configuration.enable_proxy)
613 self.git_proxy_text.set_sensitive(self.enable_proxy) 613 self.git_proxy_text.set_sensitive(self.configuration.enable_proxy)
614 self.cvs_proxy_text.set_editable(self.enable_proxy) 614 self.cvs_proxy_text.set_editable(self.configuration.enable_proxy)
615 self.cvs_proxy_text.set_sensitive(self.enable_proxy) 615 self.cvs_proxy_text.set_sensitive(self.configuration.enable_proxy)
616 616
617 def response_cb(self, dialog, response_id): 617 def response_cb(self, dialog, response_id):
618 package_format = [] 618 package_format = []