Commit Graph
48 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 40683e5e10 date-selector: initial implementetation
No functionality is ready, only project settings and class type.
2014-12-23 12:01:38 -05:00
Erick Pérez Castellanos 4eabc0223b build: remove unneeded code
GObject type system zeroing instance private data, so initialization to
NULL and FALSE is not needed.
Misc code styles fixes.
2014-12-22 21:52:35 -05:00
Erick Pérez Castellanos f0d35f60fb Revert "edit-dialog: update sources when their readonly state changes"
This reverts commit 31fa4e8e06.
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos 0749520a35 edit-dialog: don't open with summary entry empty 2014-12-22 08:38:18 -05:00
Georges Basile Stavracas Neto fa7bc69192 edit-dialog: properly set time selector's sensivity
Instead of simply not settings them at all, it is now set according to the writable and all day values.
2014-12-18 09:55:11 -05:00
Georges Basile Stavracas Neto 448594325e edit-dialog: remove useless code
I'm not really sure of this one, but it seems very correct. At least, things work now.
2014-12-18 09:55:11 -05:00
Georges Basile Stavracas Neto 33d101062d time-selector: implemented time selection with spin buttons 2014-12-18 09:55:09 -05:00
Georges Basile Stavracas Neto 75143200cb manager: change signal name to ::'source-activated' 2014-12-16 13:01:29 -02:00
Georges Basile Stavracas Neto 31fa4e8e06 edit-dialog: update sources when their readonly state changes
This fixes the annoying all-insensitive-menu bug.
2014-12-16 11:19:56 -02:00
Erick Pérez Castellanos 738bb89d94 edit-dialog: fix memory leaks 2014-12-08 12:33:41 -05:00
Georges Basile Stavracas Neto f8c269ac74 edit-dialog: fixed wrong menu fill
Menu is created each time the dialog is shown, now. This avoids the syncronization between sources loading time.

Also, icon color is now 16px.
2014-12-08 15:34:04 -02:00
Erick Pérez Castellanos e62f48bfea events: fix handling of event with no end date
Fix the sigsegv in edit-dialog and event-widgets when there's no
end-date set.
Set a guard in Utils::gcal_dup_icaltime function.
There's still some problems with the events showing the first time but
not anymore.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=736002
2014-12-08 11:21:14 -05:00
Georges Basile Stavracas Neto 20575b928f edit-dialog: update source color on selection 2014-12-05 17:22:03 -02:00
Georges Basile Stavracas Neto dd17c45167 edit-dialog: enable selecting source at event creation
When creating a new event, the user should be able to select in which source it'll be created in. This commit implements that.

Moving an event to another source, however, is not allowed at the moment.
2014-12-05 16:27:01 -02:00
Georges Basile Stavracas Neto 8f4d6be1bf edit-dialog: hide Delete button when creating a new event
Because we don't want to delete an event that is not created
2014-12-05 00:41:34 -02:00
Erick Pérez Castellanos 1916986f15 app: active More details button from new event popover
GcalWindow got connected to GcalManager, and pass just created component
to GcalEditDialog
GcalEditDialog gained support to handle component not committed to
manager singleton instance yet.
2014-12-04 17:10:56 -05:00
Erick Pérez Castellanos dc941b6a9d edit-dialog: use reccurrence_id of events
When generating the uuid of an event if the event is recurrent, you need
to take into account its rid.
2014-12-04 17:10:55 -05:00
Georges Basile Stavracas Neto cba6da043d edit-dialog: removed unused code
Also, updates the edit dialog to the newer backend design, removing all traces of the old cached data type.

This patch is mostly functional, but it introduces some crashes after the component is updated.
2014-12-04 17:10:51 -05:00
Georges Basile Stavracas Neto 8e878f0a06 edit-dialog: show Save label for editable events
Fixes bug #739309.
2014-12-04 17:10:49 -05:00
Georges Basile Stavracas Neto 56e69f7c88 edit-dialog: implements GCAL_RESPONSE_SAVE_EVENT
This patch mainly implements GCAL_RESPONSE_SAVE_EVENT. It updates the event correctly, no matter in which source it is.

Signed-off-by: Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos 5397a1e4ba edit-dialog: fix wrongly updating ECalComponent
GcalEditDialog::clear_data was clearing the summary on the internal
ECalComponent instance. Blocking signal handler call allow to clear the
widget without clearing the component.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739307
2014-12-04 17:10:48 -05:00
Georges Basile Stavracas Neto b8a4812f3b edit-dialog: don't keep an internal cached version of the summary
This is part of the Edit dialog's redesign.

