Commit Graph

341 Commits

Author SHA1 Message Date
Milan Crha c003c99a75 Bug #614480 - Avoid using G_TYPE_INSTANCE_GET_PRIVATE repeatedly 2011-06-29 18:41:39 +02:00
Milan Crha 14353865b4 Bug #642954 - Doesn't commit/abort sequence on modification error 2011-06-29 18:41:37 +02:00
Matthew Barnes 3b6c8972a5 Coding style and whitespace cleanup. 2011-06-29 18:41:36 +02:00
Matthew Barnes 274697623e Remove NULL checks for GObject methods.
As of GLib 2.28 all GObject virtual methods, including constructed(),
are safe to chain up to unconditionally.  Remove unnecessary checks.
2011-06-29 18:41:34 +02:00
Milan Crha 28d1b270ab Bug #641011 - Ugly appointment editing windows 2011-06-29 18:41:31 +02:00
Matthew Barnes dbc22f9de5 More whitespace cleanup. 2011-06-29 18:41:29 +02:00
Milan Crha fd695a3677 Various critical warnings about comp-editor-pages and date edit 2011-06-29 18:41:26 +02:00
Matthew Barnes a3ba231fcc Drop backward-compatibility cruft. 2011-06-29 18:41:25 +02:00
Milan Crha ca3faa17a9 Free/busy meeting view doesn't work due to non-working extension 2011-06-29 18:41:08 +02:00
Matthew Barnes dce5bdc369 Move calendar preferences to the calendar module.
Continue replacing the use of calendar-config functions with GObject
property bindings to EShellSettings properties.
2010-11-09 23:33:22 +01:00
Matthew Barnes 4a929caada Pass an EAlertSink to e_alert_sink_submit_alert().
Passing a random GtkWidget and then searching its ancestors for an
EAlertSink turned out to be not as useful as I thought.  Most of the
time we know about and have access to the widget that implements
EAlertSink, so just pass it directly as an EAlertSink.
2010-11-09 23:33:20 +01:00
Matthew Barnes 1e663aa132 Replace EBinding with GBinding.
GObject now does property bindings itself.

Requires GLib >= 2.26.
2010-10-14 07:12:52 -04:00
Matthew Barnes 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
Matthew Barnes 31b57ed038 Adapt to Camel API changes. 2010-09-28 11:35:55 -04:00
Matthew Barnes 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
Matthew Barnes cd53ba9900 Coding style cleanups. 2010-09-13 08:28:58 -04:00
Milan Crha 680c58a766 Bug #627101 - Not able to attach files in calendar 2010-08-30 13:58:12 +02:00
Matthew Barnes eb29179da6 Coding style and whitespace cleanup. 2010-07-11 22:25:06 -04:00
Matthew Barnes 137b0743dd Migrate from CamelException to GError. 2010-07-08 14:37:52 -04:00
Matthew Barnes f85872e921 Bug 619903 - Event editor is too small in express mode 2010-05-28 12:03:14 -04:00
Matthew Barnes 82f080eddd CompEditor cleanup. 2010-05-28 12:00:49 -04:00
Matthew Barnes 0b1cd2dd5b Coding style and whitespace cleanup. 2010-05-26 17:19:41 -04:00
Matthew Barnes c9ec8c3f4d Merge branch 'express2' 2010-05-26 13:09:33 -04:00
Matthew Barnes 9653887891 Coding style and whitespace cleanup. 2010-05-25 10:15:32 -04:00
Matthew Barnes f49077cfb5 Merge branch 'gnome-2-30' into express2 2010-05-25 09:14:51 -04:00
Jim Ramsay c6c287d275 Bug 594153 (3/3) - Allow setting alarms on any meeting
By tying the attachment view "editable" action group to comp-editor
"individual" group, these add/remove actions are marked sensitive /
insensitive in sync with the existing "Insert" menu items which are
already in the "individual" group.

Though not introduced with the other symptoms of this bug
(0597b877c5), the descreptency fixed
here is integrally related.
2010-05-18 17:34:35 -04:00
Jim Ramsay aac6a37163 Bug 594153 (2/3) - Allow setting alarms on any meeting
The "view-time-zone" and "view-categories" actions should not have
been grouped with the "individual" action group but rather the "core"
action group, as they should always be available regardless of whether
or not the element being edited is read-only/owned, as they simply
affect visibility of various widgets.

This fixes a bug introduced in 0597b877c5
where these two actions were accidentally grouped with other actions
that should legitimately be in the "individual" group.
2010-05-18 17:34:28 -04:00
Jim Ramsay 9df9e23903 Bug 594153 (1/3) - Allow setting alarms on any meeting
This introduces a new action_group called "editable" in the comp-editor
that can be used by other components to assign actions that should be
sensitized separately from the existing "individual" group, such as the
"Alarms" and "Show Time as Busy" event actions.

This fixes a bug introduced in 0597b877c5
where these two actions were accidentally grouped with other actions that
should legitimately be in the "individual" group.
2010-05-18 17:34:22 -04:00
Jim Ramsay 3cda4f0d94 Bug 594153 (3/3) - Allow setting alarms on any meeting
By tying the attachment view "editable" action group to comp-editor
"individual" group, these add/remove actions are marked sensitive /
insensitive in sync with the existing "Insert" menu items which are
already in the "individual" group.

