Skip to content

Commit

Permalink
feat(compose): use mnemonics
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Nov 29, 2022
1 parent a178f4b commit 649362d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions data/ui/dialogs/compose.ui
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<requires lib="libhandy" version="1.0"/>
<requires lib="libadwaita" version="1.0"/>
<template class="ToothDialogsCompose" parent="AdwWindow">
<property name="modal">1</property>
<property name="default_width">500</property>
Expand Down Expand Up @@ -32,7 +32,8 @@
</child>
<child type="end">
<object class="GtkButton" id="commit_button">
<property name="label" translatable="yes">Publish</property>
<property name="label" translatable="yes">_Publish</property>
<property name="use-underline">1</property>
<signal name="clicked" handler="on_commit" swapped="no"/>
</object>
</child>
Expand Down
6 changes: 3 additions & 3 deletions src/Dialogs/Composer/Dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ public class Tooth.Dialogs.Compose : Adw.Window {
public Compose (API.Status template = new API.Status.empty ()) {
Object (
status: template,
button_label: _("Publish"),
button_label: _("_Publish"),
button_class: "suggested-action"
);
}

public Compose.redraft (API.Status status) {
Object (
status: status,
button_label: _("Redraft"),
button_label: _("_Redraft"),
button_class: "destructive-action"
);
}
Expand All @@ -67,7 +67,7 @@ public class Tooth.Dialogs.Compose : Adw.Window {

Object (
status: template,
button_label: _("Reply"),
button_label: _("_Reply"),
button_class: "suggested-action"
);
}
Expand Down

0 comments on commit 649362d

Please sign in to comment.