Commit Graph
100 Commits
Author SHA1 Message Date
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
Erick Pérez Castellanos 50702a9f53 dist: install settings schemas
This was wrongly removed on commit: 70b0988a

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=743344
2015-01-22 10:14:58 -05:00
Erick Pérez Castellanos 6635f31422 HACKING: updated with contributing guidelines 2015-01-21 09:29:49 -05:00
Erick Pérez Castellanos bdda641b98 Bump version to 3.15.4.1 for release 2015-01-21 08:33:19 -05:00
Erick Pérez Castellanos 70b0988a8c dist: fix appdata for the second time
... and I'm not even sure this is the right way
2015-01-21 08:33:19 -05:00
Erick Pérez Castellanos cf0ae10d2d NEWS: updated for release 2015-01-21 08:33:19 -05:00
Erick Pérez Castellanos edb8f41902 Bump version to 3.15.4 for release 2015-01-20 18:24:43 -05:00
Erick Pérez Castellanos af39760af9 dist: fix appdata 2015-01-20 18:23:01 -05:00
Erick Pérez Castellanos a8955715eb NEWS: updated for release 2015-01-20 17:43:34 -05: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
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
Erick Pérez Castellanos 85d7461cff year-view: added popover mode 2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos 70f788ad25 year-view: comment for post-release fixes 2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos e1ba556f2e year-view: connect current_date to window
Update sidebar whenever the current_date is updated.
This current_date mechanism is going to be moved completely into GcalWindow.
2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos 12708485db year-view: updated UI 2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos caaf492a3d year-view: add manager subscription process 2015-01-20 13:12:00 -05:00
Erick Pérez Castellanos 0dd6458ae8 event-widget: fix compare function 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos f7beeadbb2 year-view: adding second header to sidebar 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos fb3cc4caaf year-view: added update_sidebar and widget marking 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos 338f4c039f year-view: initial sidebar impl 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos 01f5276764 manager: retrieve events on a range 2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos d53a3570bf event-widget: added compare function
This compare function is made to sort using the same two methods used
before but together, giving priority to the longer events.
The idea is sort event properly on year-view's sidebar.
This function will probably change later.
2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos 0770a12ea9 year-view: add event handling to navigator 2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos e49418a26d year-view: add navigator drawing 2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos 19c8ae9d0e year-view: provide GcalView implementation 2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos 0b2367200b copyright: update year 2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos d15c4a5c1b view iface: remove manager property
There's no reason at all why manager should be a property inside the
views. It won't benefit of bindings or anything else inherent to GObject
property system.
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos 24b8c553dc year-view: initial commit
Dropped almost everything. Started using an ui file and using a GtkBox
as a parent.
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos eee9d11633 window: move search-view into ui file
This new impl of search-view will allow a lot of cleaning on GcalWindow impl
2015-01-09 15:01:02 -05:00
Erick Pérez Castellanos ea21ffdd70 search-view: internal manager is not a property
The idea here it to include SearchView as a widget in GcalWindow
Builder UI file.
2015-01-09 15:01:01 -05:00
Erick Pérez Castellanos 79f4000271 year-view: fix reminders of the merge 2015-01-09 09:22:03 -05:00
Erick Pérez Castellanos 029e34a205 year-view: remove debug statement 2015-01-09 09:16:44 -05:00
Erick Pérez Castellanos 372c6fba3d search-view: fix memory leak
Use internal icaltimetype from ECalComponentDateTime. Mark
GcalSearchView::event-activated signal parameter as constant.
2015-01-09 09:16:44 -05:00
Erick Pérez Castellanos 4832f5e79e providers: remove from screen on app::finalize
This fixes the quirks of decreasing the refcount after attaching the
providers to the default screen.
2015-01-09 09:16:44 -05:00
Erick Pérez Castellanos c68a499ad7 Revert "window: readd binding between search button and search mode"
This reverts commit f83c5865a3.

Conflicts:
	src/gcal-window.c
