Georges Basile Stavracas Neto
75143200cb
manager: change signal name to ::'source-activated'
2014-12-16 13:01:29 -02:00
Georges Basile Stavracas Neto
09262e875e
window: remove faulty g_free()
...
Freeing uid variant results in bloody segfaults.
2014-12-16 12:47:37 -02:00
Georges Basile Stavracas Neto
37241a189b
window: implement ability to show/hide calendars
...
This is a major feature of the preview roadmap.
Right now, it only shows/hides calendars, and the ability to create, delete, et al, them is to be designed.
2014-12-16 12:35:47 -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
Georges Basile Stavracas Neto
96e0055fcb
manager: added missing signal signature
2014-12-16 11:16:10 -02:00
Georges Basile Stavracas Neto
0cefc9f5ea
manager: implemented GcalManager::source-added and GcalManager::source-removed signals
2014-12-16 11:12:48 -02:00
Erick Pérez Castellanos
069ea90d57
manager: implement ::enable/disable methods
2014-12-15 13:38:42 -05:00
Erick Pérez Castellanos
9e42922543
manager: Keep references of the clients internally
...
In order to remove clients from the ECalDataModel without destroying we
need to keep a reference to it.
2014-12-15 13:38:37 -05:00
Georges Basile Stavracas Neto
e53e514a7e
manager: stub functions for enabling/disabling sources
2014-12-15 15:34:58 -02:00
Erick Pérez Castellanos
2a6b9a31ce
app: fix sigsegv when not getting a date from cli
2014-12-10 01:21:19 -05:00
Erick Pérez Castellanos
e2a2721e9e
window: add safety check
2014-12-09 15:37:02 -05:00
Erick Pérez Castellanos
83345b2fb4
app: gained --date option
...
GcalWindow loads the date from GcalApplication.
2014-12-09 15:36:01 -05: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
e58959d851
e-cal-data-model: fix event with no end-date
...
Google Calendar set no end-date on events with 0 sec duration time. We
need to make the corner case work.
2014-12-08 11:33:44 -05:00
Erick Pérez Castellanos
98e4b44a7d
manager: defer adding client to the internal hash
...
Wait until the client is opened and connected to add it to the internal
hash, so GcalManager::get_sources work properly.
2014-12-08 11:21:14 -05: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
Erick Pérez Castellanos
b5ff5437f6
manager: removed unneeded code, and comments
2014-12-05 22:40:15 -05:00
Erick Pérez Castellanos
db71a1c1f6
window: adjust new-event popover position
2014-12-05 22:30:10 -05:00
Erick Pérez Castellanos
314f60e040
about: praise our artists properly
...
Add jimmac to artists list
2014-12-05 16:20:57 -05:00
Erick Pérez Castellanos
fe7b1d942e
app: use new icon
2014-12-05 16:20:16 -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
Erick Pérez Castellanos
2853e9a3b2
about: add Lapo to the design/art team
2014-12-05 08:17:30 -05:00
Erick Pérez Castellanos
da19ffd6ab
window: create edit-dialog at construct time
...
This isn't as dynamical as one was, so create it at construction will
work just fine, and we have the 'if's.
2014-12-05 08:17:30 -05:00
Erick Pérez Castellanos
532a4de02e
event-widget: fixed typo on method name
2014-12-05 08:17:30 -05:00
Erick Pérez Castellanos
9188d37e53
manager: removed EVENT_CREATED signal
...
Since we are opening edit-dialog on event creation directly, we don't
need this notification anymore.
2014-12-05 08:17:30 -05:00
Georges Basile Stavracas Neto
e9eca7c86d
window: reset title after search
2014-12-05 10:39:28 -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
Georges Basile Stavracas Neto
23a7cda500
month-view: fixed small position calc issue
...
When using double for *part* of the calculation of Y position, the result is completely wrong.
This commit fixes it.
2014-12-05 00:04:42 -02:00
Georges Basile Stavracas Neto
7cd4fd032b
window: fixed key handler code
...
When in GcalWindow::new-event-mode, the key handler cannot redirect input to search bar. This commit fixes it.
2014-12-04 20:57:31 -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
b36a390292
manager: updated GcalManager::create_event
...
Move the API to use ECalComponent instead of uids.
2014-12-04 17:10:56 -05:00
Erick Pérez Castellanos
78bced937e
utils: add helper method for component construction
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
Erick Pérez Castellanos
927233cabb
build: remove GcalNewEventWidget related files
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
af3ce14ac2
app: remove GcalNewEventWidget, use GcalWindow ui
...
Since there will be no behavior on GcalNewEventWidget we can use simple
ui from GcalWindow to accomplish this.
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
83eb99efba
manager: update retrieve sources API
...
The move to newer API is to drop GtkListStore dependency on the manager.
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
329118079d
manager: update GcalManager::remove_event API
...
Move GcalManager::remove_event API to new style using ESource and
ECalComponent instead of uuid
Update GcalWindow uses of this API
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
67732884bb
utils: build an uuid string
...
Use an ESource and ECalComponent to build an uuid string with the format specified
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
e0ef2892fd
window: fixed event removed notification
...
Moved all this code into ui file.
Removed public API of GcalWindow. In time, if needed by some other
object it can be brought back.
2014-12-04 17:10:55 -05:00
Georges Basile Stavracas Neto
2970729324
window: move arrow buttons to headerbar
...
This is part of the ongoing efforts to fit Calendar with the latest designs.
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
52fc61a1a5
window: set view visible before show it
...
Since the move into using GtkBuilder's files the views aren't show
automatically. That's why the setting of the view initially was failing.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=741003
2014-12-04 17:10:54 -05:00
Georges Basile Stavracas Neto
3fdadffe08
new-event: initialize values before using them
...
Only to politely ask the compiler to stop complaining about them.
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
947e23758c
misc: whitespace, comments and strings fixed
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
f3bd29ba9c
app: use new search ECalDataModel
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
7fa696c137
manager: added ECalDataModel for search alone
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
934b1c4be0
window: more code moved into ui file
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
f8f8991510
window: move more code into ui file
...
Probably I can load the GMenuModel of the popover directly but I don't
know exactly how, and I've asked already and you can set bindings using
builder's ui file, just like before I don't know how at this time.
2014-12-04 17:10:54 -05:00
Georges Basile Stavracas Neto
aa445c33d1
window: remove unneeded set of menu image
...
This is already done in the builder file.
2014-12-04 17:10:53 -05:00