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
Erick Pérez Castellanos
5a1f12ad00
event-widget: make more CSS compliant
...
There are some other changes:
1. Renamed widget class to "event-widget" to avoid collisions
2. Added contrasting event title coloring
3. Use gtk_render functions
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
5397a1e4ba
edit-dialog: fix wrongly updating ECalComponent
...
GcalEditDialog::clear_data was clearing the summary on the internal
ECalComponent instance. Blocking signal handler call allow to clear the
widget without clearing the component.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739307
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
de90213fd7
month-view: fix cell rendering glitch
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739294
2014-12-04 17:10:48 -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
Erick Pérez Castellanos
74c9f009d8
edit-dialog: show events description, minor tweaks
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
eb436f57db
window: update setting when the view changes
...
Note: Eventually I ended reverting the changes I have made here a few
commits back.
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
1c98dd5c04
window: fix update labels on view change
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739039
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
e873503744
app: added search-view to window views enum
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
852c5eda9f
style: remove duplicated '_subscriber' prefix
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
9ffabe03ba
week-view: fix unref of not added widget
...
This works in conjunction with code implemented in GcalSubscriber where
the ownership of the event widget passes into the container, so the
container is free to delete it in case it does not fit into the range
represented by the view.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
48bcb57363
week-view: rename internal method
...
Note: The body of the method was added by mistake on the previous
commit. This commit make the code build again.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
dc21b70760
week-view: add subscriber range update
...
Remove unneeded GcalView deprecated method.
Hook event widget activation
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
dd2a0da883
misc: fix styling issues and gcc warnings
...
Update code style
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
d7d8dd94ee
window: update date on view on binding creation
...
Ensure the views has events widgets in it for the first time the user
clicks on it.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
4bdc696b54
window: update_view when the property changes
...
Update the value of the internal holder of the property
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
f988eac12f
view iface: remove more unused methods
...
GcalView::draw_event overlapped a bit with GcalView::will_add_event, so
the same reasons for removing one stand for the other.
GcalView::clear was a hack for the composited GcalDayView which has
gone, and was a bad experiment.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
5422066bb0
view iface: another round at cleaning
...
Remove unused methods laying there for a long time now.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
8e066850a3
window: added New Event item to menu button
...
Updated label on app-menu action.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos
defb99d8a8
window: replace New Event with Today button
...
As Lapo rightfully explain, providing a button there for creating a new
event is way to prominently and might divert users of the intended click
on a cell behavior to create an event.
New event will be also accessible from the hamburger icon on the left of
the header-bar and Ctrl-N key shortcut.
Also as Lapo suggestion Today button fall better on the header bar than
between the navigation buttons.
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos
28be6bc581
window: remove FIXME comment
...
edit_dialog_closed already hides the widget. Reminder is not needed anymore
2014-12-04 17:10:46 -05:00