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
Georges Basile Stavracas Neto
70d62e802d
date-selector: fix code style format
...
Better legibility is always welcomed.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto
4d9ed837cb
date-selector: remove debug message
...
It's not needed to know the mask.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto
5ed4832f9a
date-selector: use atoi instead of strtol
...
This prevents the pseudo-bug where strtol thinks the date is in octal because of the leading zeros.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto
3257f47b46
date-selector: fix code style
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto
fddac33fad
date-selector: factor out duplicated code
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
13a3fb9638
date-selector: don't set locale on ::init
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
5cec73ab43
date-selector: completely drop the format_24h flag
...
Dates do not depend on the time format, so it shouldn't be cached here.
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
9b5670a416
date-selector: add gcal_date_selector_use_24h_format function
...
Will be used later on in order to avoid retrieving this value multiple times with GSettings.
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
07e052ef9c
edit-dialog: requires date format for construct
...
Neccessary to pass it to GcalDateSelector & GcalTimeSelector without having to search the value again.
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
0ad7dd54ab
date-selector: remove wrongly placed g_object_refs
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
0db303abe2
edit-dialog: fix sizing issue
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto
bfc6e37595
date-selector: show Day, Month and Year labels according to it's position
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
71913eed41
date-selector: fire MODIFIED signal
...
Also, some code cleanup.
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
62849f128d
date-selector: fix focus-out propagation issue
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
f0e0a6c015
date-selector: update date on GtkEntry::activate signal
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
55b4002e6b
date-selector: set date on GtkEntry::focus-out-event
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
26df8ec8d8
edit-dialog: link date & time selectors
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
077b1a7d01
date-selector: clamp day & month values before validating it
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto
107772131b
date-selector: clear code, improved set_date func
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
d820abcb3e
date-selector: allow calendar to select the date
...
For testing reasons, we don't fire MODIFIED signal yet.
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
86624ce8fd
date-selector: validate entries' input
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
69db4acf4c
date-selector: limit number of digits of entries
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
55c0681763
date-selector: setup date entries' text
...
They still are useless.
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
b386be95d6
date-selector: ajust entries' names
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
8521e5b0f1
date-selector: shows parsed date at the date's label
...
Also, GcalDateSelector do it's best to find out day, month and year relative positions at the date mask.
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto
a518c4e046
date-selector: set calendar's date
2014-12-23 12:01:38 -05:00
Georges Basile Stavracas Neto
714fb4ec6b
date-selector: set max width for date entries
...
Fixes those giant horrible entries that were being cutted off of the dialog.
2014-12-23 12:01:38 -05:00
Georges Basile Stavracas Neto
63e473476b
edit-dialog: fixed wrong setting of date selector sensitivity
2014-12-23 12:01:38 -05:00
Georges Basile Stavracas Neto
2be9c125dd
date-selector: load popover with date selector
2014-12-23 12:01:38 -05:00
Georges Basile Stavracas Neto
40683e5e10
date-selector: initial implementetation
...
No functionality is ready, only project settings and class type.
2014-12-23 12:01:38 -05:00
Georges Basile Stavracas Neto
a2a2a9c8d5
time-selector: removed unneeded code
2014-12-18 09:55:11 -05:00
Georges Basile Stavracas Neto
fa7bc69192
edit-dialog: properly set time selector's sensivity
...
Instead of simply not settings them at all, it is now set according to the writable and all day values.
2014-12-18 09:55:11 -05:00
Georges Basile Stavracas Neto
448594325e
edit-dialog: remove useless code
...
I'm not really sure of this one, but it seems very correct. At least, things work now.
2014-12-18 09:55:11 -05:00
Georges Basile Stavracas Neto
7f1277062e
time-selector: send GcalTimeSelector::modified signal when date changes
2014-12-18 09:55:11 -05:00
Georges Basile Stavracas Neto
1c76779143
time-selector: update label when hour or minute changes
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
78140e7b79
time-selector: always show the popover at the bottom
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
ff15bd3a05
time-selector: format time label when the day period changes
...
Also, factor out date formatting code.
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
ee62cdab92
time-selector: format hour according to the 12/24h setting
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
5c570e0140
time-selector: select AM by default
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
de04c78cc0
time-selector: limit to 11 hours when using 12h format
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
37a38b6acb
time-select: hide period selector when not 12h format
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
c6ada8c356
time-selector: ref builder objects before destroying it
...
Fixes the annoying bug
2014-12-18 09:55:10 -05:00
Georges Basile Stavracas Neto
9372b3ff3f
time-selector: removed unused var
2014-12-18 09:55:09 -05:00