2015-01-09 09:16:37 -05:00
Erick Pérez Castellanos bdaf2dbc25 subscriber: files renaming before class renaming 2015-01-09 09:02:02 -05:00
Erick Pérez Castellanos e57d9ca55e year-view: initial GtkWidget::size_allocate impl
This impl uses internals structures from GcalSubscriber
2015-01-09 08:51:18 -05:00
Erick Pérez Castellanos 5f29241c64 year-view: add initial ::draw impl
So far support RTL drawing.
Missing:
+ Overflow indicators (this could be buttons)
+ selection borders drawing
2015-01-09 08:46:32 -05:00
Erick Pérez Castellanos 61e1101952 year-view: add orientation factor
This would be helpful in order to provide proper RTL drawing to the view
2015-01-09 08:44:37 -05:00
Erick Pérez Castellanos caf4031efe subscriber: rework ::remove and ::modified vfuncs
Since we have now access to the hash keeping the children of thw widget
there's no more need of calling GcalView::get_by_uuid
2015-01-09 08:43:21 -05:00
Erick Pérez Castellanos c1e68032c9 subscriber: added protected internal structure
The idea here is to make GcalSubscriber handle the container
responsibilities of the view, and the view will handle only the drawing
an allocating, this would allow us to remove GcalView interface and
merge its methods in GcalSubscriber.
2015-01-09 08:43:21 -05:00
Erick Pérez Castellanos 5a3e9577f2 view: fix gdk relayout warning 2015-01-08 13:04:49 -05:00
Erick Pérez Castellanos c6b0274c2f subscriber-view: flag children changes 2015-01-08 13:03:34 -05:00
Erick Pérez Castellanos 668c9ec439 subscriber-view: fix define guard 2015-01-08 13:03:01 -05:00
Erick Pérez Castellanos 55bb938127 year-view: use g_list_foreach 2015-01-07 13:08:51 -05:00
Erick Pérez Castellanos 2d93d0a939 ignore: updated 2015-01-07 12:51:51 -05:00
Erick Pérez Castellanos 5e78eadba7 Revert "window: readd binding between search button and search mode"
This reverts commit f83c5865a3.
2015-01-05 10:47:37 -05:00
Erick Pérez Castellanos 13a2aad87b month-view: impl ::clear_state vfunc
Implementing GcalSubscrberView::clear_state allow month-view to use
GcalSubscriberView::setup_child when handling overflow widgets
2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos b27402e870 debug: changed warning statements 2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos e0b26dd6f7 style: misc fixes 2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos 22eda85632 month-view: use subscriber-view internals 2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos 37245c6702 subscriber-view: fix :event-activated signal type 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 6989eb36c5 subscriber-view: add ::clear_state to reset widget
GcalSubscriberView::clear_state is implemented by descendants to reset
the state of the drawing
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos a5fe4c5ef0 subscriber-view: use ::setup_child protected func 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos fdf12bc6fd subscriber-view: adopt ::event-activated signal 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 663f1c6fa4 build: remove not-used code 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 9994377c9f subscriber-view: gained ::get_child_by_uuid vfunc
Started migrating methods from GcalView to GcalSubscriber
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 0e5c197c2f subscriber: renamed to GcalSubscriberView
This is more of a semantic change than anything else. GcalSubscriber
will gradually take on GcalView interface and that's why I'm adding the
View suffix.
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 0aba9c55d2 subscriber: files renaming before class renaming 2015-01-05 10:33:25 -05:00
Erick Pérez Castellanos c5311148f1 year-view: clean warning and whitespace 2015-01-05 10:33:25 -05:00
Erick Pérez Castellanos 2db94ae2cb year-view: implement GcalView::get_by_uuid 2015-01-05 10:33:25 -05:00
Erick Pérez Castellanos c4bd918827 year-view: initial GtkWidget::size_allocate impl
This impl uses internals structures from GcalSubscriber
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos d9801d188b year-view: implement GcalSubscriber extensions points
In GcalSubscriber container implementation is needed to find out if an
event will expand more than on cell on a view and on which cell it
belongs. GcalSubscriber provides two vfuncs for its descendants to implement.
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos 354581b7aa year-view: use GcalSubscriber container mojo
Empties GtkWidget::size_allocate and GcalView::get_by_uuid to make it build
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos cdd27073e3 year-view: add initial ::draw impl
So far support RTL drawing.
Missing:
+ Overflow indicators (this could be buttons)
+ selection borders drawing
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos 78d92c394e year-view: add orientation factor
This would be helpful in order to provide proper RTL drawing to the view
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos 362dc68898 subscriber: rework ::remove and ::modified vfuncs
Since we have now access to the hash keeping the children of thw widget
there's no more need of calling GcalView::get_by_uuid
2015-01-05 10:33:23 -05:00
Erick Pérez Castellanos 8e899465e9 subscriber: added protected internal structure
The idea here is to make GcalSubscriber handle the container
responsibilities of the view, and the view will handle only the drawing
an allocating, this would allow us to remove GcalView interface and
merge its methods in GcalSubscriber.
2015-01-05 10:33:23 -05:00
Erick Pérez Castellanos 098d8a79d8 window: fix search_button/search_bar binding
Remove unneeded placeholder declaration
This code was accidentally touched on commit:
2970729324
This is kind-of a revert of that patch
2015-01-05 10:33:23 -05:00
Erick Pérez Castellanos 11324a6712 month-view: fix all-day events end-date
All-day events has an end-date one day after they really end.
2014-12-26 16:53:05 -05:00
Erick Pérez Castellanos 443a502b1f month-view: fix ::forall impl leaking 2014-12-26 12:02:15 -05:00
Erick Pérez Castellanos b66d4eb21c misc: fix memory leak 2014-12-26 12:01:53 -05:00
Erick Pérez Castellanos e6a929f3fd view: remove ::mark_current_unit
New event action will open edit-dialog directly so this method is not needed
2014-12-25 20:24:36 -05:00
Erick Pérez Castellanos 2261ea6909 month-view: fix memory leak
Remove unneeded debug instructions
2014-12-25 18:47:54 -05:00
Erick Pérez Castellanos 43dd2e207f utils: fix memory leak 2014-12-25 18:47:32 -05:00