Commit graph

75 commits

Author SHA1 Message Date
Leonardo Robol
cae4b443c6 Added support to change the spell-checking language.
Bug 720335

* src/client/composer/spell-check-popover.vala
  Implemented a GtkPopover allowing the user to select a
  subset of the currently installed dictionaries for the spell
  checking in the composer widget.

* src/client/util/util-international-vala
  Added detection of installed dictionaries and proper
  translation of the available languages. This requires
  Enchant as an additional dependency.

* src/client/application/geary-config.vala
  Added keys spell-check-visible-languages and
  spell-check-languages in GSettings.
2016-06-09 15:36:39 +10:00
Robert Schroll
2592d7fceb Add accelerator to attach files to composer
https://bugzilla.gnome.org/show_bug.cgi?id=743565
2016-06-09 00:21:44 +10:00
Michael James Gratton
19dde8912b Remove only remaining use of emblem-system-symbolic icon name.
Bug 765837.
2016-05-21 11:18:31 +10:00
Yosef Or Boczko
0da3cb9d26 Use margin-{start,end} instead of margin-{left,right}: Close bgo #730611 2016-05-20 16:42:45 +10:00
Michael James Gratton
8491cd50bc Remove GTK+ 3.14 check when setting widget CSS, modernise it a bit.
Bug 764812

* src/client/components/main-window.vala (MainWindow::set_styling): Merge
  CSS blocks. Fix Gtk.Frame styling rules for Gtk3.20, making them also
  apply to the frame's border node instead of the frame node. Remove
  redundant rules. Add a prefix for CSS class names so to avoid name
  collisions.

* src/client/composer/composer-box.vala (ComposerBox::ComposerBox): Add a
  CSS class to the composer box, add prefix to the full-pane class.

* ui/composer.glade: Add a class to the composer's frame so that can be
  styled.
2016-05-20 16:29:35 +10:00
Robert Schroll
98be06db89 Avoid critical errors when creating multiple application menus
First, create a composer action corresponding to the app menu, instead
of reusing the one from the controller.  Second, create the menu from a
MenuModel, instead of from a UIManager, so we can have many of them.

https://bugzilla.gnome.org/show_bug.cgi?id=746504
2015-03-20 18:50:31 -04:00
Jim Nelson
57dec8cdba Disambiguate composer strings with gettext context: Bug #746076 2015-03-12 11:54:42 -07:00
Robert Schroll
36f316868a Provide custom close-and-save and close-and-discard buttons for composer
This ensures that we only have a single close button for the main window
at any time, and it always closes the whole application.  The composer
gets a default close button only when detached.
2015-03-11 18:15:30 -04:00
Robert Schroll
45a67f5740 Add accelerators to composer toolbar
https://bugzilla.gnome.org/show_bug.cgi?id=741731
2015-01-26 21:36:58 -05:00
Robert Schroll
80ed83ab74 Remove Ctrl-R shortcut for color in composer
https://bugzilla.gnome.org/show_bug.cgi?id=741628
2014-12-19 00:41:00 -05:00
Robert Schroll
77372bb254 Add Ctrl-D shortcut to detach composer
https://bugzilla.gnome.org/show_bug.cgi?id=741574
2014-12-19 00:40:47 -05:00
mar-v-in
108d0abe4c Specify "Reply-To:" in composer fields: Bug #714588
This also closes bug #713808, as lesser-used fields (Reply-To, Bcc)
are hidden unless the user expands the composer to show them.  Right
now that is an option in the composer's toolbar menu; that may change
in the future if we can find the right place to put the widgetry.
2014-11-04 14:44:05 -08:00
Jim Nelson
0cd85446fa Use "dim-label" style and remove colons in composer
Use new GNOME style guidelines in composer widget.
2014-08-04 13:46:18 -07:00
Robert Schroll
bc29652175 New detach icon for inline composer
https://bugzilla.gnome.org/show_bug.cgi?id=733370
2014-07-19 17:17:23 -04:00
Robert Schroll
221d8f7400 Use HeaderBars for composers
Move the buttons from the bottom of the composer into the header.  The
draft save text is moved into the composer toolbar, for lack of a better
location.  When it's inline, we insert our own close button, so we can
control what it does.  When it's detached (and not using Unity), we
enable to default close button.

https://bugzilla.gnome.org/show_bug.cgi?id=731537
2014-07-18 12:05:24 -04:00
Robert Schroll
39ef136065 Separate the pill-style Toolbar from the pill-style HeaderBar
The composer toolbar uses the former, while the main window header uses
the latter.

https://bugzilla.gnome.org/show_bug.cgi?id=730903
2014-06-03 20:43:01 -04:00
Jim Nelson
4233f1acc7 Unmark strings for translation, HIG tooltip change 2014-05-20 18:59:28 -07:00
Robert Schroll
78d1d48366 Work around reply/reply-all bug in compact recipients 2014-05-20 16:30:22 -07:00
Robert Schroll
ccf0b0ad18 Ellipsize long recipient labels in the compact composer 2014-05-20 16:30:22 -07:00
Robert Schroll
3c9ab2bd79 Support different modes for the inline composer
INLINE_NEW: New message, taking up the full view
INLINE: Reply or forward, with editable recipients
INLINE_COMPACT: Reply, without editable recipients

