1. 19 Feb, 2019 1 commit
  2. 13 Feb, 2019 2 commits
  3. 29 Jan, 2019 1 commit
  4. 16 Apr, 2018 1 commit
  5. 15 Apr, 2018 1 commit
  6. 14 Apr, 2018 2 commits
    • Michael Gratton's avatar
      Work around composer info label being too long. Fixes Bug 790435. · 7fa755f0
      Michael Gratton authored
      * ui/composer-widget.ui: Make the info label esliipsisable, but give it a
        reasonable minimum size.
      
      * src/client/composer/composer-widget.vala (ComposerWidget): Set the info
        label's tooltip with the text so it can still be read when ellipsed.
      7fa755f0
    • Michael Gratton's avatar
      Fix TRUE/FALSE listed as composer drafts status. · 5a9075b3
      Michael Gratton authored
      * src/client/composer/composer-widget.vala (Composer): Replace use of
        inappropriate public properties and obtuse property bindings with a
        subject_changed signal and private properties that update the info
        label in their setter, so it's obvious how the whole thing works. Move
        code for managing a detached compoer's window title to the
        ComposerWindow class.
      5a9075b3
  7. 12 Dec, 2017 2 commits
  8. 04 Mar, 2017 1 commit
    • Michael Gratton's avatar
      Fix composer UI brokenness when compiled under vala 0.36. · 57ca408c
      Michael Gratton authored
      Don't rely ComposerState::state notify and property bindings firing when
      the value hasn't actually changed to update the composer's UI. This is
      works around Vala Bug 631267 landing.
      
      * src/client/composer/composer-headerbar.vala (ComposerHeaderbar): Add
        signal and methods to be called explicity on state changes, rather than
        relying on being notified of ComposerWidget::state changing.
      
      * src/client/composer/composer-widget.vala (ComposerWidget): Hook up new
        ComposerHeaderbar signal and method. Remove notify and property
        bindings on ::state property, move related code to new
        ::update_composer_view method and call that as needed. Remove
        overridden ::show_all, because the UI state should now always be
        consistent with ::state. Clean up various methods.
      
      * src/client/composer/email-entry.vala (EmailEntry::EmailEntry): Make
        widget visible by default, since we are no longer calling
        ComposerWidget::show_all().
      
      * src/client/application/geary-controller.vala: Don't call show all on
        new composers, they now manage their visibility properly.
      
      * ui/composer-headerbar.ui: Make toolbar icons visible by default.
      
      * ui/composer-widget.ui: Make toolbar icons visible by default, set Send
        button icon here rather than in the class.
      57ca408c
  9. 31 Jan, 2017 4 commits
    • Michael Gratton's avatar
      Remove composer's scrolled window since WebView now scrolls internally. · 9e171d0d
      Michael Gratton authored
      We can't easily wrap ComposerWebView in a GtkScrolledWindow, since we
      don't any notifications that the cursor has moved offscreen and hence the
      view needs to be scrolled, so let the view do its own scrolling.
      
      * ui/composer-widget.ui: Replace editor_scrolled with editor_container,
        update uses.
      9e171d0d
    • Michael Gratton's avatar
      Update some composer action tooltips. · f27dea13
      Michael Gratton authored
      f27dea13
    • Michael Gratton's avatar
      Ensure draft is saved when envelope (from, to, etc) changes. Bug 726290. · f8957c4d
      Michael Gratton authored
      * src/client/composer/composer-widget.vala (ComposerWidget): Rename
        subject changed handler to something more generic, hook that up to the
        to/cc/bcc & reply_to entries.
      
      * ui/composer-widget.ui: Hook up multiple to on_envelope_changed, make
        subject entry use that as well.
      f8957c4d
    • Michael Gratton's avatar
      Reenable undo/redo composer actions. · 2bd5306d
      Michael Gratton authored
      * src/client/composer/composer-web-view.vala (ComposerWebView): Add new
        ::command_stack_changed signal to manage undo/redo enabled state, hook
        it up to a JS callback. Add ::is_empty property as a non-functioning
        shim in lieu of can_undo going away. Remove ::can_undo and ::can_redo,
        replace them with methods to actually fire an undo and redo.
      
      * src/client/composer/composer-widget.vala (ComposerWidget): Use
        ClientWebView::is_empty rather inplace of can_redo for determining
        editing state. Remove old undo/redo signal hookups, replace with
        ::command_stack_changed and manage action enable state from there.
        (ComposerWidget::action_entries): Add explicit actions for undo/redo,
        since they need some custom code over on on the web process side.
        (ComposerWidget::on_compose_as_html_toggled): Explciitly manage the
        visibility of rich text toolbar buttons, don't rely on obscure
        GtkBuilder magic that Glade doesn't support.
      
      * ui/composer-web-view.js: Add a mutation observer for the message body
        and explcit methods for firing undo/redo commands, so we can keep track
        of how the command stack changes. As it does, fire commandStackChanged
        messages back to the client process. Explicity set the message body as
        content-editable after the document has been mutated for quotes, etc.
      
      * ui/composer-widget.ui: Add bonus undo/redo toobar buttons for the
        composer.
      2bd5306d
  10. 20 Oct, 2016 1 commit
    • Michael Gratton's avatar
      Use click-to-focus prop on toolbar buttons rather than other workarounds. · 478ab2d7
      Michael Gratton authored
      * src/client/application/geary-controller.vala
        (GearyController::archive_or_delete_selection_async): Don't modify the
        focus after archiving/trashing/deleting.
      
      * src/client/components/pill-toolbar.vala, ui/composer-headerbar.ui,
        ui/composer-widget.ui: Ensure all toolbar buttons are focusable but
        have focus-on-click disabled.
      478ab2d7
  11. 03 Oct, 2016 2 commits
  12. 21 Sep, 2016 1 commit
    • Niels De Graef's avatar
      Use GLib.Actions in the composer. Bug 770356. · ebd78896
      Niels De Graef authored
      Now using these instead of the old composer's actions. This led to quite
      some changes:
      
      * Use GLib.ActionEntry instead of Gtk.ActionEntry in
        composer-widget.vala
      * Action names can now be specified in the UI files.
      * Use templates for the ComposerHeaderBar. Remove
        Pillbar as superclass, since that was no longer necessary.
      * Merge ComposerToolbar into ComposerWidget.
      * Since actions can now be parameterized, some methods could be
        merged (e.g. font size methods).
      * The menu button in the composer now automatically uses a popover.
      * Some methods and classes really deserved more comments.
      * necessary POTFILES.in changes
      Signed-off-by: Niels De Graef's avatarNiels De Graef <nielsdegraef@gmail.com>
      ebd78896