diff options
author | Marvin W <git@larma.de> | 2022-02-12 19:15:35 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2022-02-12 19:16:16 +0100 |
commit | 602834bdf777cf1c3909392dc52e5a3543f0ad0c (patch) | |
tree | 516b5952513d6672f0a12ba76a8dd08b261d68fc | |
parent | 06f0bc00f14046dfb72794e0fcf516d240250e21 (diff) | |
download | dino-602834bdf777cf1c3909392dc52e5a3543f0ad0c.tar.gz dino-602834bdf777cf1c3909392dc52e5a3543f0ad0c.zip |
Fix build on Debian 10
-rw-r--r-- | main/src/ui/call_window/participant_widget.vala | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/main/src/ui/call_window/participant_widget.vala b/main/src/ui/call_window/participant_widget.vala index e21ab586..1f6be68d 100644 --- a/main/src/ui/call_window/participant_widget.vala +++ b/main/src/ui/call_window/participant_widget.vala @@ -33,13 +33,8 @@ namespace Dino.Ui { header_bar.pack_start(invite_button); header_bar.pack_start(encryption_button); header_bar.pack_end(menu_button); - PopoverMenu menu = new PopoverMenu(); - Box box = new Box(Orientation.VERTICAL, 0) { margin=10, visible=true }; - ModelButton debug_information_button = new ModelButton() { text=_("Debug information"), visible=true }; - debug_information_button.clicked.connect(() => debug_information_clicked()); - box.add(debug_information_button); - menu.add(box); - menu_button.popover = menu; + + menu_button.popover = create_menu(); invite_button.clicked.connect(() => invite_button_clicked()); this.add_overlay(header_bar); @@ -94,6 +89,16 @@ namespace Dino.Ui { this.add(main_widget); } + private PopoverMenu create_menu() { + PopoverMenu menu = new PopoverMenu(); + Box box = new Box(Orientation.VERTICAL, 0) { margin=10, visible=true }; + ModelButton debug_information_button = new ModelButton() { text=_("Debug information"), visible=true }; + debug_information_button.clicked.connect(() => debug_information_clicked()); + box.add(debug_information_button); + menu.add(box); + return menu; + } + public void set_status(string state) { if (state == "requested") { header_bar.subtitle = _("Calling…"); |