Commit Graph

38461 Commits

Author SHA1 Message Date
3924dc759d EMailParserExtension: Collect EMailParts in a GQueue.
Collect EMailParts in a GQueue provided to the EMailParserExtension,
and change the return type of parse() to gboolean to indicate whether
the given CamelMimePart was handled (even if no parts were added to
the output GQueue).

This avoids the awkward corner case of a parser extension returning a
linked list node with a NULL data member to indicate the CamelMimePart
was handled but no EMailParts produced, and then having to watch out
for that NULL data member corner case throughout the application.

Also, remove the GCancellable parameter from e_mail_parser_error() and
e_mail_parser_wrap_as_attachment() since neither function blocks.
2012-12-07 14:01:04 -05:00
4611bcd7b8 EMailParserExtension cleanups. 2012-12-07 14:01:04 -05:00
91822b42dc Make EMailPartList thread-safe.
Exposing data members in the public struct is unwise, especially when
EMailPartList is used from multiple threads.  Instead keep the members
private and provide a set of thread-safe functions to manipulate them.
2012-12-07 14:01:04 -05:00
2f0d83cf74 EMailFormatterContext: Keep a reference to EMailPartList.
Replace the individual components of an EMailPartList with a reference
on the EMailPartList itself in EMailFormatContext.  Easier to manage.
2012-12-07 14:01:04 -05:00
13f4544daf EMailFormatter: Simplify context allocation.
Replace the create_context() and free_context() class methods with a
"context_size" class member defaulting to sizeof(EMailFormatterContext).

EMailFormatter will use "context_size" to allocate a zero-filled slab of
heap memory.  Since EMailFormatterQuote is currently the only thing that
overrides the "context_size" (to append a "qf_flags" member), let's keep
this simple.
2012-12-07 14:01:04 -05:00
aebf88cc8e EMailFormatter: Class method rearrangement. 2012-12-07 14:01:04 -05:00
4f505b2772 Fix references to subpages of other documents, use / instead of #
https://bugzilla.gnome.org/show_bug.cgi?id=689765
2012-12-05 21:36:32 +01:00
acdbc6b72c Do not generate a ChangeLog file from 'git log' 2012-12-05 08:48:09 +01:00
2bbd4baef0 Do not empty trash/delete junk in disabled accounts on exit 2012-12-04 19:35:55 +01:00
ae6344a22b Bug #315317 - Add option to expunge messages on folder leave 2012-12-04 19:33:29 +01:00
56975aec6a Further EMailParser cleanups. 2012-12-04 13:10:53 -05:00
0862979d13 mail_parser_run(): Eliminate a dead code branch.
There's no need to check whether the 'parsers' GQueue is NULL since we
assert that it's non-NULL just a few lines above.
2012-12-04 12:01:43 -05:00
dff6f5d85d e_mail_reader_parse_message() cleanups.
Use the existing AsyncContext struct instead of defining a new struct.
2012-12-04 11:43:59 -05:00
dad8f67e57 Bug 689639 - File -> Print Preview in composer brings up Print dialog 2012-12-04 11:03:03 -05:00
0178cb5aab Bug #449081 - Drop read-only calendar error message 2012-12-04 16:20:08 +01:00
6d0b5ba95f Assamese translation updated 2012-12-04 15:06:59 +05:30
01a3fd26cd Bug #687503 - Improve error message »Failed to refresh folders« 2012-12-03 18:32:46 +01:00
2e07947a51 Bug #502516 - Avoid "source" string in user visible dialogs 2012-12-03 17:55:55 +01:00
b9b56d39cc Bug #525932 - Unhelpful "Error while Filtering Selected Messages." 2012-12-03 16:29:02 +01:00
2074c0b628 Bug #529743 - Add "Any header" filter and search folder condition 2012-12-03 13:28:17 +01:00
09893a473b Bug #678606 - Crash under mail_backend_folder_deleted_cb() 2012-12-03 12:05:39 +01:00
329faa083d Updated Tamil translation 2012-12-02 14:41:17 +05:30
20be39b714 Updated Tamil translation 2012-12-02 14:23:48 +05:30
ead3e47b67 Avoid gtk_rc_parse_string().
Use gtk_css_provider_load_from_data() instead.
2012-11-30 19:18:48 -05:00
bf1d0fb988 Avoid gdk_display_get_pointer().
Use gdk_device_get_position().
2012-11-30 15:27:22 -05:00
0c751ff6db ECellText: Simplify fetching vertical-spacing style property.
Call gtk_widget_style_get().  No need to get GtkStyle involved.
2012-11-30 15:18:14 -05:00
1533c15516 Avoid gtk_style_attach().
Documentation claims this step is unnecessary with GtkStyleContext,
and indeed the current gtk_style_attach() code does nothing at all.
2012-11-30 15:11:34 -05:00
7c2e05401b Avoid GtkStyle-based "paint" functions.
Use GtkStyleContext-based "render" functions instead.

   gtk_paint_arrow()    --> gtk_render_arrow()
   gtk_paint_box()      --> gtk_render_background()
   gtk_paint_expander() --> gtk_render_expander()
   gtk_paint_flat_box() --> gtk_render_background()
   gtk_paint_shadow()   --> gtk_render_frame()
   gtk_paint_vline()    --> gtk_render_line()
