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
Georges Basile Stavracas Neto
33d101062d
time-selector: implemented time selection with spin buttons
2014-12-18 09:55:09 -05:00
Georges Basile Stavracas Neto
cb7d45e184
manager: change signal name to ::'source-activated'
2014-12-16 13:05:11 -02:00
Georges Basile Stavracas Neto
75143200cb
manager: change signal name to ::'source-activated'
2014-12-16 13:01:29 -02:00
Georges Basile Stavracas Neto
09262e875e
window: remove faulty g_free()
...
Freeing uid variant results in bloody segfaults.
2014-12-16 12:47:37 -02:00
Georges Basile Stavracas Neto
37241a189b
window: implement ability to show/hide calendars
...
This is a major feature of the preview roadmap.
Right now, it only shows/hides calendars, and the ability to create, delete, et al, them is to be designed.
2014-12-16 12:35:47 -02:00
Georges Basile Stavracas Neto
31fa4e8e06
edit-dialog: update sources when their readonly state changes
...
This fixes the annoying all-insensitive-menu bug.
2014-12-16 11:19:56 -02:00
Georges Basile Stavracas Neto
96e0055fcb
manager: added missing signal signature
2014-12-16 11:16:10 -02:00
Georges Basile Stavracas Neto
ffac8223c1
window: added calendar button
2014-12-16 11:14:46 -02:00
Georges Basile Stavracas Neto
0cefc9f5ea
manager: implemented GcalManager::source-added and GcalManager::source-removed signals
2014-12-16 11:12:48 -02:00
Georges Basile Stavracas Neto
e53e514a7e
manager: stub functions for enabling/disabling sources
2014-12-15 15:34:58 -02:00
Georges Basile Stavracas Neto
f8c269ac74
edit-dialog: fixed wrong menu fill
...
Menu is created each time the dialog is shown, now. This avoids the syncronization between sources loading time.
Also, icon color is now 16px.
2014-12-08 15:34:04 -02:00
Georges Basile Stavracas Neto
20575b928f
edit-dialog: update source color on selection
2014-12-05 17:22:03 -02:00
Georges Basile Stavracas Neto
dd17c45167
edit-dialog: enable selecting source at event creation
...
When creating a new event, the user should be able to select in which source it'll be created in. This commit implements that.
Moving an event to another source, however, is not allowed at the moment.
2014-12-05 16:27:01 -02:00
Georges Basile Stavracas Neto
9364cab3de
edit-dialog: change source image to button
...
This is a stub button for the sources. Implementation of it will come soon.
2014-12-05 14:37:26 -02:00
Georges Basile Stavracas Neto
e9eca7c86d
window: reset title after search
2014-12-05 10:39:28 -02:00
Georges Basile Stavracas Neto
8f4d6be1bf
edit-dialog: hide Delete button when creating a new event
...
Because we don't want to delete an event that is not created
2014-12-05 00:41:34 -02:00
Georges Basile Stavracas Neto
23a7cda500
month-view: fixed small position calc issue
...
When using double for *part* of the calculation of Y position, the result is completely wrong.
This commit fixes it.
2014-12-05 00:04:42 -02:00
Georges Basile Stavracas Neto
7cd4fd032b
window: fixed key handler code
...
When in GcalWindow::new-event-mode, the key handler cannot redirect input to search bar. This commit fixes it.
2014-12-04 20:57:31 -02:00
Georges Basile Stavracas Neto
0856345ace
theme: use different style classes for navbar labels
2014-12-04 17:10:55 -05:00
Georges Basile Stavracas Neto
2970729324
window: move arrow buttons to headerbar
...
This is part of the ongoing efforts to fit Calendar with the latest designs.
2014-12-04 17:10:54 -05:00
Georges Basile Stavracas Neto
3fdadffe08
new-event: initialize values before using them
...
Only to politely ask the compiler to stop complaining about them.
2014-12-04 17:10:54 -05:00
Georges Basile Stavracas Neto
aa445c33d1
window: remove unneeded set of menu image
...
This is already done in the builder file.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
8b955cae19
window: move to builder's ui file
...
This is way better than programmatically building the entire window interface.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
c87c0e2ad0
window: use GDK_EVENT_PROPAGATE to propagate keys
...
This is good for code legibility and to be safe from any radical API update.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
c0a16ac06a
window: simplified key handler code
...
Instead of treating every case, use the builtin gtk_search_bar_handle_event function.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
97cfe4fd79
window: correctly hide search bar when not in search mode
...
Search bar shows an annoying border when it should be hidden. This commit fixes it.
Fixes bug #739913 .
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
4052040be3
edit-dialog: removed unused grid
...
This grid has only one child and is completely unnecessary.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
89b6c57edd
week-view: another integer rounding issue
...
Hopefully, this is the last one on the integer rounding series.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
36cd11955f
year-view: fix integer rounding issues
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
f3e83f2a7a
week-view: fixed some more integer round issues
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto
2e8b677d6a
app: implemented sync action
...
Useful when the local calendar differs from the remote calendar (i.e. you added an event at Google Calendar).
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
d25a6e4cbf
views: queue a redraw when the current date changes
...
This partially fixes bug #739550 . The warning message is still being emmited.
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
bb2554b0d4
week-view: fix scrollbar size
...
Calendar should respect scrollbar natural size. Lapo pointed out that this is pretty inconsistent and should be fixed.
Fixes bug #737854 .
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
ff6440d206
window: mark headerbar search string as translatable
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
3e0fa5763c
month-view: fix rendering issues, smooth resizing
...
All about integer rounding.
Fixes bug #739294 .
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto
cba6da043d
edit-dialog: removed unused code
...
Also, updates the edit dialog to the newer backend design, removing all traces of the old cached data type.
This patch is mostly functional, but it introduces some crashes after the component is updated.
2014-12-04 17:10:51 -05:00
Georges Basile Stavracas Neto
8e878f0a06
edit-dialog: show Save label for editable events
...
Fixes bug #739309 .
2014-12-04 17:10:49 -05:00
Georges Basile Stavracas Neto
56e69f7c88
edit-dialog: implements GCAL_RESPONSE_SAVE_EVENT
...
This patch mainly implements GCAL_RESPONSE_SAVE_EVENT. It updates the event correctly, no matter in which source it is.
Signed-off-by: Georges Basile Stavracas Neto <georges.stavracas@gmail.com >
2014-12-04 17:10:49 -05:00
Georges Basile Stavracas Neto
b8a4812f3b
edit-dialog: don't keep an internal cached version of the summary
...
This is part of the Edit dialog's redesign.
Fixes bug #739268 .
2014-12-04 17:10:48 -05:00
Georges Basile Stavracas Neto
37be39e9d0
edit-dialog: implement composite widget of edit dialog
...
Also, this patch implements a major design review of the dialog.
2014-12-04 17:10:45 -05:00
Georges Basile Stavracas Neto
19d380e80f
project: replace GdkColor by GdkRGBA
...
Fixes bug #738553
2014-12-04 17:10:45 -05:00
Georges Basile Stavracas Neto
7dc4ae6a84
nav-bar: implemented today button
...
Implements today button between previous and forward buttons.
Fix bug #703316 .
2014-12-04 17:10:40 -05:00
Georges Basile Stavracas Neto
a5c65af0fb
project: remove libgd dependency
...
This patch fixes bug #737729 , removing all libgd dependencies.
Every GdHeaderButton was replaced by GtkButton, and GdNotification was replaced by a custom-styled GtkFrame inside a GtkRevealer.
2014-12-04 17:10:40 -05:00
Georges Basile Stavracas Neto
4287cc72ef
month-view: fixed wrong day selection
2014-12-04 17:10:38 -05:00
Georges Basile Stavracas Neto
1e1052c65c
window: use GtkPopovers
...
GNOME Calendar uses a custom GtkOverlay-based widget, witch is not necessary anymore. It should be replaced by GtkPopover.
2014-12-04 17:10:37 -05:00
Georges Basile Stavracas Neto
a9e8eb311a
window: fix timeout resource handler
...
Update the handler after the save_geometry(...) method is called
2014-12-04 17:10:37 -05:00
Georges Basile Stavracas Neto
4f241168de
window: fix timeout resource handler
...
Update the handler after the save_geometry(...) method is called
2014-12-04 17:10:37 -05:00