Commit graph

48 commits

Author SHA1 Message Date
Michael James Gratton
527399be76 Remember attachments dir and reuse adding/saving attachments and images.
* src/client/application/geary-controller.vala (GearyController): Replace
  use of last_save_directory with new attachments_dir property on the
  configuration object.

* src/client/dialogs/attachment-dialog.vala (AttachmentDialog): Replace
  current_folder with use of last_save_directory with new attachments_dir
  property on the configuration object. Add config object as ctor param
  and object field, update call sites.
2017-02-24 12:06:42 +11:00
Michael James Gratton
7787af3aac Remember print dir and reuse when printing again. Bug 713573.
* src/client/conversation-viewer/conversation-email.vala
  (ConversationEmail): Save config object as a class field, use that to
  get and set the print directory when printing. Also set the default
  print filename based on the email's subject.
2017-02-24 11:49:05 +11:00
Michael James Gratton
f69c461955 Re-enable spell checking in composer.
* src/client/application/geary-config.vala (Configuration): Remove
  spell-check setting, we can just get it from the list of visible
  languages instead. Update the schema.

* src/client/components/client-web-view.vala (WebView::init_web_context):
  Pass in a config object, use that to init WebKit's spell checking on
  the WebContext now that is a global configuration, update it when the
  config changes, update call sites.

* src/client/composer/composer-widget.vala (ComposerWidget): Remove
  WK1-syle spell checking settings prefs.

* src/client/composer/spell-check-popover.vala (SpellCheckPopover): Pass
  a config object in so we don't have to use the global app singleton
  instance.

* src/client/dialogs/preferences-dialog.vala (PreferencesDialog):
  Modernise by converting into a widget template.

* test/client/components/client-web-view-test-case.vala (TestCase):
  Construct a config object as a fixture, use it to init the WebContext
  and make it avalaible to subclasses & update subclasses.

* ui/preferences-dialog.ui: Moved from preferences.dialog, remove spell
  check preference.
2017-02-01 00:41:44 +11:00
Piotr Drąg
bfea6be048 Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=776142
2016-12-16 02:14:14 +01:00
Niels De Graef
2481989d5e Don't set DBusActivatable since we don't have a service file. 2016-12-10 00:33:01 +01:00
Niels De Graef
ec9acc8989 Perform migration for GSettings. Bug 766196. 2016-12-08 12:53:56 +01:00
Niels De Graef
4b5b2ee6e1 Use "org.gnome.Geary" for the app ID. Bug 766196. 2016-12-08 12:53:52 +01:00
Michael James Gratton
c55285f7f6 Remove now-unused composer-pane-position pref. 2016-10-04 10:58:17 +11:00
Gautier Pelloux-Prayer
4cf4ef8fcf Persist Conversation Viewer zoom level. Bug 714933 2016-09-19 11:32:40 +10:00
Piotr Drąg
6de907b9e6 Put translator comment in the desktop file in one line
Tools pick up only one line above the string.

Also fixes a typo in "Tranlators".
2016-09-05 16:32:08 +02:00
Michael James Gratton
96ea69df19 Make appdata file translatable. Bug 713937.
* desktop/CMakeLists.txt: Translate the appdata file rather than just
  installing it directly.

* desktop/geary.appdata.xml.in: Rename from 'geary.appdata.xml', make
  name, summary and description translatable.

* cmake/FindIntltool.cmake: Add a CMake command for the appdata file.

* po/POTFILES.in: Include geary.appdata.xml.in.
2016-09-05 12:14:34 +10:00
Michael James Gratton
6f988198f6 Update desktop resources to be spec compliant & consistent with the wiki. 2016-09-05 12:14:29 +10:00
Michael James Gratton
45773c8f88 Allow the Compose desktop action to be used on non-Unity desktops.
Patch courtesy Pacho Ramos.

Fixes Bug 751558.
2016-08-17 23:00:53 +10:00
Michael James Gratton
4a2ba1446d Fix cmake warning CMP0040 in cmake/FindDesktopFileValidate.cmake.
* desktop/CMakeLists.txt: Fix name of Elementary Contractor desktop file
  and disable Desktop file validation for it since it doesn't actually
  validate.

* cmake/FindDesktopFileValidate.cmake, cmake/FindIntltool.cmake: Don't
  assume XDG Desktop files are named ".desktop" - they aren't for
  Elementary's Contractor. Require callers to pass the full name in, fix
  call sites.
2016-08-11 18:45:24 +10:00
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
Adam Dingle
654e513f9c Transfer Yorba copyrights to Software Freedom Conservancy 2016-05-06 08:33:37 -04:00
Richard Hughes
2255664a54 Update the AppData file to spec version 0.7+ 2016-01-22 19:49:16 +00:00
Robert Schroll
4139076509 Allow changing orientation of left paned
The orientation is set in the preferences dialog.  There are new
configuration keys to track the pane positions, and a bit of code that
will set them the first time based on the current settings.

https://bugzilla.gnome.org/show_bug.cgi?id=714793
2015-03-10 19:08:59 -04:00
Robert Schroll
526f6e7889 Paned composer for handling multi-replies
When the user replies with a quote to a second message, the composer
moves into a paned below the conversation viewer.  This makes it easy to
scroll through the conversation and select text for replies.

The Gtk.Paned acutally holds a Box, which in turn can hold many
ComposerBoxes.  Only one is shown at a time, but the model used
elsewhere is that each ComposerWidget has a ComposerContainer until it
is destroyed.  When a composer is closed, it hides while finishing up
asynchronous work.  This allows us to hold hidden paned composers as
they finish up their work.

The logic for focus handling at detachment is moved into the
ComposerWidget from ComposerEmbed, since it may also be detached from
the paned state.  ComposerContainers gain a remove_composer() method
that does the container's clean up, as well as returning the focused
widget.  The ComposerWindow's remove_composer() method should never be
called.