Note that the only allowed paths are
  INLINE_COMPACT -> INLINE -> DETACHED
  INLINE_NEW -> DETACHED
2014-05-20 16:30:22 -07:00
Robert Schroll
28eb213736 Don't focus on the detach button on click
This way, we can maintain the selection when detaching the composer.
2014-05-20 16:30:22 -07:00
Robert Schroll
a49cf8821f Hide attachment widgets when no attachments
This saves a bit of space.
2014-05-20 16:30:22 -07:00
Robert Schroll
94c15bd461 Compact header for inline replies 2014-05-20 16:30:22 -07:00
Robert Schroll
35e3cdfd9b Move detach button to bottom of compose widget
Also, remove the embed toolbar at the top.

Note that the focus is stolen by the detach button when it's clicked, so
we can't re-establish it in the window.  Instead, we use the existing
set_focus() method to put in a (hopefully) appropriate place.
2014-05-20 16:30:22 -07:00
Charles Lindsay
7e1e968b61 Add mnemonics to composer fields
Closes: bgo #713843
2014-02-25 12:01:35 -08:00
Yosef Or Boczko
288eaee831 Indent and outdent icons for RTL: Closes #7551 2013-11-08 13:03:29 -08:00
Eric Gregory
aa1175b2ab Closes #7508 Composer edit box is now in a GtkFrame 2013-10-02 16:07:34 -07:00
Eric Gregory
302ffc4fdc Closes #7365 Draft saving notifications are now less distracting 2013-09-27 17:05:28 -07:00
Jim Nelson
1d9ea39dd1 Several mnemonic and capitalization fixes
Missing mnemonics in composer context menu: Closes #7439
Context menu items need capitazliation: Closes #6862
No tooltip for remove button in Accounts window: Closes #6551
Print menu item needs ellipsis: Closes #7259
"Saving..." -> "Saving" in composer: Refs #7365
2013-09-04 19:15:24 -07:00
Yosef Or Boczko
74076f06fa Mark overlooked Glade strings for translation: Closes #7414 2013-08-29 13:03:44 -07:00
Eric Gregory
28d71fb1a7 Closes #7397 Capitalization fixes in menus 2013-08-28 18:41:00 -07:00
Eric Gregory
bb72647b26 UI refresh. Closes #7267 Closes #7199 Closes #7198 Closes #7043 Closes #6819 Closes #5839 2013-08-26 14:56:46 -07:00
Eric Gregory
f78ddf6bbd Autosave drafts. Closes #6124 2013-08-13 18:02:42 -07:00
Eric Gregory
8059f0f31e Merge branch 'master' into feature/drafts 2013-08-13 14:53:12 -07:00
Brendan Long
624a7171be Content menu missing labels in composer: Closes #7322 2013-08-12 16:30:17 -07:00
Eric Gregory
c8cbebc39c Merge branch 'master' into feature/drafts 2013-08-08 13:07:51 -07:00
Eric Gregory
0e185be7be Closes #7236 Replace previous draft 2013-08-02 17:49:33 -07:00
Jim Nelson
403dd8508e Drop Gtk.Stock: Closes #7203, Closes #7294
These changes also invalidates #7218, as we're no longer using
buttons with icons with these changes.
2013-08-02 15:28:33 -07:00
Eric Gregory
bc8a77bcd1 Closes #3769 Initial save to drafts functionality 2013-07-18 12:56:54 -07:00
Robert Schroll
8bb4f5fba7 Add formatting menu in composer; fix #6436
N.B. The actions for the menu need to be set through the UIManager, not
through the ActionGroup.  Otherwise you get warnings about
gtk_accel_label_set_accel_closure.
2013-04-30 17:20:13 -07:00
Janosch Rolles
0ddcfb3512 Closes #6755 Ctrl-W to close composer window. 2013-04-23 12:18:26 -07:00
Robert Schroll
0dc252d631 "Cancel" means two things when closing composer: Closes #6830 2013-04-22 12:14:40 -07:00
Robert Schroll
7d8b23545f Closes #6438 Quote level replaces indent 2013-04-10 12:45:33 -07:00
Robert Schroll
96a5e99b06 Add button to include reply attachments; fix #6308 2013-04-10 12:39:10 -07:00
Jim Nelson
a8eb2bce88 "Rich text" -> "Rich Text" as per GNOME HIG 2013-02-26 15:38:50 -08:00
Robert Schroll
3e4b94de0e Optionally send email in plain text: Closes #3198
The composer can now be switched between rich and plain text mode
using the context menu.
2013-02-26 15:30:47 -08:00
Eric Gregory
e2f4302e31 Closes #6044 Shortcuts in tooltips 2013-02-25 18:29:01 -08:00
Eric Gregory
f604d2d988 Closes #6334 Show and set "From:" field in composer 2013-02-08 11:59:27 -08:00
Eric Gregory
4859f6829d Closes #5820 "Attach File" instead of "Attach a file" 2013-01-09 17:23:59 -08:00
Jim Nelson
5a9cdfd1e6 Composer buttons clean-up: Closes #5810, Closes #5818 2012-09-25 11:58:46 -07:00