Connect header bar button signals.
(self)
| 409 | pass |
| 410 | |
| 411 | def _connect_header_buttons(self): |
| 412 | """Connect header bar button signals.""" |
| 413 | try: |
| 414 | if hasattr(self, "add_button") and self.add_button: |
| 415 | self.add_button.connect("clicked", self._on_add_clicked) |
| 416 | except Exception: |
| 417 | pass |
| 418 | try: |
| 419 | if hasattr(self, "duplicate_button") and self.duplicate_button: |
| 420 | self.duplicate_button.connect("clicked", self._on_duplicate_clicked) |
| 421 | except Exception: |
| 422 | pass |
| 423 | try: |
| 424 | if hasattr(self, "delete_button") and self.delete_button: |
| 425 | self.delete_button.connect("clicked", self._on_delete_clicked) |
| 426 | except Exception: |
| 427 | pass |
| 428 | |
| 429 | def _on_add_clicked(self, button): |
| 430 | """Handle add host button click.""" |