Commit graph

426 commits

Author SHA1 Message Date
Gautier Pelloux-Prayer
87be2285ce Add shortcuts window. Bug 764926 2016-10-04 09:41:50 +11:00
Michael James Gratton
159c119b92 Ensure all new account/login placeholder text strings are translatable.
Bug 771930.
2016-09-26 16:34:42 +10: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
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
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
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
Michael James Gratton
521c0c4332 Set composer indent icons in UI file, now that GTK handles RTL. Bug 769533. 2016-08-06 11:40:35 +10:00
Niels De Graef
7e446b1580 Use Popover for Move/Label menu. Bug 767431.
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-06-20 15:27:41 +10:00
Michael James Gratton
2838631bd5 Add missing copyright header to ui/geary.css. Bug 767814. 2016-06-19 19:25:46 +10:00
Niels De Graef
a4b004b548 Separate CSS file and better parsing errors. Bug 767814
Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2016-06-19 19:20:52 +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
Michael James Gratton
32a7f76360 Hook up attach file shortcut, add it to user guide. Bug 743565. 2016-06-09 00:21:44 +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
10362b5a64 Tidy up main window accelerator setup.
* src/client/application/geary-controller.vala
  (GearyController::create_actions): Remove uneeded calls to
  add_accelerator - just remove them for dups ot move them to the action
  definition. Ensure they are defined in accelerators.ui so they are
  bound to their accelerators regarcdless of having a visible proxy.
2016-05-30 09:37:12 +10:00
Michael James Gratton
af94c20f9b Sort main window accelerators definition. 2016-05-30 00:40:36 +10:00
Michael James Gratton
c86af16ecf Remove some more artifacts from the old gear menu. Bug 759980. 2016-05-30 00:18:24 +10:00
Michael James Gratton
54ba285ab8 Clean up shortcuts and shortcut docs. Closes Bug 766987.
* src/client/application/geary-controller.vala: Remove prefs and accounts
  shortcuts.

* ui/app_menu.interface: Remove prefs and accounts shortcuts

* help/C/shortcuts.page: Capitalise J/K, remove prefs and accounts
  shortcuts.
2016-05-29 22:24:19 +10:00
Michael James Gratton
1886e17f38 Remove use of Gtk.Misc ::xpad and ::ypad. Bug 713991. 2016-05-21 12:45:13 +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
Michael James Gratton
8f00a51b13 Replace Yorba links with GNOME links, remove donate menu, update dpkg blurb.
Thanks for all the fish, Yorba.

Bug 765656.
2016-05-05 07:49:27 -04:00
Michael James Gratton
119f939ec8 Enable use of GtkTemplate attributes in vala source files.
* src/CMakeLists.txt: Bump target GLib to min required for
  GtkTemplate. Pass resources XML file to valac.

* ui/CMakeLists.txt: Copy both the generated resources XML file and the
  resources themselves to the CMake binary directory, since valac expects
  the UI files to be in the same directory as the resource XML.

* debian/control: Chase GLib version bump.
2016-04-09 17:30:29 -04:00
Michael James Gratton
2a6120ba49 Generate GResource source code, add it to the build. 2016-04-09 17:30:29 -04:00
Michael James Gratton
298fa60d1f Remove unused message.glade UI file and references to it. 2016-04-09 17:30:29 -04:00
Robert Schroll
bbfa2c6308 Remove references to toolbar_menu.ui
https://bugzilla.gnome.org/show_bug.cgi?id=746504
2015-03-20 19:21:24 -04: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
Yosef Or Boczko
244c197c15 Mark another string as translatable 2015-03-11 02:35:07 +02: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
Charles Lindsay
12704542b3 Support multiple ("alternate") email addresses per acct: Bug #714922
If the server supports sending and receiving messages from additional
email addresses, those addresses can now be added to Geary.  It will
allow the user to send new messages and replies from those additional
addresses and recognizes them as "Me" in the conversation list.
2015-03-04 17:26:44 -08:00
Robert Schroll
0400e431a0 Use symbolic close button on find bar
https://bugzilla.gnome.org/show_bug.cgi?id=744924
2015-02-24 21:19:43 -05:00
Jim Nelson
acd3f092a7 Better Preferences text for running in background: Bug #742244 2015-02-13 17:27:02 -08:00
Robert Schroll
c87bbea3ab Allow HTML signatures
We search for HTML-like tags in signatures, and don't do much as much
escaping if we find one.  For .signature files detected to be HTML, we
insert them without any change.  User-entered signatures get their
whitespace protected, even when HTML is detected. The existing code for
preserving whitespace doesn't work when there's already HTML code in the
text (it converts "<a b>" to "<a&nbsp;b>"), so instead we preserve the
whitespace with CSS.

A preview of the signature is added to the the UI.  There's a TextView
and a WebView in a Stack, and we swap between them with a StackSwitcher.
Some of the packing details are changed so that these views are the
thing that expands when the dialog size changes.

https://bugzilla.gnome.org/show_bug.cgi?id=738895
2015-01-29 17:27:26 -05: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
Jim Nelson
260436e92c Empty Trash and Empty Spam: Bug #714809, Bug #725260
Trash and Spam folders may now be emptied by Geary.  A user warning is
presented, as the operation cannot be undone and deletes mail on the
server, not just locally.
2015-01-13 13:48:16 -08:00
Michael Catanzaro
920b6720c0 App menu: remove separator between About and Quit
The HIG state that there should be no separator here.
2014-12-28 10:49:47 -06: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
Jim Nelson
23511dc36c Periodic database & attachments garbage collection: Bug #714134
See the ticket (comment #2) for more information on the thinking and
strategy here, but in a nutshell this will remove from the Geary
database all emails no longer accessible via any folder and not seen
on the server in over 30 days.  It also deletes those messages
attachment(s) and removes any empty directories in the attachment/
directory to prevent clutter.  If enough messages are garbage
collected, Geary will vacuum the database at startup, which will
lower its disk footprint and reduce fragmentation, potentially
increasing performance.
2014-12-18 17:00:47 -08:00
Georges Basile Stavracas Neto
b7f989685b Use GtkHeaderBar for Accounts & Prefs dialogs: Bug #741240 2014-12-08 15:18:34 -08: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
ad546ccd8e Password dialog improvements
In addition to changes in prior three commits, this updates the
password prompt UI to closer match the new GNOME HIG.  It uses
dim-label labels and suggested-action for the OK button, whose text
is changed to "Authenticate".  It also cleans up the inter-widget
spacing, which was a bit excessive.
2014-10-28 17:01:52 -07:00
Jim Nelson
809128692c Present user with dialog when TLS cert warnings detected: Bug #713247
When a TLS certificate warning is detected, the user will now be
presented with a warning dialog presenting them with three options:
Trust This Server, Always Trust This Server, and Don't Trust This
Server (the default).  The user must select one of the first two
buttons for Geary to continue connecting to the server, otherwise it
will close the Account object for the duration of the application
session.

This patch introduces a dependency on gcr-3, which is used to pin TLS
certificates (i.e. persist the user's choice of ignoring the TLS
warnings).
2014-08-28 17:27:50 -07: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
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
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