Commit Graph

2959 Commits

Author SHA1 Message Date
1c6f2d154e Bug #631320 - GtkObject is gone in GTK3 2010-10-06 19:26:08 +02:00
a9fc19b195 Get rid of deprecated GtkObject in EMap widget
Remove GtkObject::destroy() handler. Move disconnecting
signal handlers to e_map_finalize().

https://bugzilla.gnome.org/show_bug.cgi?id=630766
2010-10-04 16:42:28 +02:00
9675f18d91 Coding style and whitespace cleanup. 2010-10-03 13:29:20 -04:00
90c70d0bc4 EAttachmentPaned: Use gtk_expander_set_label_fill()
Use the new GtkExpander:label-fill property in GTK+ 2.22, which was
added specifically to get rid of my evil hack in EAttachmentPaned.
2010-09-30 13:55:39 -04:00
0e4c54eddc Messin around with EAlerts.
Trying out a new interface called EAlertSink.  The idea is to centralize
how errors are shown to the user.  A GtkWindow subclass would implement
the EAlertSink interface, which consists of a single method:

    void  (*submit_alert)  (EAlertSink *alert_sink, EAlert *alert);

The subclass has complete control over what to do with the EAlert,
although I imagine we'll wind up implementing various alert-handling
policies as standalone widgets such as EAlertDialog.  I'd like to try
an EAlertInfoBar.

Code that would otherwise display an error dialog itself would instead
pass the EAlert to an appropriate EAlertSink and be done with it.

Nothing is final yet.  Still hacking on EAlert trying to find an API
that feels right for these use cases.
2010-09-29 21:11:44 -04:00
dc1344cd02 Bump gtk+-2.0 requirement to 2.22.0.
Remove backward-compatibility hacks for older GTK+ versions.
2010-09-28 21:32:15 -04:00
31b57ed038 Adapt to Camel API changes. 2010-09-28 11:35:55 -04:00
dae7739b3f Bug #629645 - Sets negative 'width' property 2010-09-21 18:19:19 +02:00
a98c07a569 Add a GCancellable to EActivity.
EActivity now uses a GCancellable to manage cancellations, instead of
having its own redundant cancellation API.  API changes are as follows:

  + e_activity_get_cancellable()
  + e_activity_set_cancellable()

  - e_activity_cancel()
  - e_activity_is_cancelled()
  - e_activity_get_allow_cancel()
  - e_activity_set_allow_cancel()

EActivity's "cancelled" signal remains, but only as a repeater for
GCancellable::cancelled signals.  It should not be emitted directly.

The presence of a GCancellable implies that cancellation is allowed.
EActivity does not create its own default GCancellable, it has to be
given one.

If a CamelOperation (cast as a GCancellable) is given, EActivity will
configure itself to listen for status updates from the CamelOperation
and propagate the information to its own "primary-text" and "percent"
properties.

These changes allowed me to start cleaning up some of the incredibly
convoluted logic in mail-mt.c -- in particular, mail_operation_status()
is completely gone now.  mail-mt.c is still in a transitional state --
much more significant changes coming soon.
2010-09-18 16:40:19 -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
b82402ca8c Bug #563471 - Printing tasks fails when grouped by category.
This works if Tasks/ Memos/ Contacts are grouped till level 1.
If grouping level is increased then some text would be missing.
2010-09-14 11:25:16 +05:30
ebcce86769 Coding style and whitespace cleanups. 2010-09-11 14:14:04 -04:00
4c13763c5e Convert ECell from a GtkObject to a GObject.
To eliminate the floating-reference-on-finalize run-time warnings.
2010-09-11 09:03:45 -04:00
bc9ece413f Re-work my GtkDialog:has-separator workaround.
If we're using GTK+ 2.21.8 (where gtk_dialog_set_has_separator() is
deprecated but the property is still present and defaults to TRUE), we
still need to set the property to FALSE.  So instead use g_object_set()
up through GTK+ 2.90.6, after which the property itself is gone.
2010-09-11 09:03:45 -04:00
a6e137295f Work around deprecation of gtk_dialog_set_has_separator()
Unfortunately the default value for this property is TRUE (bzzt, WRONG!)
so we can't just remove the function outright until we require GTK+ 2.22.
It was deprecated in GTK+ 2.21.8.
2010-09-11 00:30:54 -04:00
101305e1c7 Various memory leaks 2010-09-07 18:39:46 +02:00
72766a6e2d Bug 628483 - signature_combo_box_refresh_cb memory leak 2010-09-01 07:12:35 -04:00
4c05b9e925 Coding style and whitespace cleanup. 2010-08-29 11:22:28 -04:00
1884f66c02 ECellText cleanups. 2010-08-29 09:37:18 -04:00
ff2c9f8499 Bug 628154 - Ignore paths in MIME part filenames 2010-08-27 18:12:45 -04:00
125a0dac96 Forgot a line.
This goes with the previous commit.
2010-08-26 20:06:48 -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
b91e79ec73 ESelectionModel cleanups. 2010-08-15 22:37:06 -04:00
4e9050bc1e Whitespace and coding style cleanup. 2010-08-13 21:32:32 -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
6caf022926 ECanvas cleanups. 2010-08-12 15:41:02 -04:00
9c07255990 remove select-on-focus hack, and replace with new skip-a-parent
chaining hack; sub-set this only for when we have a hint visible
ie. fix alt-c + type-new-search
2010-08-11 15:10:01 +01: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
18813ccd8f Defer the load / creation of configuration UI with changes to
e_preferences_window to take factory callbacks and store a reference
to the shell. - This makes start-up substantially faster, particularly
on Atom (eg.).

