From cd5ca6375c0e1a8d6d4caa548fe93b23a25c70bf Mon Sep 17 00:00:00 2001 From: Evangelos Paterakis Date: Wed, 15 Feb 2023 21:31:25 +0200 Subject: [PATCH] feat: more tooltips --- src/Dialogs/Composer/AttachmentsPage.vala | 4 ++-- src/Dialogs/Composer/AttachmentsPageAttachment.vala | 4 +++- src/Widgets/Attachment/Item.vala | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Dialogs/Composer/AttachmentsPage.vala b/src/Dialogs/Composer/AttachmentsPage.vala index 49b2963..1d5e306 100644 --- a/src/Dialogs/Composer/AttachmentsPage.vala +++ b/src/Dialogs/Composer/AttachmentsPage.vala @@ -61,7 +61,6 @@ public class Tooth.AttachmentsPage : ComposerPage { empty_state = new Adw.StatusPage () { title = _("No Media"), - description = _("Drag files here or click the button below"), vexpand = true, icon_name = icon_name, child = attach_button @@ -75,7 +74,8 @@ public class Tooth.AttachmentsPage : ComposerPage { add_media_action_button = new Gtk.Button() { icon_name = "tooth-plus-large-symbolic", valign = Gtk.Align.CENTER, - halign = Gtk.Align.CENTER + halign = Gtk.Align.CENTER, + tooltip_text = _("Add Media") }; add_media_action_button.add_css_class ("flat"); add_media_action_button.clicked.connect(show_file_selector); diff --git a/src/Dialogs/Composer/AttachmentsPageAttachment.vala b/src/Dialogs/Composer/AttachmentsPageAttachment.vala index 971e4ac..c2805ee 100644 --- a/src/Dialogs/Composer/AttachmentsPageAttachment.vala +++ b/src/Dialogs/Composer/AttachmentsPageAttachment.vala @@ -19,6 +19,7 @@ public class Tooth.AttachmentsPageAttachment : Widgets.Attachment.Item { }; button.child = pic; badge.visible = false; + alt_btn.tooltip_text = _("Edit Alt Text"); alt_btn.disconnect(alt_btn_clicked_id); alt_btn.clicked.connect(() => { create_alt_text_input_window().show(); @@ -29,7 +30,8 @@ public class Tooth.AttachmentsPageAttachment : Widgets.Attachment.Item { var delete_button = new Gtk.Button() { icon_name = "tooth-trash-symbolic", valign = Gtk.Align.CENTER, - halign = Gtk.Align.CENTER + halign = Gtk.Align.CENTER, + tooltip_text = _("Remove Attachment") }; badge_box.append(delete_button); delete_button.add_css_class("error"); diff --git a/src/Widgets/Attachment/Item.vala b/src/Widgets/Attachment/Item.vala index d564881..93d3ea1 100644 --- a/src/Widgets/Attachment/Item.vala +++ b/src/Widgets/Attachment/Item.vala @@ -96,7 +96,9 @@ public class Tooth.Widgets.Attachment.Item : Adw.Bin { badge = new Label (""); badge.add_css_class ("heading"); - alt_btn = new Button.with_label("ALT"); + alt_btn = new Button.with_label("ALT") { + tooltip_text = _("View Alt Text") + }; alt_btn.add_css_class ("heading"); alt_btn.add_css_class ("flat");