Erick Pérez Castellanos
d5cc7efcd0
build: fix merge leftovers
2015-05-25 12:43:49 -04:00
Georges Basile Stavracas Neto
87c02b520a
source-dialog: hide itself on response event
2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto
c1b14e48d4
window: comment misleading destruction of calendar row
2015-05-25 12:36:55 -04:00
Erick Pérez Castellanos
b04720135f
window: sources are unique
...
There's no need to loop through the rest of the list once the ESource has been
found
2015-05-25 12:36:53 -04:00
Erick Pérez Castellanos
44480da71a
window: I rather have these lines
...
I prefer a clean separation between declarations and code
2015-05-25 12:36:53 -04:00
Georges Basile Stavracas Neto
2b4e46a4b6
manager: notify when sources are enabled/disabled
...
Add the new signal for GcalManager::source-enabled that
notifies connected widgets about the source change. With
that, we can keep checkboxes syncronizes.
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
c3d34ae149
window: add a nice style to the calendar listbox
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
3905622420
window: don't set the manager twice
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
5862f1671f
window: add source dialog to builder file again
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
0142b0494e
window: instance source dialog on init
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
72eb5dd20b
source-dialog: make remove action local to the dialog
...
Instead of delegating it to GcalWindow, take
the responsability to manage the source removal
logic.
This commit expose a problem we were trying to
avoid: make our widgets sensitive to source
modifications.
2015-05-25 12:35:33 -04:00
Georges Basile Stavracas Neto
f70702a885
window: correctly set the source and mode
...
Cannot change to edit mode without actually
give the source to edit.
2015-05-25 12:35:31 -04:00
Georges Basile Stavracas Neto
102b5431fd
source-dialog: better name the modes
...
Since we're not creating a calendar
as the default state, rename the mode
to NORMAL as it better describes the
dialog state.
2015-05-25 12:35:30 -04:00
Georges Basile Stavracas Neto
e7af463290
window: release timeout source after undo
2015-05-25 12:35:28 -04:00
Georges Basile Stavracas Neto
b43544cae7
window: update GcalSourceDialog::manager when the window's one is updated
2015-05-25 12:35:28 -04:00
Georges Basile Stavracas Neto
6657dad17f
window: remove hash table usage
...
Replaced by g_object_{get|set}_data methods
2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto
491e9d3e85
window: rename GcalWindow::make_row_for_source to GcalWindow::make_row_from_source
2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto
17f56895dd
window: use markup label for in-app notification
2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto
9df8b8077d
window: implement removing and undoing the removal of a calendar
...
We're still facing the bug where the just-added calendar segfaults when removed.
2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto
4585b44941
window: remove annoying compile warning
...
Hey GCC, they're just pointers!
2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto
d6b4aef582
window: sort calendars by name
2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto
df1b7def8c
window: refresh calendar list when a source is edited
2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto
c91d5bbb59
window: hide calendar popover when the dialog is trigged
2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto
b08165364a
window: set the source dialog's manager field
2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto
557ec083da
window: set the source to be edited
2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto
95af5c72d3
window: hide the dialog after the response
2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto
143444ddd5
window: show source dialog when a calendar is activated
2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto
7e9d722206
window: set source dialog to create mode
2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto
6dccbfe431
window: show sources dialog
2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto
ee2c22b950
window: add a GcalSourceDialog instance
2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto
cb532bbfbd
window: port the calendar popover to GtkListBox
...
This is a significant rewrite of the calendar popover. Instead of adding actions to the window, it uses a internal map to find the corresponding source.
2015-05-25 12:31:04 -04:00
Erick Pérez Castellanos
601f3c461e
app: add event uses current date as start
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=748133
2015-04-26 21:49:25 -04:00
Marcus Lundblad
adfffad88d
window: mark date format string for new event popover for translation
...
https://bugzilla.gnome.org/show_bug.cgi?id=746928
2015-04-07 10:17:27 -03:00
Georges Basile Stavracas Neto
955c934956
window: block automatic creation of nameless events
...
We shouldn't let nameless events be created.
This commit blocks all ways to create them
when the name is not set.
The user can still edit events' data.
2015-04-02 12:35:29 -03:00
Erick Pérez Castellanos
c7563da2d0
app: handle calendars colours better
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=745487
2015-03-06 11:32:32 -05:00
Erick Pérez Castellanos
91defe22de
window: handle reissue of in-app notification
...
For now we throw the first one away, and show the second. Eventually we
could handle this better.
2015-02-16 09:31:21 -05:00
Erick Pérez Castellanos
8fadbaa760
misc: fix various memory leaks
2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos
ef774ad2c2
window: update subscriptions after active-date
...
notification
Some views need to update itself when the dates changes,
e.g. WeekView. This allows to update the state of the view and be ready
properly for the components update.
2015-02-16 09:31:19 -05:00
Erick Pérez Castellanos
14bdca1605
window: use current_date
...
Streamline code a bit
2015-02-06 09:21:37 -05:00
Erick Pérez Castellanos
b1df382ee3
app: use get_color_name_from_source()
2015-02-06 09:21:36 -05:00
Erick Pérez Castellanos
06768733f7
window: fix calendars popover population
...
When the application load as a service by the time a user opens a window
GcalManager:source-added signals has passed and the calendars popover
does not contains any items. Use GcalManager::load_completed API
2015-02-06 09:21:36 -05:00
Erick Pérez Castellanos
bed360b013
window: set search terms API
2015-02-06 09:21:35 -05:00
Erick Pérez Castellanos
e79484f6f4
window: style issue
2015-02-06 09:21:35 -05:00
Erick Pérez Castellanos
158523bb6b
window: wait for callbacks execution
...
When the date has been just moved, the ECalDataModel callbacks has not
had time to execute so the vie wis empty. Schedule a request to allow
the callbacks execution.
2015-02-06 09:21:35 -05:00
Erick Pérez Castellanos
c96b9f05e4
window: add func to show an event from its uuid
2015-02-06 09:21:34 -05:00
Erick Pérez Castellanos
8af1e6c02a
window: month view navigation fixed for February
...
Since February have 28 days sometimes when you add month to January, 29
icaltime_normalize() takes you to February, 29 which is actually, March, 1.
The same happens for January 30 and 31.
2015-01-29 09:20:27 -05:00
Erick Pérez Castellanos
88e95081c5
month-view: highlight current date properly
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703323
2015-01-28 15:54:16 -05:00
Erick Pérez Castellanos
86d5a23ddd
app: initial current date marking work
2015-01-28 15:18:53 -05:00
Erick Pérez Castellanos
2465dfca40
window: add month-view and year-view to UI file
2015-01-27 22:52:20 -05:00
Erick Pérez Castellanos
fa2f300362
app: move view subscription to GcalWindow
...
Initialize :manager property first and :active-date later. Allocate
::active_date instance on instance init vfunc.
2015-01-27 22:37:44 -05:00