Commit graph

2472 commits

Author SHA1 Message Date
Dušan Kazik
e2911c3b4b Updated Slovak translation 2016-09-25 08:07:48 +00:00
Piotr Drąg
d6efbd030b Updated Polish translation 2016-09-24 22:14:46 +02:00
Piotr Drąg
2953dc8953 Remove trailing full stop from a new string in geary-args.vala
So it's unified with the rest.
2016-09-24 22:12:35 +02:00
Piotr Drąg
0d5dd3d20a Replace single quotes with double quotes in menus.ui
Double quotes are more friendly to some l10n tools.
2016-09-24 18:13:40 +02:00
Michael James Gratton
2cee61e1b9 Add missing ui/gtk/menus.ui file to PO/POTFILES.in. 2016-09-25 02:11:49 +10:00
Michael James Gratton
a5eee628af Fix some console spew when invoked qith -q/--quit and app is not running.
Bug 730537
2016-09-25 02:06:45 +10:00
Michael James Gratton
65c5363a06 Add -q/--quit command line options. Fixes Bug 730537.
* src/client/application/geary-args.vala (Args): Add a quit var and arg.

* src/client/application/geary-application.vala
  (GearyApplication::local_command_line): If quit was present, send the
  quit action.
2016-09-25 01:47:15 +10:00
Michael James Gratton
17f7ec265e Replace application-scoped GtkAction with GActions.
* src/client/application/geary-application.vala (GearyApplication): Move
  action names, entries and callbacks from GearyController to here. Add a
  new mailto action that expects an argument, make compose just open a
  blank composer.

* src/client/application/geary-controller.vala (GearyController): Add
  ::compose() and ::compose_mailto() methods to support app actions.
2016-09-25 01:10:07 +10:00
Michael James Gratton
a3e0e474e7 Use GtkApplication built-in for loading app menu.
* src/client/application/geary-application.vala (GearyApplication): Set
  the resource_base_path to comply with the expected modern app id, so
  the app menu will be automatically loaded.

* ui/CMakeLists.txt: Replace app_menu.interface with gtk/menus.ui. Don't
  try ot copy interface files now that there aren't any.

* gtk/menus.ui: Replaces app_menu.interface.
2016-09-25 01:05:29 +10:00
Michael James Gratton
ee61c084e7 Fix ContactEntryCompletion and ContactListStore being leaked.
Use static methods for sort/match functions to avoid circular refs causing
the objects to never be disposed.
2016-09-23 23:58:40 +10:00
Michael James Gratton
6b58da6b99 Fix delay showing composer for accounts with large numbers of messages.
* src/client/application/geary-controller.vala
  (GearyController::create_compose_widget_async): Load draft manager and
  email entry completion model asynchronously after the UI has been made
  visible.

* src/client/composer/composer-widget.vala (ComposerWidget): Rename
  set_entry_completions to load_entry_completions, make loading
  async. Make open_draft_manager_async and load_entry_completions public
  so they can be invoked by the controller.

* src/client/composer/contact-list-store.vala (ContactListStore): Load
  contacts asynchronously in smaller batches, so the UI
  remains responsive.
2016-09-23 23:58:38 +10:00
Balázs Meskó
ad1fc5bafc Updated Hungarian translation 2016-09-23 08:48:08 +00:00
Michael James Gratton
42ef49bd0f Fix ComposerWidget never being finalised.
* src/client/composer/composer-widget.vala (ComposerWidget): Closure for
  conversation_viewer signal handler somehow kept a reference that wasn't
  an issue if the closure didn't include the viewer instance??
2016-09-23 10:51:08 +10:00
Michael James Gratton
c9acc6faab Update Close and Save button state as draft status changes. Bug 747627.
* src/client/composer/composer-widget.vala (ComposerWidget): Disable
  the Close and Save button when closing the draft manager, enable it and
  managed its visibility when opening the manager.

* src/client/composer/composer-headerbar.vala (ComposerHeaderbar): Allow
  composer access to the Save and Exit button so it can manage its
  visibility.
2016-09-23 10:51:08 +10:00
Michael James Gratton
0b299e13e6 Fix Close and Save not saving drafts. Bug 747627.
Thanks to Jiri Cerny who also provided a similar patch.

* src/client/composer/composer-widget.vala (ComposerWidget): Simplify
  code paths that lead to the draft manager being opened, so we can
  ensure it is always opened when constructing a new draft.
2016-09-23 10:51:08 +10:00
Balázs Meskó
4edc16e4bb Updated Hungarian translation 2016-09-22 18:27:12 +00:00
Marek Černocký
81b3188420 Updated Czech translation 2016-09-21 21:33:57 +02:00
Piotr Drąg
a6a78b981c Updated Polish translation 2016-09-21 18:21:55 +02:00
Michael James Gratton
6a38d420aa Fix alternate email weirdness in composer from combobox. Bug 770356.
* src/client/composer/composer-widget.vala
  (ComposerWidget::add_account_emails_to_from_list): Don't use
  this.account, rename param to make it obvious that is the case.
  (ComposerWidget::update_from_field): Only update from addresses for new
  messages, use this.account to make that obvious.