Fixes bug #739268.
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos 74c9f009d8 edit-dialog: show events description, minor tweaks 2014-12-04 17:10:48 -05:00
Georges Basile Stavracas Neto 37be39e9d0 edit-dialog: implement composite widget of edit dialog
Also, this patch implements a major design review of the dialog.
2014-12-04 17:10:45 -05:00
Georges Basile Stavracas Neto 19d380e80f project: replace GdkColor by GdkRGBA
Fixes bug #738553
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos 6d3e30b160 edit-dialog: added stub code
The code added make the dialog show up. Probably anything else works,
but it's start to keep the project building while GcalManager migration
is finished and new GcalEditDialog is built.
2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos a7fed37be4 gcal-edit-dialog: remove title
This shoul work along with the WM setting only border and
not titlebar on the dialog
2014-12-04 17:10:33 -05:00
Erick Pérez Castellanos 3e7f9f4636 gcal-utils: pass size to gcal_get_pixbuf_from_color 2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos f9a37293eb build: fixing deprecations from gtk+-3.10 2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos 0a5540bfac gcal-edit-dialog: ui fixes
Build against gtk+ master without warnings.
Used new GtkHeaderBar as titlebar of the dialog.
Reworked read-only event notification. Show up on the titlebar now.
2014-12-04 17:10:27 -05:00
Bastien Nocera a7ec3e5320 Make GtkMenuButtons work again
GTK+ uses "popup" not "menu" for the popup menus.
2012-12-06 09:19:17 +01:00
Erick Pérez Castellanos 1d04d68c52 Debug instrucions and comments removed. 2012-12-01 15:29:02 -05:00
Erick Pérez Castellanos 14fe503ece Fixed bug on location change notification. 2012-12-01 15:28:57 -05:00
Erick Pérez Castellanos 21ab796fb3 Added source change notification.
Added support in GcalEditDialog to notify when the source
of an event has changed.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos f0e5880476 Reworked date change observers.
Hooked signals from date and time entries.
Added comparison and adjustment if the interval.
Removed SimpleDate and SimpleTime structs.
Added _get_end_date for end-date change notification.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 69871884f9 Added start-date change handling.
Missing: moving end_date accordingly.
2012-12-01 15:28:51 -05:00
Erick Pérez Castellanos 8e02fab3f8 Cleaned debug info. 2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos 24cfaab837 Added support for storing event data.
Initial support for storing event-data so the EditDialog can
tell which properties has changed.
Changed time entries for GcalTimeEntry objects.
Set ::activates-default property of summary_entry to handle change title
with one keystroke.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos 20eccc8a31 Added support to obtain properties of the event
Added very initial support to handle obtention of the modified properties
of the edited event. There's still some kind of Model implementation to keep
track of the changes made by the user.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos c3acffa9d7 Changed mode declaration for emacs. 2012-09-20 09:00:46 -04:00
Erick Pérez Castellanos c3f8a4b973 Updated EditaDialog to match mockups.
Note: There's still missing one pixel border, I can't find the reason today.
And there's still need to theme better the background of the readonly header.
But the major changes are done.
2012-09-13 13:29:24 -04:00
Erick Pérez Castellanos 8ac7e58d88 Fixed non-construct properties setting.
Added push/pop composite pairs of functions.
Moved non-construct properties setting to after the construct process have
ended.
2012-08-30 00:59:17 -04:00
Erick Pérez Castellanos 4c3e232623 Removed read-only sources from EditDialog.
Removed disabled and read-only calendars from showing in GcalEditDialog.
2012-08-26 11:33:00 -04:00
Erick Pérez Castellanos 4c3bf3c318 Added method to obtain event-uuid from the dialog. 2012-08-23 14:59:34 -04:00
Erick Pérez Castellanos 4801dd3513 Added more details to event-details view.
Added start and end date loading.
Added start and end time loading.
Added calendar loading.
2012-08-23 11:26:00 -04:00
Erick Pérez Castellanos 749b1b18f0 UI fixes, and calling read-only API of GcalManager 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 8c0f6fba73 UI fixes to GcalEditDialog. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 7581e8bad0 Reworked details view of an event.
Removed editable-widgets.
Added GcalEditDialog
Reworked delete-event trigger
Moved method from GcalEventOverlay to utils to use it on GcalEditDialog
2012-08-23 09:43:58 -04:00