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
Erick Pérez Castellanos
947e23758c
misc: whitespace, comments and strings fixed
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
f3bd29ba9c
app: use new search ECalDataModel
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
7fa696c137
manager: added ECalDataModel for search alone
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
934b1c4be0
window: more code moved into ui file
2014-12-04 17:10:54 -05:00
Erick Pérez Castellanos
f8f8991510
window: move more code into ui file
...
Probably I can load the GMenuModel of the popover directly but I don't
know exactly how, and I've asked already and you can set bindings using
builder's ui file, just like before I don't know how at this time.
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
Erick Pérez Castellanos
3887951323
month-view: more double to int rounding issues
...
Style fixes
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
260237bc85
month-view: style cleaning
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
5cbdf28387
month-view: added current day highlight
...
Improved ::draw vfunc code. Use .current class to handle active day styling
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
Erick Pérez Castellanos
298a0e56c2
Revert: month-view: fix cell rendering glitch
...
This was not the proper fix.
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos
4425149647
month-view: optimized, organized ::draw vfunc code
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
184854e318
week-view: take into account GNOME time format
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703321
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
8c5eaa66c8
views: fixed docs style
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
c77076c7d6
week-view: added current day highlight
...
Cleaned code a little bit. Removed unnecessary instructions. Added style
class to handle current day.
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
746864e7bc
event-widget: fix icons scaling, made 16x always.
...
Previously the scaling was made to the size of the text layout which
caused a blurriness of the icon. Making its size a multiple of 16 made
the icon preserve its sharpness.
2014-12-04 17:10:51 -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
Erick Pérez Castellanos
3b9f2aa128
window: set timezone of date when moving to today
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
c526329450
misc: code style and comments removed
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
251e849548
year-view: launch edit dialog on event activate
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos
2cecaf9337
week-view: add first_weekday setting to view
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703317
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
a67635bb05
month-view: add first_weekday settings to view
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703317
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
ff73499ab0
utils: retrieve first_weekday from locale
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703317
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
8531fedde9
month-view: optimize set :date property
...
There's no need to calculate first day of month date twice.
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
4d7237b46e
window: shorten stack transition duration
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
c9d347cceb
misc: updates to code style and docs
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
461057727b
window: sync search-view hiding with stack transition
...
The previous approach was causing an error on the animation code of
GtkStack because the search-view's GdkWindow was banishing before
the end of the animation.
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
e68ca325b4
views: use GcalEventWidget API for locked sate
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
4c98b16c76
event-widget: render locked state of the calendar
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
b3cab47334
build: remove unused c/css code
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos
f4eaf2217d
search: added initial search implementation
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos
516a611055
window: handle key pressed properly
...
Before the code handling key presses was an unreadable mess. Now we use
gtk_accelerator_get_default_mod_mask as stated on Gtk documentation.
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos
2e82b098b3
build: replace Gtk deprecated calls
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos
80b3e5d3c8
window: fix memory leak
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos
d301a07f4b
week-view: increase ref count on parent window
...
The call to GtkWidget::unrealize was destroying GtkStack window because
of the reference increasing on GcalWeekView when setting the
parent_window as its own.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739554
2014-12-04 17:10:49 -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