Commit Graph

35 Commits

Author SHA1 Message Date
933ba0f066 Bug 670280 - Remove "Recent Documents" attachment feature
GTK's file chooser dialog provides one-click access to recently used
documents now, so we can remove the redundancy from Evolution's mail
composer main menu and calendar component editor main menu and leave
it at "Insert -> Attachment".
2012-02-17 08:38:02 -05:00
137498bdd1 Add "Open With Other Application" to attachment menu.
Opens a GtkAppChooserDialog based on the attachment's content type.
2011-06-22 02:07:33 -04:00
756c8abcb8 Bug #646109 - Fix use of include <config.h> to make sure translations work 2011-05-27 15:23:07 +02:00
2c31a5bc23 Bug 641756 - Fix warnings from GCC 4.6
GCC learned how to find dead assignments.
2011-02-08 11:57:50 -05:00
753c60fc67 Drop backward-compatibility cruft. 2011-01-25 10:28:26 -05:00
3cce94edcb Bug #634403 - Mails Label popup menu is not updated properly 2011-01-19 14:56:35 +01:00
1e663aa132 Replace EBinding with GBinding.
GObject now does property bindings itself.

Requires GLib >= 2.26.
2010-10-14 07:12:52 -04:00
afe6f502c3 Use new GDK keysym names if available.
In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*.

I've added backward-compatibility macors to gtk-compat.h, which can be
dumped as soon as we require GTK+ >= 2.22.0.
2010-09-17 18:39:59 -04:00
8223eaf570 Convert EAttachmentHandler to an EExtension.
EAttachmentHandler predates EExtension, so this is really just a code
cleanup to use the extension framework.  But this also demonstrates that
extensions can target interfaces as well as instantiable types, since
EAttachmentView is an interface.

What's also nice is EAttachmentView no longer has to directly interact
with attachment handlers.  Instead of EAttachmentView having to query
each attachment handler for drag-and-drop info, each handler now pushes
its own drag-and-drop info to its EAttachmentView during initialization.
2010-08-26 19:32:36 -04:00
ecf3434da0 GObject boilerplate cleanup.
Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over
manual GType registration.

This is just a start... lots more to do.
2010-08-24 14:37:02 -04:00
4032075425 Bug 624913 - Disallow drag-and-drop within the same attachment bar
Adds a boolean "dragging" property to the EAttachmentView interface,
which becomes TRUE when the user start a drag from the attachment view.
e_attachment_view_drag_motion() and e_attachment_view_drag_drop() both
return FALSE when this property is set.

Also, do not register the entire EMsgComposer window as a drag
destination.  Just intercept drag signals from the GtkHTML widget.

Requires gtkhtml commit 344eb5e to fully work correctly.
2010-08-13 08:09:37 -04:00
f1c03de09d Bug 271691 - Add a way to view all attachments inline 2010-08-10 18:53:31 -04:00
84abe8bbf3 EAttachmentView cleanups. 2010-08-10 18:53:31 -04:00
df33c633ee Use an appropriate icon when dragging attachments. 2010-06-22 14:29:28 -04:00
970662db34 More GTK3 preparation.
This uses the new gtk_assistant_commit() I had added to GTK+ for our
EImportAssistant progress page.
2010-06-04 08:34:15 -04:00
ca4937f8f7 Bug 608855 - Can't drag and drop multiple attachments
Based on EggTreeMultiDragSource in libegg.
2010-05-20 17:05:37 -04:00
c8b4228f3d Improve attachment bar selection behavior.
Some improvements made while investigating bug #608855.  This does not
solve the bug however, and in fact I now believe the bug is actually a
GTK+ issue after reproducing the bug in gtk-demo.

These improvements restore multiple selections via Ctrl+Click and
Shift+Click, and also reduces the frequency that we synchronize the
selection between Icon View and Tree View.
2010-05-19 22:01:49 -04:00
4abf496f28 Bug 615291 - Preview pane's attachment bar accepts drop 2010-05-11 22:59:57 -05:00
bc90469e7f Camel is now GObject-based. 2010-04-24 11:05:27 -04:00
fabb6b035c Only #include Camel's top-level header. 2010-04-02 16:59:20 -04:00
d7494c8f16 Shell and UI manager cleanups.
Replace the EVO_EXPRESS environment variable with an --express command
line option.  (Note, this adds a new translatable string for --help.)