2012-11-30 14:28:35 -05:00
b15e0d6df6 Avoid gtk_widget_get_child_requisition().
Use gtk_widget_get_preferred_size() instead.
2012-11-30 11:40:04 -05:00
30d3ec19b9 Avoid gdk_app_launch_context_new().
Use gdk_display_get_app_launch_context() instead.
2012-11-30 11:35:32 -05:00
2ce2f8c276 Avoid gdk_keyboard_grab/ungrab() and gdk_pointer_grab/ungrab().
Use gdk_device_grab() and gdk_device_ungrab() instead.

In some cases this requires stashing the grabbed device so it can be
ungrabbed outside of an GdkEvent handler.
2012-11-30 11:30:10 -05:00
ab3f65a15e Address couple issues found by a Coverity scan 2012-11-30 15:30:45 +01:00
1eb7481305 Updated kn translation 2012-11-30 18:26:32 +05:30
5c08bdbb5c Updated kn translation 2012-11-30 18:25:32 +05:30
f6d9137ff1 Updated kn translation 2012-11-30 18:19:23 +05:30
37c5252c9b Fix Copy&Paste error found by Coverity scan 2012-11-30 08:39:32 +01:00
d52ad1054d Add a GdkDevice parameter to gnome_canvas_item_grab().
GnomeCanvas will stash the GdkDevice and reuse it in the subsequent
gnome_canvas_item_ungrab() call.
2012-11-29 18:15:35 -05:00
1d3ccfb8e6 EDayView: Fix a typo. 2012-11-29 14:20:57 -05:00
3ad5a5617a AlarmQueue: Forgot to add this to the previous commit. 2012-11-29 14:20:47 -05:00
d2fb5ee1a8 Avoid using GdkEventButton directly in certain places.
Prefer dealing with GdkEvent pointers and using accessor functions like
gdk_event_get_button().

This is complicated by the fact that some GtkWidget method declarations
still use GdkEventButton pointers, and synthesizing button events pretty
much requires direct GdkEventButton access.  But GDK seems to be nudging
itself toward sealing the GdkEvent union.  Likely to happen in GDK4.

Mainly clean up signal handlers and leave method overrides alone for now.
2012-11-29 13:24:24 -05:00
67024e23ee EWebViewGtkHTML: Fix code alignment issues. 2012-11-29 13:14:01 -05:00
e8181e9094 EWeekView: Remove disabled debug output.
Adding temporary printf() calls to aid in debugging is fine, but leaving
them in the code permanently is not useful, especially when maintenance
duties are passed on to others.
2012-11-29 11:15:15 -05:00
6e1a1d1e37 EDayView: Remove disabled debug output.
Adding temporary printf() calls to aid in debugging is fine, but leaving
them in the code permanently is not useful, especially when maintenance
duties are passed on to others.
2012-11-29 11:15:07 -05:00
4bc40f6663 Add the GdkDevice to ETextEventProcessorCommand.
Will be needed for grabs in response to button events.
2012-11-29 09:16:11 -05:00
d50deaf449 Avoid gdk_window_get_pointer().
Use gdk_window_get_device_position() instead.
2012-11-29 09:12:30 -05:00
0b9efdacc1 Avoid gdk_cursor_unref().
Use g_object_unref() instead.
2012-11-29 09:12:30 -05:00
953c9d8adf Avoid gtk_tree_view_get_vadjustment().
Use gtk_scrollable_get_vadjustment() instead.
2012-11-29 09:12:30 -05:00
c073de6c4c Bug #687360 - Crash on quit in gtk_style_context_get_valist() 2012-11-29 14:22:19 +01:00
19b26e86d0 Use version-based GLib/GDK/GTK+ warnings.
Use GLIB_VERSION_MAX_ALLOWED and GDK_VERSION_MAX_ALLOWED to warn if we
accidentally use symbols that were introduced in versions subsequent to
our minimum requirement.

Use GLIB_VERSION_MIN_REQUIRED and GDK_VERSION_MIN_REQUIRED to suppress
deprecation warnings by version so we can clean them up incrementally.
The initial values produce a few deprecation warnings which should not
be terribly difficult to clean up.
2012-11-28 15:59:40 -05:00
aef0e1e7fd Bug #672200 - Skip Reply-To-List check for list administrative messages 2012-11-28 19:17:28 +01:00