Commit Graph
837 Commits
Author SHA1 Message Date
Erick Pérez Castellanos 94a6e8bf7e month-view: restore ::days_delay calculation.
This was wrongly lost on commit fa2f300362
2015-01-29 10:54:27 -05:00
Erick Pérez Castellanos b08defc0e5 app: keep a pointer to private instance data
This seems faster to me
2015-01-29 10:47:41 -05:00
Erick Pérez Castellanos 79ea0817b0 month-view: fix button release behaviour
When starting from invalid cell button_release vfunc didnt check
properly the value of the first clicked cell, this led to non-sense
dates on new-event popover.
2015-01-29 09:56:31 -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 08b37bf8ea views: remove unused code 2015-01-29 00:01:10 -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 25545e5bf6 month-view: match UI style of year-view popover
year-view: rename popover class to something more generic
2015-01-28 00:16:53 -05:00
Erick Pérez Castellanos 0d74fcc87f year-view: properly update active-date property 2015-01-27 23:09:32 -05:00
Erick Pérez Castellanos c8339d333d year-view: fix marking and placing of events 2015-01-27 23:07:44 -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
Erick Pérez Castellanos 6d2dfdf9a1 app: update date when change in views
year-view: update date on selection
2015-01-27 19:10:28 -05:00
Erick Pérez Castellanos e67fc01279 app: use "Add Event…" instead of "Add new event…" 2015-01-27 17:49:44 -05:00
Erick Pérez Castellanos 9c33bd0dfc year-view: use icaltime_compare_date()
Hopefully, this fix once and for all the selection of the range to show
on the sidebar.
2015-01-27 17:48:34 -05:00
Erick Pérez Castellanos f2d84231a4 utils: added date comparison method
icaltime_compare_date_only() has some problems when one of the dates
passed are marked as is_date and the other not.
2015-01-27 17:42:16 -05:00
Erick Pérez Castellanos 4628799d2e year-view: include events overlapping the range 2015-01-27 13:25:37 -05:00
Erick Pérez Castellanos 9838f8c64e year-view: end-date passed to edit-dialog 2015-01-27 12:59:38 -05:00
Erick Pérez Castellanos 7b6037e707 year-view: add no events label to popover mode 2015-01-27 11:31:05 -05:00
Rishabh Raj 57ebe7aed9 time-selector: fix handler unblocked 2015-01-27 10:33:39 -05:00
Erick Pérez Castellanos 032b2fab55 year-view: fix range marking for a single day 2015-01-23 13:12:13 -05:00
Erick Pérez Castellanos ec80a90743 year-view: iterate properly through listbox children 2015-01-23 13:12:12 -05:00
Erick Pérez Castellanos 7ee9be263c year-view: show no events label when needed 2015-01-23 13:12:12 -05:00
Erick Pérez Castellanos 5c5d5f62f8 month-view: fixed draw clip bug
Updated Gtk+ version requirement to 3.15.4 where the bug is fixed.
2015-01-22 15:55:15 -05:00
Erick Pérez Castellanos 139f96e8bf month-view: remove comments reminders
These issues were fixed, so the reminders have to go
2015-01-22 15:36:06 -05:00
Erick Pérez Castellanos f06586df89 month-view: mark event-widgets edges 2015-01-22 14:26:28 -05:00
Erick Pérez Castellanos bb41d9dc76 year-view: fix all-day events
icaltime_compare() keeps doing its own work as it see fits
2015-01-22 14:02:06 -05:00
Erick Pérez Castellanos 5071b94b14 application: use events edges styles 2015-01-22 13:47:25 -05:00
Erick Pérez Castellanos a704b244b9 css-code: added harcoded styles of widgets 2015-01-22 13:46:54 -05:00
Erick Pérez Castellanos 5aace8e060 year-view: add class tagging to events
We add three classes:
+ slanted-start
+ slanted-end
+ slanted

Those mean an event who does not start on the first cell is drawn, and event
who does not end on the last cell its drawn and bot things at the same time.
2015-01-22 13:44:25 -05:00
Erick Pérez Castellanos 554ef1d80b event-widget: hardcode padding-top/bottom at 4px
This is necessary in order to properly style slanted edges on widgets
who need it on both start and end.
2015-01-22 13:31:08 -05:00
Georges Basile Stavracas Neto e009a67e30 utils: better search for the first week day
We were relying on _NL_TIME_FIRST_WEEKDAY, which is a glibc extension.

It doesn't work with non-glibc systems, such as FreeBSD.

This commit makes it carefully search for the first weekday. Fixes bug #743327.
2015-01-22 09:53:19 -02:00
Erick Pérez Castellanos 92ea54ac7b year-view: fix bug when ListBoxRow child is NULL 2015-01-20 17:15:17 -05:00
Erick Pérez Castellanos 4247018bde year-view: initial UI for no events days 2015-01-20 17:06:22 -05:00
Erick Pérez Castellanos 9b222e8d5f year-view: fix 31 of december and query range
icaltime_compare_date_only doesn't work as I expected. So moving back to
icaltime_compare along and fixing condition to include not all-day events
2015-01-20 17:04:16 -05:00
Erick Pérez Castellanos 2ff6bb460e gcal-view: remove unused funcs 2015-01-20 15:03:12 -05:00
Erick Pérez Castellanos 648ae18162 window: use GcalView::get_children_by_uuid 2015-01-20 14:48:46 -05:00
Erick Pérez Castellanos b03a906eee month-view: impl GcalView::get_children_by_uuid 2015-01-20 14:48:27 -05:00
Erick Pérez Castellanos 3ac46c9a3c misc: comments and whitespace fixes 2015-01-20 13:55:49 -05:00
Erick Pérez Castellanos d76ba04d92 year-view: prevent segfault when there's no child 2015-01-20 13:47:39 -05:00
Erick Pérez Castellanos a9ca220457 build: remove nav-bar unused files 2015-01-20 13:47:39 -05:00
Erick Pérez Castellanos 699bb47363 window: remove unneeded GcalNavBar
Previously GcalNavBar sported navigation buttons (which are gone) and
the labels. The labels alone are easily drawn inside the views, and we
could use the space more wisely.
2015-01-20 13:47:38 -05:00
Erick Pérez Castellanos bdacaeaa59 month-view: add view headers of its own 2015-01-20 13:47:38 -05:00
Piotr Drąg 93fa37ce11 Replace three dots with a proper ellipsis 2015-01-20 19:22:35 +01:00
Erick Pérez Castellanos 18ee4de144 year-view: impl GcalView::get_children_by_uuid 2015-01-20 13:12:01 -05:00
Erick Pérez Castellanos 03b108ff71 GcalView: add get_children by uuid method
After adding it and removing it, and adding it again. I think this time
is for good. We're keeping GcalView interface as parent of every view
shown in the application.
2015-01-20 13:12:01 -05:00
Erick Pérez Castellanos 0f13cb4a11 month-view: optimize days_delay update
No need of memory allocation and releasing which is costly.
2015-01-20 13:12:01 -05:00
Erick Pérez Castellanos 2bd81dc2ee window: disable week-view as it is unfinished
After the release we will restart the work on it
2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos c62d808a35 year-view: fix subscriber callback
GcalYearView::start_selected_date will always be started into something
and comparing against zero no matters what returns will enter in one of
the two categories
Still before 3.16, this code should change.
2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos ffc7a7f577 year-view: update sidebar on year changing 2015-01-20 13:12:00 -05:00