Though not introduced with the other symptoms of this bug
(0597b877c5), the descreptency fixed
here is integrally related.
2010-05-18 17:26:38 -04:00
Jim Ramsay 25a4f71706 Bug 594153 (2/3) - Allow setting alarms on any meeting
The "view-time-zone" and "view-categories" actions should not have
been grouped with the "individual" action group but rather the "core"
action group, as they should always be available regardless of whether
or not the element being edited is read-only/owned, as they simply
affect visibility of various widgets.

This fixes a bug introduced in 0597b877c5
where these two actions were accidentally grouped with other actions
that should legitimately be in the "individual" group.
2010-05-18 17:26:38 -04:00
Jim Ramsay 9b9899d5c2 Bug 594153 (1/3) - Allow setting alarms on any meeting
This introduces a new action_group called "editable" in the comp-editor
that can be used by other components to assign actions that should be
sensitized separately from the existing "individual" group, such as the
"Alarms" and "Show Time as Busy" event actions.

This fixes a bug introduced in 0597b877c5
where these two actions were accidentally grouped with other actions that
should legitimately be in the "individual" group.
2010-05-18 17:26:38 -04:00
Matthew Barnes bc90469e7f Camel is now GObject-based. 2010-04-24 11:05:27 -04:00
Michael Meeks 81e6232269 Re-work the over-complicated event editor as a tabbed notebook.
Thanks to Sashwaat.
2010-04-19 09:57:48 +01:00
Michael Meeks bdca2cc885 cleanup for non-express mode 2010-04-15 13:38:57 +01:00
Michael Meeks 5fca5b574e Adapt the event editor for MeeGo / small-screen.
Bin the menu bar, disable the print icon, add a close button at top right.
2010-04-15 13:32:34 +01:00
Matthew Barnes 51e5ae5524 Adapt to Camel API changes. 2010-04-12 15:55:53 -04:00
Matthew Barnes a8feedf390 Adapt to Camel API changes. 2010-04-03 23:06:39 -04:00
Matthew Barnes fabb6b035c Only #include Camel's top-level header. 2010-04-02 16:59:20 -04:00
Milan Crha bf3a5df6d9 Bug #612821 - Uses freed memory when changing task's source 2010-04-01 15:10:46 +02:00
Milan Crha 256dd08704 Bug #612821 - Uses freed memory when changing task's source 2010-04-01 15:09:51 +02:00
Matthew Barnes 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
Michael Meeks 2184d0a2da improve locking for async query update, share code for object disposal,
and don't crash as before: bug#612826#
2010-03-13 22:09:37 +00:00
Matthew Barnes cae22334fa Remove dead assignments found by clang. 2010-01-15 21:50:05 -05:00
Matthew Barnes abc0e4c694 Introduce ESelectable and EFocusTracker.
EFocusTracker tracks the input focus within a window and helps keep
the sensitivity of "selectable" actions in the main menu up-to-date.
Selectable actions include Cut, Copy, Paste, Select All and Delete.

EFocusTracker has built-in support for widgets that implement the
GtkEditable interface such as GtkEntry and GtkTextView.  It also
supports custom widgets that implement the ESelectable interface,
which is a subset of GtkEditable and can apply to anything that
displays selectable content (esp. tree views and ETables).

This commit integrates EFocusTracker with EShellWindow, CompEditor,
EMsgComposer, and ESignatureManager.

It also bumps the GtkHTML requirement to 2.29.5 to utilize the new
GtkhtmlEditor:html constructor property.
2009-12-25 15:42:17 -05:00
Jonathon Jongsma 31204c9cc2 Port all error code to use GObject-ified EAlert / EAlertDialog
The changes are mainly including the e-alert-header.h header instead of just
e-alert.h.  This allows us to include e-alert.h in non-UI situations when
necessary.
2009-12-07 12:25:23 -06:00
Jonathon Jongsma c2ee0afbc8 Rename EError to EAlert to match general use better
The EError mechanism is used both for error dialogs as well as basic alerts or
user prompts, so we should give it a more general name which matches this use.

This patch also cleans up a few includes of e-alert.h (formerly e-error.h) that
were not actually being used.

https://bugzilla.gnome.org/show_bug.cgi?id=602963
2009-11-30 13:33:04 -06:00
Jonathon Jongsma 463aff5ebb port calendar/ to the new EError API
https://bugzilla.gnome.org/show_bug.cgi?id=602963
2009-11-30 13:32:22 -06:00
Milan Crha 9727444b39 Bug #602165 - Meeting window doesn't show status, role fields 2009-11-18 15:21:07 +01:00
Matthew Barnes 3dfdf087fc Kill more redundant save dialogs and related utilities. 2009-11-10 18:18:11 -05:00
Milan Crha 26889bef61 Bug #601218 - Accepted meeting doesn't show attachments in calendar view 2009-11-10 14:26:19 +01:00