Commit graph

2763 commits

Author SHA1 Message Date
Niels De Graef
2481989d5e Don't set DBusActivatable since we don't have a service file. 2016-12-10 00:33:01 +01:00
Michael James Gratton
9da8c372e2 Fix compilation under vala 0.35.1. Bug 775533.
Patch thanks to gautier@damsy.net in Bug 775452.
2016-12-09 16:01:17 +11:00
Michael James Gratton
5c8e838ea9 Fix main window showing a menubar under earlier GTK versions.
* src/client/components/main-window.vala (MainWindow::MainWindow):
  Restore explictly setting show-menubar property to false.
2016-12-09 15:57:35 +11:00
Michael James Gratton
56179ba066 Remove border around conversation viewer's scrolled window. 2016-12-09 15:36:06 +11:00
Michael Gratton
d6466d5747 Fix GTK+ widget style issues under GTK+ < 3.20. 2016-12-09 13:31:03 +11: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
2e5fe9ea86 Fix two runtime warnings caused by commit 3ef1ac. 2016-12-08 18:59:42 +11:00
Michael James Gratton
3ef1ac973e Fix runtime errors when built/running against GTK +3.14.
* ui/conversation-viewer.ui,
  src/client/conversation-viewer/conversation-viewer.vala: next-match and
  previous-match signals are only available in GTK+ >= 3.16.

* ui/empty-placeholder.ui: Drop declared GTK+ requirement to 3.14.

* ui/geary.css: The :not() pseudeo class is only available in GTK+ >= 3.20.
2016-12-06 16:22:39 +11:00
Gautier Pelloux-Prayer
d4acac034d Fix compilation for Gtk3.14 and older setups. Bug 775452 2016-12-06 15:53:28 +11:00
Muhammet Kara
b582b40f59 Update Turkish translation 2016-11-30 21:22:40 +00:00
Niels De Graef
776eebd48e Clean up MainWindow. Bug 775006.
* Use GtkTemplate to simplify layout.
* Prefix instance variables with this.
* Extract helper methods for clarity.

Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-11-30 18:46:18 +11:00
Niels De Graef
9f331c4639 Remove 'EmptyMenu'-action. Bug 775018.
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-11-29 00:19:40 +11:00
Kacper Bielecki
01c419ae5c Do not use headerbar with Unity
This commit reverts Unity workaround removal (commit 7b37e26; bug
738899).

However, in contrast to 7b37e26, it does not:
 * set clock format to the one used for Unity clock indicator
 * Use global GearyApplication.instance variable

Additionally, it makes detach button displayed always on the right while
running in Unity.
2016-11-28 22:05:33 +11:00
Piotr Drąg
7663ccd8a4 Update Polish translation 2016-11-27 17:34:08 +01:00
Dušan Kazik
a470412d67 Update Slovak translation 2016-11-24 20:04:36 +00:00
Alan Mortensen
5f92d6fd7d Updated Danish translation 2016-11-24 16:46:03 +01:00
Gautier Pelloux-Prayer
c623a4e621 Disable "save draft" button if it is not available yet. Bug 747627 2016-11-22 01:03:07 +11:00
Gautier Pelloux-Prayer
d39b44a0c1 Do not reset password unconditionally in case of login failure, but check for the reason. Bug 772808 2016-11-21 23:17:11 +11:00
Michael James Gratton
7ba13e934d Don't crash when attempting to display a 0-sized inline image.
* src/client/conversation-viewer/conversation-message.vala
  (ConversationMessage::clean_html_markup): Check the image buffer
  actually has some bytes before processing it.
2016-11-18 14:01:27 +11:00
hanniedu
e1bbba13fd Updated Dutch translation Master 3.24 2016-11-15 16:34:41 +01:00
Niels De Graef
604a3b24d2 Change helper methods to private in MainToolbar. Bug 773728.
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-11-15 21:26:41 +11:00
Niels De Graef
4f404b15d4 Use GtkTemplate for the MainToolbar
Bug 773728.

Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-11-15 16:05:04 +11:00
Niels De Graef
8189e4cadd Removed the PillBar classes (i.e. PillBar, PillHeaderbar and PillToolbar). Bug 773728.
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-11-15 16:05:04 +11:00
Mario Blättermann
11005a19de Update German translation 2016-11-11 21:15:33 +00:00
Ask Hjorth Larsen
077e9911d1 Updated Danish translation 2016-11-09 21:42:34 +01:00
Benedikt M. Thoma
f5a3e9860c Update German translation 2016-10-30 20:14:31 +00:00
Michael James Gratton
e91edf4dbd Fix some initially collapsed messages not showing a body when expanded.
* src/client/conversation-viewer/conversation-list-box.vala (EmailRow::expand):
  Check to see if the message's web views report a valid height and queue
  a resize if not, before expanding the row.
2016-10-25 14:17:59 +11:00
Michael James Gratton
797bb44b7c Fix conversation viewer's spinners being huge with some themes.
Bug 773054

* src/client/conversation-viewer/conversation-list-box.vala
  (ConversationListBox::show_loading), ui/conversation-viewer.ui: Specify
  a width and height request for the spinners, ensure they are centered.