Remove a number of idle handlers used to create these UIs in the
first instance, cleaning the code.
2010-08-10 21:17:40 +01:00
b6b72b0c4a addressbook/gui, plugins/groupwise, widgets/misc: Update to new icon theme
Since gnome-icon-theme 2.30.x the icon name for the default avatar has changed
from stock_person to avatar-default

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=616822
2010-08-02 10:58:43 +01:00
8dcdc60ccc Make EImportAssistant extensible. 2010-07-30 12:10:01 -04:00
9085a5a18c Remove unused 'preview' argument from e_import_assistant_new_simple().
We preview imported files by other means now.
2010-07-30 10:58:26 -04:00
81e5428a59 Coding style and whitespace cleanup. 2010-07-26 01:16:42 -04:00
13cf1d104b Bug 624534 - Adapt to GTK+ GtkNotebookPage changes 2010-07-25 21:49:18 -04:00
95918d83ae Workaround table header image draw, it crashes under clutter. 2010-07-25 21:30:00 -04:00
665c4b22ad Disable my evil GtkExpander hack in EAttachmentPaned.
The new height-for-width logic in GTK3 doesn't like my trick to center a
GtkExpander's label widget, so I have to disable it entirely for GTK3 or
else Evolution crashes when opening a composer window.

Bug #614049 has a GtkExpander patch that would let me do it properly.
2010-07-17 06:26:58 -04:00
eb29179da6 Coding style and whitespace cleanup. 2010-07-11 22:25:06 -04:00
b3cdd1cc30 Bug 624022 - "stock_mail-import" no longer exists in gnome-icon-theme 2010-07-10 08:00:32 -04:00
137b0743dd Migrate from CamelException to GError. 2010-07-08 14:37:52 -04:00
fc3123dc43 Work around sudden disappearance of GdkRegion in GTK+ 2.90.5.
API was deprecated and removed in less than two hours!  Sheesh!
2010-06-29 20:38:29 -04:00
54f6924c84 EHintedEntry: Don't select hints on grab_focus(). 2010-06-24 20:42:09 -04:00
179db75ce0 Bug #620815 - Memory leaks with Evolution 2010-06-24 20:43:16 +02:00
9d538474a8 Bug 622633 - Can't launch Evolution from clock applet 2010-06-24 13:19:14 -04:00
b62f965b04 Bug #621903 - Crash on HTML message print preview 2010-06-24 17:57:48 +02:00
ef9b23ef99 Bug 604262 - "Copy Email Address" should also copy to primary clipboard 2010-06-24 08:44:00 -04:00
f1bad7677a Bug 622559 - Changing search option should focus search entry 2010-06-24 08:17:13 -04:00
df33c633ee Use an appropriate icon when dragging attachments. 2010-06-22 14:29:28 -04:00
402166be54 Composer: Only hide single From account in express mode.
At least until we have another way to insert signatures.

Obvious solution: Insert -> Signature -> (list of your signatures)
2010-06-20 17:34:27 -04:00