Add an EUIManager class with an "express-mode" property and custom load
functions that use our new "express" preprocessor.  This replaces the UI
manager functions in e-utils.c.

(Also going to see if I can get GTK+ to add an "add_ui_from_string"
method to GtkUIManagerClass that we can override.  Then we could just
call gtk_ui_manager_add_ui_from_string() and the preprocessor would
automatically do its thing and chain up.)

Add an "express-mode" read-only GObject property to EShell.

Add e_shell_configure_ui_manager() to e-shell-utils.c.  For now this
just creates a one-way property binding:

    EShell:express-mode -> EUIManager:express-mode

Call this immediately after e_ui_manager_new().  (EUIManager can't do
this itself because it lives too low in the dependency hierarchy and
doesn't know about EShell.)
2010-03-13 20:53:17 -05:00
67ce5f3b14 Add DnD support to e-selection.c.
Avoid listing calendar and directory targets explicitly, so that
e-selection.c contains the one and only master list.  Still need
to figure out how to centralize "text/x-source-vcard".
2010-02-08 18:57:24 -05:00
79741ccd3f Bug 606250 - Remove usage of deprecated GTK+ symbols
Several GtkWidget macros were recently deprecated.
2010-01-07 14:45:43 -05:00
17b6527680 Bug 599190 - Unable to drop attachments in the attachment bar 2009-10-22 20:11:41 -04:00
fa9051e040 Finish killing Bonobo. 2009-09-08 14:53:45 -04:00
8962868ff9 Relax the EBinding API to reduce GObject casting.
Also make it more fault-tolerant by warning about non-existent
property names instead of just crashing.
2009-09-01 21:12:44 -04:00
2c3ca95413 Bug 572543 – Doesn't show correct application for pdf attachments
This fix got dropped in the attachment rewrite.  Also, ignore the
application's NoDisplay setting when building the "open with" menu.
That's mainly so "Document Viewer" shows up in the list.
2009-06-03 12:00:01 -04:00
6f5464f34c Remove trailing whitespace, again. 2009-05-28 12:13:22 -04:00
04a042ee01 Fix compiler warnings in widgets. 2009-05-25 23:07:23 -04:00
bbe6437d08 Bug 582585 – Crash when deleting multiple attachments from composed mail 2009-05-14 10:50:38 -04:00
95a1645fc5 Fix a couple attachment drag-and-drop typos. 2009-05-05 22:58:58 -04:00
73e2332d84 Use 'Open with "$foo"' instead of 'Open in $foo...'
For better consistency with Nautilus.
2009-05-05 14:53:33 -04:00
f2767b2462 Bug 581454 – Move nautilus-sendto integration to Evolution 2009-05-05 14:53:33 -04:00
c3191ec86b Bump the required GLib and GTK+ versions to latest stable.
We now require GLib >= 2.20 and GTK+ >= 2.16.  Also removed all
GLIB_CHECK_VERSION and GTK_CHECK_VERSION workarounds for older versions.
2009-04-30 15:42:04 -04:00
e377ea5e61 Bug 516933 – Rewrite attachment UI
Rewrite the attachment UI to better utilize GIO and also to migrate from
GnomeIconList to GtkIconView.  This also introduces a "List View" option
similar to Nautilus, as well as the EAttachmentHandler framework for
extending attachment handling (may eventually replace EMFormatHook).

This commit also fixes a number of secondary attachment bugs:

Bug 311609 – new attachment bar should use regular gtk+ expander
Bug 314923 – Drag and Drop in attachment window is inconsistent and
             requires additional click
Bug 338179 – attachment saving ...
Bug 350364 – Action to get info about attachments
Bug 383047 – Viewing mail attachments
Bug 427235 – Can't copy attachment mime type string
Bug 454091 – Cannot save multiple attachments who have the same name
Bug 494629 – Rethink composer's attachment UI
Bug 553970 – Evolution ignores umask when saving attachments
Bug 577375 – mailto: and attach doesn't URL un-escape
2009-04-27 14:53:18 -04:00