From 8bf68bd34555a778e87235431e73daa2bc093f41 Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Mon, 30 Jan 2017 00:33:50 +1100 Subject: [PATCH] ComposerLinkPopover UI polish. * src/client/composer/composer-link-popover.vala (ComposerLinkPopover::show): Focus URL entry on being shown. * ui/composer-link-popover.ui: Replace URL entry text label with an accessibility name. Refine the tooltip for the insert button, add notes to translators about it. --- .../composer/composer-link-popover.vala | 5 +- ui/composer-link-popover.ui | 64 +++++++++---------- 2 files changed, 32 insertions(+), 37 deletions(-) diff --git a/src/client/composer/composer-link-popover.vala b/src/client/composer/composer-link-popover.vala index d51d312d..3a763df5 100644 --- a/src/client/composer/composer-link-popover.vala +++ b/src/client/composer/composer-link-popover.vala @@ -88,8 +88,9 @@ public class ComposerLinkPopover : Gtk.Popover { ); } - ~ComposerLinkPopover() { - debug("Destructing..."); + public override void show() { + base.show(); + this.url.grab_focus(); } public override void destroy() { diff --git a/ui/composer-link-popover.ui b/ui/composer-link-popover.ui index 6ed29c72..24d71d26 100644 --- a/ui/composer-link-popover.ui +++ b/ui/composer-link-popover.ui @@ -15,17 +15,6 @@ 6 6 6 - - - True - False - Link URL: - - - 0 - 0 - - True @@ -40,7 +29,7 @@ - 1 + 0 0 @@ -49,7 +38,32 @@ True True True - Insert a new link with this URL + Insert the new link with this URL + + + + True + False + emblem-ok-symbolic + + + + + Link URL + + + + + 1 + 0 + + + + + True + True + True + Update this link’s URL @@ -64,26 +78,6 @@ 0 - - - True - True - True - Update the link URL - - - - True - False - emblem-ok-symbolic - - - - - 3 - 0 - - True @@ -100,7 +94,7 @@ - 4 + 3 0 @@ -120,7 +114,7 @@ - 5 + 4 0