diff --git a/src/client/components/components-conversation-actions.vala b/src/client/components/components-conversation-actions.vala index 51e6a145..8c2fa32a 100644 --- a/src/client/components/components-conversation-actions.vala +++ b/src/client/components/components-conversation-actions.vala @@ -16,6 +16,8 @@ public class Components.ConversationActions : Gtk.Box { public bool show_response_actions { get; construct; } + public bool pack_justified { get; construct; } + public FolderPopover copy_folder_menu { get; private set; default = new FolderPopover(); } public FolderPopover move_folder_menu { get; private set; default = new FolderPopover(); } @@ -45,7 +47,6 @@ public class Components.ConversationActions : Gtk.Box { // GObject style constuction to support loading via GTK Builder files construct { - // Assemble the mark menus Gtk.Builder menu_builder = new Gtk.Builder.from_resource( "/org/gnome/Geary/components-main-toolbar-menus.ui" @@ -62,6 +63,11 @@ public class Components.ConversationActions : Gtk.Box { this.response_buttons.set_visible(this.show_response_actions); this.mark_copy_move_buttons.set_visible(this.show_conversation_actions); this.archive_trash_delete_buttons.set_visible(this.show_conversation_actions); + + if (this.pack_justified) { + this.archive_trash_delete_buttons.hexpand = true; + this.archive_trash_delete_buttons.halign = END; + } } public void update_trash_button(bool show_trash) { diff --git a/ui/application-main-window.ui b/ui/application-main-window.ui index 371accea..f9c35b65 100644 --- a/ui/application-main-window.ui +++ b/ui/application-main-window.ui @@ -108,6 +108,7 @@ True True False + True True @@ -155,7 +156,6 @@ True False True - True diff --git a/ui/components-conversation-actions.ui b/ui/components-conversation-actions.ui index a64dfbd8..5471d284 100644 --- a/ui/components-conversation-actions.ui +++ b/ui/components-conversation-actions.ui @@ -3,6 +3,7 @@ diff --git a/ui/components-main-toolbar.ui b/ui/components-main-toolbar.ui index f593803b..0b2dfb10 100644 --- a/ui/components-main-toolbar.ui +++ b/ui/components-main-toolbar.ui @@ -167,9 +167,10 @@ - - + + True + True True