Commit Graph
230 Commits
Author SHA1 Message Date
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
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 648ae18162 window: use GcalView::get_children_by_uuid 2015-01-20 14:48:46 -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 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 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 e49418a26d year-view: add navigator drawing 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
Georges Basile Stavracas Neto 3cf37cc3d2 window: remove unused prototype
The code was implemented at gcal-utils, so no need to have it here.
2015-01-13 13:25:11 -02:00
Georges Basile Stavracas Neto 6094cb7b69 window: fix missing icons from calendar management menu 2015-01-13 13:23:10 -02: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
Georges Basile Stavracas Neto 7f8e8eaa1f window: show search view when animation finish, hide when animation starts
This prevents a warning, and makes the behavior a little bit more polished.
2015-01-09 12:53:42 -02:00
Georges Basile Stavracas Neto 352ebd40c3 window: code cleanup
Removes an unused function and an unused variable.
2015-01-09 09:16:43 -05:00
Georges Basile Stavracas Neto 0b4efe3bed window: don't change the header title when changed
As strongly recommended by the design team, it's redundant to have the 'Results for 'xyz'' title.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto d65f01c3f2 window: show the search popover when the entry is mapped
This avois the flickering of the popover trying to reach an unmaped widget.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto 8933b1485a search-view: reset states when performs the search
Also, reset search when starting a new search from window.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto 469999cd96 window: remove list button from search bar
We won't be using is for now, and it causes a lot of confusion. Also, the behavior is quite broken.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto f0c126b0ee window: fix header display 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto a00bc04f71 window: properly show/hide search bar
Instead of relaying on hacks, properly toggle visibility based on the GtkRevealer::child-revealed property.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto 7f24744455 window: don't hide search bar 2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto c9047c102f search-view: handle search independently
Instead of letting GcalWindow handle the searches,
make GcalSearchView handle it so the widget has
more control over the general appearance of the
popover.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto fb7b738ff7 search-view: make it a GtkPopover descendant
This huge patch makes GcalSearchView a GtkPopover
descendant. Also, it poorly adapts GcalWindow to
make it work with it.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto d72729356d search-view: respect system time format 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto e34a587f16 window: properly hear GcalSearchView::'event-activated' signal
Data passed by search view's signal is different
from the other views, so special case this into
a new function.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 38213ae5d2 window: reset query when entering search mode
An empty query should show all events.
2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto 397e1da5de window: make 'Calendar' the default title
Shows it for empty search results.
2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto c4724fc875 window: hear GcalSearchView::'event-activated' signal again 2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto baad1c352b Revert "window: hear GcalSearchView signals"
This reverts commit 3c5d833f0bc33213757479289cc0daabfa4667c5.
2015-01-09 09:16:37 -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
Georges Basile Stavracas Neto bcbdb82baa window: show/hide buttons according to search mode 2015-01-09 08:38:16 -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 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 9994377c9f subscriber-view: gained ::get_child_by_uuid vfunc
Started migrating methods from GcalView to GcalSubscriber
2015-01-05 10:33:26 -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 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