https://bugzilla.gnome.org/show_bug.cgi?id=738188
2015-01-14 15:16:08 -08:00
Jim Nelson
533ab75ee3 Improved search experience: Bug #720361
This introduces a new full-text search algorithm that attempts to
curb the effects of overstemming in the Porter Snowball stemmer.
The FTS table will be regenerated with this update.

The crux of this new algorithm is a configurable heuristic that
reduces stemmed matching.  The configuration is not available via the
UI (I suspect it will only confuse users) but can be changed by power
users via GSettings.  More information is available at:

https://wiki.gnome.org/Apps/Geary/FullTextSearchStrategy
2014-12-16 12:26:31 -08:00
Viko Adi Rahmawan
66dc465d89 Contractor support: Bug #734717 2014-10-10 14:51:05 -07:00
Jim Nelson
2f94199105 Prevent Geary from being listed twice in Default Applications
The autostart .desktop file shouldn't have a MIME type association,
otherwise it will make Geary appear twice in the drop-down list of
email applications.
2014-08-13 12:17:25 -07:00
Mohamed Ibrahim
6783c2ce63 Start notifying of new mail at session startup: Bug #714644
Geary can now be configured to notify of new mail at startup.  When
the user logs in, Geary will autostart with a hidden window and
notify of new mail as usual.  When Geary is formally executed by
the user the Geary window simply appears.

In this mode, if the user closes the window Geary will return to its
hidden state.  Quit must be used to close the process.
2014-06-26 13:31:43 -07:00
Jim Nelson
637d48f9e2 AppData file now validates 2014-05-23 15:19:24 -07:00
Jim Nelson
6254599696 Update AppData file 2014-05-23 14:52:50 -07:00
Jim Nelson
dc1445d6f0 Update copyrights to 2014: Closes bgo#722381 2014-02-04 19:01:09 -08:00
William Jon McCann
fc0b41d5f9 Fix application name in .desktop file: Closes bgno#720781
Also corrects alpha-order problems in THANKS file.
2013-12-20 12:46:53 -08:00
Jim Nelson
4139dab02f Added summary to appdata file 2013-10-01 17:02:01 -07:00
Jim Nelson
3df4f89f3c Add copyright to geary.appdata.xml 2013-10-01 12:40:51 -07:00
Jim Nelson
e53efde056 Install AppData file: Closes #7546 2013-09-27 16:16:46 -07:00
Jim Nelson
2fcde7ef13 Add AppData file to tarball: Closes #7420 2013-09-25 12:58:12 -07:00
Jim Nelson
e5f0d4867b Fix .desktop file warning on Raring: Closes #6884 2013-05-27 14:54:49 -07:00
Charles Lindsay
dd3fe43a16 Validate desktop file when building; fix #6571 2013-04-15 18:32:35 -07:00
Charles Lindsay
a1c1dbe1ea Remove more libindicate-specific cruft 2013-04-11 18:13:55 -07:00
Michael George
ca4d18f326 .desktop file is missing trailing semicolon: Closes #6553
This comes after string freeze, so all translations had to be
touched-up as well.
2013-03-19 13:09:44 -07:00
Eric Gregory
4caa77fb69 Closes #6458 Supress first-run console warnings 2013-03-19 11:08:25 -07: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
7b3fa06ac1 Closes #5884 Closes #5854 Closes #5816 Closes #6367 String changes
* "Reply To" now labelled "Reply"
* Toolbar overflow menu labels no longer say "translated"
* .desktop file contains keywords
* For generic servers, "Remember password" now says "Remember passwords"
2013-02-22 12:45:03 -08:00
Jim Nelson
53b391267e Add intltool to CMakeLists: Closes #5993
Since intltool is a collection of programs and not a library, can't
use FindPackage to verify.  Instead, if not found, the .desktop file
CMakeLists will spit out an error and exit.
2012-10-16 20:29:08 -07:00
Jim Nelson
be64553a8e Update icon cache after uninstall: Closes #5755
Now using a post-uninstall target to ensure that desktop and icon
caches are updated *after* the icon/.desktop file are deleted.
2012-10-09 15:52:22 -07:00
Jim Nelson
d5203365e9 Update .desktop files with translations: Closes #5933 2012-10-09 15:52:22 -07:00
Thomas Moschny
39bfa815ba Minor .desktop file issues: Closes #5942 2012-10-03 19:11:51 -07:00
Jim Nelson
592fe9ff93 Integrate with libmessaging-menu: Closes #5607
Because Messaging Menu isn't available on Precise, a special
debian/control.quantal file is introduced here.  We should move to
using it solely when we phase out Precise support.
2012-09-20 15:54:50 -07:00
Adam Dingle
05c6e8fd98 Fixed #5755 (update icon cache after uninstall). 2012-09-14 09:54:52 -07:00
Jim Nelson
961d09c96d Warn users when opening attachment: Closes #5376 2012-09-04 17:50:18 -07:00
Jim Nelson
47f3f266bf Add "Geary Mail" to messaging menu: Closes #5733 2012-09-03 16:05:29 -07:00
Jim Nelson
47c535db3e Add .desktop file and Glade strings to .pot file: Closes #5463 2012-08-29 18:33:51 -07:00
Jim Nelson
01efb7c0fe Move .desktop and GSettings schema file
Previous commit exposed a bug caused by moving some of the client's
resources in the source tree.  Since much of the client's resources
are stored off the source root directory, it doesn't make sense to
special case the .desktop file and the GSettings file and place them
in the client source itself.  This moves them out and makes the
appropriate changes in the CMake files and source code.
2012-08-27 18:08:38 -07:00