Commit Graph
700 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto f937489dcd search-view: keep a cached count of results 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto a3c12fe092 search-view: make it build the UI from search-view file 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 842be669cd search-view: add a border below search results 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 160e66cc83 search-view: align date & time box with event widget 2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 41d685d5e3 search-view: wrap date & time labels in a box
Makes the upper grid more flexible.
2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 0bdff182f8 search-view: wrap the list around a frame 2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 5fc4c25002 search-view: remove end date from grid 2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 4195e294ab search-view: show date & time data from events
Needs lotf of work
2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 35db162529 search-view: cache locale data
Time mask will need format_24h info
2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 5a32c3794c search-view: sort events by date & name
Date has highest priority than name when sorting.

Past events goes last, future events goes first.
2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto c8b143e399 search-view: properly remove widgets by their data 2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto 13ee94248d search-view: emit GcalView::'event-activated' signal when needed 2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto 586de0f2e2 window: hear GcalSearchView signals
Previous commit made GcalSearchView a GcalView implementation.
2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto 2f0413e1bc search-view: stub implementation of GcalView interface 2015-01-09 08:36:13 -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
Georges Basile Stavracas Neto 96aa73164f window: change refresh times
Make them as 15min for active windows and 1h for innactive windows.
2015-01-05 22:35:23 -02: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
Georges Basile Stavracas Neto 3cde8ad4f4 window: simplify refresh sources timeout code 2015-01-03 18:41:19 -02:00
Georges Basile Stavracas Neto 8aefe71316 window: syncronize sources from time to time
Currently, it is hardcoded 5min for active windows, and 20min for innactive windows. These values may change later.
2015-01-03 17:17:09 -02:00
Georges Basile Stavracas Neto b635ac7112 time-selector: fix wrong time order for RTL languages
Fix bug #741921.
2015-01-03 16:00:37 -02:00
Georges Basile Stavracas Neto c10ba6b228 time-selector: don't access dconf multiple times for the same key
Instead of accessing 3 times the same key, use the cached version and save up some time.
2015-01-03 15:31:05 -02:00
Georges Basile Stavracas Neto fa014972bc time-selector: make it GtkMenuButton descendant
With it, it is up to Gtk+ to handle the popover.
2015-01-03 15:11:20 -02:00
Georges Basile Stavracas Neto ecb4cb24d6 manager: fix refreshing condition
GcalManager shouldn't refresh when it's not enabled or when refreshing is not supported, not strictly both of them.
2015-01-03 13:11:00 -02:00
Georges Basile Stavracas Neto 6915522ecc manager: syncronize sources at startup
As proposed by the design team, Calendar should update the sources at startup time.
2015-01-03 13:08:47 -02:00
Georges Basile Stavracas Neto 29d5af6bca window: perform the search even for empty strings
This will keep consistency, since empty search is performed for the first time, then it's ignored.
2015-01-03 12:42:41 -02:00
Georges Basile Stavracas Neto f83c5865a3 window: readd binding between search button and search mode
This should've been lost somewhere.
2015-01-03 11:24:57 -02:00