2016-10-25 10:03:42 +11:00
E T
1b80419dc7 Update Turkish translation 2016-10-24 07:29:34 +00:00
Michael James Gratton
da9f0ad069 Fix conversation message Save All Attachments not working. 2016-10-22 18:25:13 +11:00
Gautier Pelloux-Prayer
b54a1484bc Remove non standard option DEBUG and use CMAKE_BUILD_TYPE instead. Bug 772879 2016-10-22 11:04:04 +11:00
Michael James Gratton
d6ad54bac2 Work around crash when replying to a long email. Bug 773132. 2016-10-22 10:35:17 +11:00
Gautier Pelloux-Prayer
329ca96150 Create configuration folder ~/.config/geary on fresh install as well to avoid crash. Bug 773305 2016-10-22 10:16:59 +11:00
Michael James Gratton
3b33f587a9 Fix convo viewer sometimes scrolling past the first unread message.
ConversationListBox was scrolling to the first expanded row in insertion
order, not necessarily the first in display order. This fixes that.

* src/client/conversation-viewer/conversation-list-box.vala
  (ConversationListBox::load_conversation): Compare expanded rows by sort
  order when inserting them, rather than by just taking the first one
  encountered. Delay loading it first until all have been inserted, so we
  know we are actually loading the first one first.
2016-10-22 09:02:20 +11:00
Michael Gratton
64004ec424 Merge branch 'bug/772522-fts-corruption' 2016-10-22 08:10:43 +11:00
Michael James Gratton
3e721feedb Rebuild MessageSearchTable. Database version 25. Bug 772522.
* sql/version-025.sql: Rebuild MessageSearchTable, and while we're here
  optimise it as well.
2016-10-22 07:34:30 +11:00
Michael James Gratton
07306e2483 Add some FTS table management methods to Geary.ImapDB.Database. 2016-10-22 07:33:57 +11:00
Michael James Gratton
b375a411d7 Work around for UPDATE causing FTS search table corruption. Bug 772522.
* src/engine/imap-db/imap-db-folder.vala
  (Folder::do_merge_email_in_search_table): Instead of doing an UPDATE,
  which will lkely corrupt MessageSearchTable, do a SELECT/DELETE/INSERT.
2016-10-22 07:33:57 +11:00
Colin Vidal
178817e5e6 TernaryConfirmationDialog: Fix inversion between cancel and ternary action labels
Hi Michael,

When you write a draft and close it (in embed or detached window),
label of buttons "Discard" and "Close" are inverted. This patch fix
it.

Thanks,

Colin
2016-10-21 00:03:38 +11:00
Michael James Gratton
478ab2d700 Use click-to-focus prop on toolbar buttons rather than other workarounds.
* 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.
2016-10-20 16:58:48 +11:00
Michael James Gratton
1af9c6c7aa Replace ConversationListStore's conversation_add signal pair with one.
This makes the added signal work in the same way as the new removed
signal.
2016-10-20 16:29:19 +11:00
Michael James Gratton
310daa8ad0 Fix messages being selected after move/etc and autoselect is disabled.
Bug 773054

* src/client/conversation-list/conversation-list-view.vala: Disable all
  selection when the user is causing the selection will change. This
  prevents the GtkTreeView impl from selecting the next row after rows
  are removed as a result of user action, but not for some other reason,
  i.e. the server removing a message.

* src/client/application/geary-controller.vala: Call new
  ConversationListView::set_changing_selection as needed when moving
  messages.

* src/client/conversation-list/conversation-list-store,
  src/engine/app/app-conversation-monitor.vala: Rename
  conversation_removed signal to conversations_removed and change its
  param to be a collection of conversations, so we can re-enable
  ConversationListView selection only after all conversations have been
  removed. Update call sites.
2016-10-20 16:27:43 +11:00
Michael James Gratton
0e5df2c9be Minor ConversationListView code cleanup.
* src/client/conversation-list/conversation-list-view.vala
  (ConversationListView): Don't use ::get_all_selected_paths() to
  determine if the selection is empty, just count the selected rows
  instead. Also, use Gdk.EVENT_PROPAGATE constants for clarity.
2016-10-20 12:04:49 +11:00
Michael James Gratton
4a9102c10e Make the folder loading spinner go away on conversation seed complete.
Same approach as 8ea5e3c, but fixes the spinner flashing several times
when loading.

Bug 773054.
2016-10-20 12:01:51 +11:00
Michael James Gratton
e36b720546 Fix a crash when loading an image with an invalid URI. 2016-10-19 09:50:09 +11:00
Balázs Meskó
0c8f2a8984 Update Hungarian translation 2016-10-18 07:23:28 +00:00
Dušan Kazik
579b63eb64 Update Slovak translation 2016-10-17 15:50:01 +00:00
Jiri Cerny
199a39d327 Reorder correctly the labels of Gtk.FileChooserNative
Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=772935
2016-10-18 00:53:28 +11:00
Michael James Gratton
8ea5e3c8a0 Make conversation viewer's spinner go away when autoselect pref is off.
Bug 773054.

* src/client/conversation-list/conversation-list-view.vala
  (ConversationListView::on_scan_completed): Artificially fire
  conversations_selected so that the controller knows that no
  conversations have been selected after the folder has changed, and
  hence gets the conversation viewer to display the "none selected" ui.
2016-10-18 00:50:28 +11:00