aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view/subscription_notification.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-02-14 14:55:59 +0100
committerfiaxh <git@lightrise.org>2022-07-27 20:34:20 +0200
commit7e7dcedaf31ee35499875491c9f569c575d28435 (patch)
tree0c5fee2b28baf320775fbc92b3c252e97d9d054f /main/src/ui/conversation_content_view/subscription_notification.vala
parentf25bfb00969a7e09996da2d5500e6718f4cc0148 (diff)
downloaddino-7e7dcedaf31ee35499875491c9f569c575d28435.tar.gz
dino-7e7dcedaf31ee35499875491c9f569c575d28435.zip
Port from GTK3 to GTK4
Diffstat (limited to 'main/src/ui/conversation_content_view/subscription_notification.vala')
-rw-r--r--main/src/ui/conversation_content_view/subscription_notification.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/ui/conversation_content_view/subscription_notification.vala b/main/src/ui/conversation_content_view/subscription_notification.vala
index d493ff78..1f0f39d8 100644
--- a/main/src/ui/conversation_content_view/subscription_notification.vala
+++ b/main/src/ui/conversation_content_view/subscription_notification.vala
@@ -34,8 +34,8 @@ public class SubscriptionNotitication : Object {
private void show_notification() {
Box box = new Box(Orientation.HORIZONTAL, 5) { visible=true };
- Button accept_button = new Button() { label=_("Accept"), visible=true };
- Button deny_button = new Button() { label=_("Deny"), visible=true };
+ Button accept_button = new Button.with_label(_("Accept")) { visible=true };
+ Button deny_button = new Button.with_label(_("Deny")) { visible=true };
GLib.Application app = GLib.Application.get_default();
accept_button.clicked.connect(() => {
app.activate_action("accept-subscription", conversation.id);
@@ -45,9 +45,9 @@ public class SubscriptionNotitication : Object {
app.activate_action("deny-subscription", conversation.id);
conversation_view.remove_notification(box);
});
- box.add(new Label(_("This contact would like to add you to their contact list")) { margin_end=10, visible=true });
- box.add(accept_button);
- box.add(deny_button);
+ box.append(new Label(_("This contact would like to add you to their contact list")) { margin_end=10, visible=true });
+ box.append(accept_button);
+ box.append(deny_button);
conversation_view.add_notification(box);
}
}