2016-09-21 16:06:04 +10:00
Niels De Graef
56c10aca94 Fix for the context menu. Bug 770356.
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-09-21 15:02:31 +10:00
Niels De Graef
36702114f0 Correctly get the composer's style properties. Bug 770356.
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-09-21 15:02:22 +10:00
Niels De Graef
ebd788968b Use GLib.Actions in the composer. Bug 770356.
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 <nielsdegraef@gmail.com>
2016-09-21 15:02:18 +10:00
Gautier Pelloux-Prayer
5a53da3cba Fix detection of Sqlite3 SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER enum in cmake 2016-09-20 07:40:55 +10:00
Gautier Pelloux-Prayer
4cf4ef8fcf Persist Conversation Viewer zoom level. Bug 714933 2016-09-19 11:32:40 +10:00
Christian Kirbach
832a1b7fbd Updated German translation 2016-09-18 11:04:34 +00:00
Aurimas Černius
9705f14924 Updated Lithuanian translation 2016-09-17 14:25:35 +03:00
Baurzhan Muftakhidinov
e499f3db4a Updated Kazakh translation 2016-09-12 12:10:42 +00:00
Мирослав Николић
cb69415b4b Updated Serbian translation 2016-09-11 09:17:37 +02:00
Dušan Kazik
d57837fe36 Updated Slovak translation 2016-09-10 15:06:15 +00:00
Marek Černocký
8557a10afd Updated Czech translation 2016-09-10 09:09:48 +02:00
Oskar Viljasaar
46e176451f Do not crash if ~/.local/share/geary does not exist. Bug 741883 2016-09-10 13:41:05 +10:00
Piotr Drąg
a74925df69 Updated Polish translation 2016-09-08 04:20:26 +02:00
Flo H
6fd4e2a8a8 Updated German translation 2016-09-06 21:08:55 +00:00
Jiri Grönroos
58ccec016b Updated Finnish translation 2016-09-05 17:38:00 +00:00
Piotr Drąg
f032af8f7a Updated Polish translation 2016-09-05 16:45:06 +02:00
Piotr Drąg
bb29b4c2ca Updated Polish translation 2016-09-05 16:42:08 +02: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
Balázs Meskó
df141322b3 Updated Hungarian translation 2016-09-05 07:37:40 +00:00
Michael James Gratton
facf601e94 Fix name of translated appdata file. Bug 713937.
* cmake/FindIntltool.cmake: Fix brown-paper-bag CMake typo.
2016-09-05 12:23:34 +10: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
048fa15c7b Fix high-bit char corruption when sent as ISO-8859-1.
Commit 0c31607 made it possible for Geary to send messages as both
US-ASCII and ISO-8859-1, as part of the workaround for Bug 769137.

This introduced a bug however where if a message contained 8-bit
ISO-8859-1 chars but didn't include ant UTF-8 chars, the UTF-8 message
body would be encoded as if it was ISO-8859-1, and hence the high-bit
chars would be corrupted.

The solution is to re-encode the body in whatever charset it will be sent
as, before sending it.

* src/engine/rfc822/rfc822-message.vala (Message): Break out the common
  parts of generating a message body part from
  Message::from_composed_email into the new ::body_data_to_part method.
  Ensure that the body data is conveted into US-ASCII or ISO-8859-1
  before attempting to guess what transfer encoding should be used or
  setting it as the content of the new body part.

* src/engine/rfc822/rfc822-utils.vala (Geary.RFC822.Utils): Replace
  get_best() with get_best_charset(), since we can't guess both charset
  and transfer encoding at the same time any more. Ensure we reset the
  source stream after guessing (and in get_best_encoding) so that
  subsequent uses don't simply get an EOS.
2016-09-02 14:21:23 +10:00
Мирослав Николић
da2d2c9840 Updated Serbian translation 2016-08-25 08:22:54 +02:00
Marek Černocký
d11b8cca1e Updated Czech translation 2016-08-23 13:53:46 +02:00
Jiri Grönroos
e7ef2bf48d Updated Finnish translation 2016-08-21 09:59:53 +00:00
Jiri Grönroos
a1a910e77c Updated Finnish translation
(cherry picked from commit 5d5e5af7af5365eaa91faa5f2497be1ad82614bf)
2016-08-20 17:29:44 +00:00
Piotr Drąg
4c28117242 Updated Polish translation 2016-08-19 18:59:30 +02:00
Marek Černocký
223e1fafee Updated Czech translation 2016-08-19 14:51:13 +02: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
Aurimas Černius
6d6474ab2f Updated Lithuanian translation 2016-08-15 13:18:10 +03:00