Commit Graph
100 Commits
Author SHA1 Message Date
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
Georges Basile Stavracas Neto ea4fdbc05b build: don't try to generate a Makefile from a non-existant Makefile.am 2015-01-21 10:19:29 -02:00
Georges Basile Stavracas Neto 9cc0dda7d4 window: change the transition to crossfade
There is no linear relation of day, month and year views.

As such, it is better to not try to suggest it.
2015-01-14 15:00:38 -02:00
Georges Basile Stavracas Neto 17e5327cf4 manager: prevent a segfault when opening edit dialog with no sources connected 2015-01-13 17:10:39 -02:00
Georges Basile Stavracas Neto 5423280398 edit-dialog: use UI file to connect signals
Fixes bug #739313.
2015-01-13 17:02:07 -02:00
Georges Basile Stavracas Neto c799acf482 edit-dialog: calculate all_day before using it to set the dates
It was using the all_day var before actually using it.

This caused an issue where the start time showed as the current time.
2015-01-13 16:18:40 -02:00
Georges Basile Stavracas Neto b1daf9eeb4 edit-dialog: remove unused field
The old times when calendar used GtkTreeIter has passed, and it no longer needs the active iter field.
2015-01-13 13:29:17 -02: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 6de2bdd292 edit-dialog: fix missing icons from source selection menu 2015-01-13 13:23:42 -02:00
Georges Basile Stavracas Neto 6094cb7b69 window: fix missing icons from calendar management menu 2015-01-13 13:23:10 -02:00
Georges Basile Stavracas Neto b44f14bdf2 utils: added code to show the GtkPopover menu's icons
This will be useful for the next commits, which will introduce a fix for the hidden icons at calendar menus.
2015-01-13 13:21:48 -02: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 ee09608a58 search-view: remove non-working connection
All the source update stuff is done internally by ECalDataModel, and we don't need to do it again.
2015-01-09 12:40:16 -02:00
Georges Basile Stavracas Neto bc17a9b38b search-view: right-align icons 2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto 54aa3933fc search-view: show icons for event attributes
For now, only the alarm and lock icons are showed.
2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto 3ed508b8c0 search-view: order by date, instead of name 2015-01-09 09:16:43 -05: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 0002e7640f search-view: update the view when a valid search occurs 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 a458a7fb52 search-view: coding style fixes
This commit introduces no new code, as it only
change function ordering and some minor style
fixes.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto 37566a435e search-view: run the search when the sources changes 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 d5d1d37411 search-view: style it to better fit the HIG stardard 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto e88af3ab5f search-view: show properly a thin line before every result
This time, do not rely on CSS hacks.
2015-01-09 09:16:41 -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 d628c4b9fc search-label: show a friendly label when search entry is empty 2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto ff54f7eb67 search-view: don't try to access NULL data
This should be better debugged, as it may be a thread syncronization problem.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto ddb93d8d72 search-view: subscribe on demand
To avoid filling up the list with all events, subscribe only when the first search happens.
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 35fa63028a search-view: does not show the popover on startup
That would try to set relative to an unmapped widget, which causes awful things.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto b5c80e1849 search-view: better width for labels
The labels are consuming too much space. This commit fix it.
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 6c7500c5b0 search-view: remove GcalSearchView::date_mask fiels
Completely replaced by "%x" formatting string on GDateTime.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto a9de8dd3c1 search-view: remove GcalSearchView::time_mask field
It is unused and should be removed to avoid further headaches.
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 8742b47dc6 search-view: comment almost every function possible 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto cd4fb40281 search-view: major code cleanup 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 95b35964cd search-view: fixed double border at the end of the list
Also, fixes a small details that the results list is
always expanded.
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 a0e5a8564e search-view: properly connect 'row-activated' signal 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 3cb6c0af25 search-view: emit GcalSearchView::'event-activated' signal
Needed so that GcalWindow can go to the selected event's date.
2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 90ad7f2cde search-view: remove obsolete prototype 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 38311c27b5 search-view: ignore case when sorting events 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 0c08577504 search-view: show 'All day' for all day events 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto a0b0cf1e46 search-view: make it looks more like the proposed design
The current implementation uses 2 hash tables, one
mapping (uuid : event data) and the other one mapping
(row : event data).

Events are added and removed from both of these tables,
but only GcalSearchView::events is responsible for the
destruction proccess.
2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 0c233fe3b3 search-view: define detroy functions for hash table 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto fb23939aa7 search-view: add hash of events
Maps uuid -> event data
2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto f44179da43 search-view: remove obsolete comment, some style fixing 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 26c27e880c search-view: change list row ordering
First step to reach the design proposed[1].

[1] https://dl.dropboxusercontent.com/u/5031519/calendar-search-result.png
2015-01-09 09:16:38 -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 900b55dce5 search-view: highlight date 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 1055709d40 search-view: don't cast to GcalView when emit signal
Also, remove the last traces of GcalView.
2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto 36e51ac981 search-view: remove GcalView interface, add GcalSearchView::'search-activated' signal 2015-01-09 09:16:37 -05:00
Georges Basile Stavracas Neto baad1c352b Revert "window: hear GcalSearchView signals"
This reverts commit 3c5d833f0bc33213757479289cc0daabfa4667c5.
2015-01-09 09:16:37 -05:00
Georges Basile Stavracas Neto a12e3cb59d search-view: add a timeout for displaying the 'no results' page
When the user types, *all* entries are removed, then readded.

Because of it, the 'No results' page keeps flickering. This patch fixes this.
2015-01-09 08:38:16 -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 ab1374d8cd search-view: implemented no results page 2015-01-09 08:36:16 -05:00
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 9d90cc8c84 search-view: fixed minor visual issues 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 3936f46253 search-view: add CSS class to UI file 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 4f40ac67af search-view: make it dependant of Gtk+ 3.10 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto d5df158805 search-view: add GtkBuilder UI files 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 69a1af76d9 search-view: correct background color 2015-01-09 08:36:14 -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
Georges Basile Stavracas Neto 322ae85167 appdata: update search view image
Search view was heavily under development, and the UI changed a lot. This image better shows the current status.
2015-01-06 18:48:28 -02:00
Georges Basile Stavracas Neto de0171c654 appdata: added some images and update URIs in xml
Images were taken with default GNOME theme and has more better
resolution.

Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=742214
2015-01-06 23:24:10 +03: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
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 b43e08be8b theme: improve .overflow:hover class to better fit the mockups 2015-01-03 12:21:06 -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
Georges Basile Stavracas Neto 0446fa09e6 edit-dialog: removed 'entry' style class
It was causing horrible visual glitches when text overflows.
2015-01-03 11:03:40 -02:00
Georges Basile Stavracas Neto 8ffb7fcd61 configure: updated link to wiki.gnome.org 2014-12-24 10:47:01 -02:00
Georges Basile Stavracas Neto fb57d5998a month-view: better handle overflow background draw 2014-12-23 21:35:05 -02:00
Georges Basile Stavracas Neto 70fa71492e date-selector: added docs 2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto e2dc2591e8 date-selector: remove unneeded initialization
GObject initializes private fields to 0, we don't have to redo this work.
2014-12-23 12:01:42 -05:00