Georges Basile Stavracas Neto
c66029d49f
window: fix week view range
2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto
1cf46abfed
week-view: don't set the subscriber range twice
2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto
12da2c44e7
week-view: improve drawing of the week grid
2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto
16a2d64874
week-header: simplify background drawing code
...
By moving the drawing area to a separate place, we're
able to avoid having to manually calculate the sidebar
width.
Also, because we can, the drawing code was simplified a
little bit by moving the bottom border to CSS.
2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto
154a01f4c1
week-view, week-grid: various fixed
...
This commit is a rebase, compile-warning remover and a
misbehaviour fixer too.
2016-12-01 23:48:53 -02:00
pandusonu2
a94a15ebba
window: add week-view shortcut
...
Add the shortcut to switch between views to the week-view
2016-12-01 23:48:53 -02:00
pandusonu2
b51f8c3ca6
week-grid: realize the week-grid
...
Activate the week-grid by writing the necessary realize, unrealize, map and unmap functions
2016-12-01 23:48:53 -02:00
pandusonu2
e16426db05
week-header: correct padding and drawing
...
Correct the padding for the expand button, to set some space between the button and the border.
Remove the extra code which results in drawing of an additional line.
2016-12-01 23:48:53 -02:00
pandusonu2
97ed5267e2
week-view: fix the sync between sidebar width
...
Fix the width of the sidebar sync between the week view and week header.
2016-12-01 23:48:53 -02:00
pandusonu2
4fde7e369d
week-header: remove unnecessary code and correct access of public functions
...
Remove code of functions which are no longer being used. Also corrected a few public functions and made them private as they won't be used.
2016-12-01 23:48:53 -02:00
pandusonu2
680f220fb2
week-view: draw the hours labels
...
Draw the hour labels in the sidebar of the week grid.
2016-12-01 23:48:53 -02:00
pandusonu2
4b1ff14b6a
week-header: work around with GtkOverlay error
...
Using the height request function to fix the error with height allocation of GtkOverlay widget.
2016-12-01 23:48:53 -02:00
pandusonu2
7927d3b11f
week-header: add support for expanded and collapsed mode
...
Add the expand button and the functions require to expand and collapse the header.
2016-12-01 23:48:53 -02:00
pandusonu2
d6ef05b31d
week-header: adjust theming to match the mockups
...
Set correct font weight, size and draw lines where required.
2016-12-01 23:48:53 -02:00
pandusonu2
4544b39b47
week-header: sort events before placing them
...
Sort the events based on multiday/single day, start date and duration.
2016-12-01 23:48:53 -02:00
pandusonu2
175d22e9ef
week-header: reposition present events on changing active date.
...
When an event lasts beyond the active week, the event placement doesn't change on changing the week.
We removed all the present events and added them to the list of events to be added to reposition them.
2016-12-01 23:48:53 -02:00
pandusonu2
665f91701b
week-header: set correct padding for the grid
...
Set the margin top, left, and right for the grid, according to the mockups.
2016-12-01 23:48:53 -02:00
pandusonu2
62d8fdc057
week-header: manage event display, position and removal
...
Manage the displaying, positioning and removal of events in the week-header.
2016-12-01 23:48:53 -02:00
pandusonu2
0a53f1440e
week-header: set line width and height as in mockup
...
Set the divider line width and height to match the mockup.
2016-12-01 23:48:53 -02:00
Georges Basile Stavracas Neto
a43df17b08
week-header: turn into a GtkGrid
...
If the header is a GtkScrolledWindow, all the content
(including the top labels and week names) are scrolled.
This is a wrong behavior, since only the events should
be scrollable.
Fix that by making GcalWeekHeader a GtkGrid, and adding
the scrolled window in the correct position.
2016-12-01 23:48:53 -02:00
pandusonu2
61f25b78db
week-header: override the size_allocate()
...
Override the size_allocate() widget function to set proper alignment for the grid.
2016-12-01 23:48:53 -02:00
pandusonu2
188d7742b4
week-view: display events in header
...
Displaying events in the week-header based on duration of the event.
2016-12-01 23:48:53 -02:00
pandusonu2
16a1c9b55b
week-header: corrected the date of start of the week
...
The active date is taken as the start of the week
Added a function to get the correct date at start of the week.
2016-12-01 23:48:53 -02:00
pandusonu2
2e82f0a2b8
week-header: use GDateTime in place of icaltimetype
...
Switch to using GDateTime variables in place of icaltimetype variables wherever found.
2016-12-01 23:48:53 -02:00
pandusonu2
4dec80af4f
week-header: made the update_headers()
...
Shifted the code to update labels from the draw() to a separate new function update_headers()
2016-12-01 23:48:53 -02:00
pandusonu2
1122b24216
week-header: modify the draw() to match mockup
...
Made changes in the draw() to match the mockups.
2016-12-01 23:48:53 -02:00
pandusonu2
9ff7d79d7d
week-header: use stack-allocated structure
...
Using stack allocated structure for certain variable in the draw(). Also disabling the week-grid for now.
2016-12-01 23:48:53 -02:00
pandusonu2
bffaa3bd76
week-view: add the EcalDataModelSubscriber functions
...
Added the init, add, modified and removed functions of week-view for data model subscriber.
2016-12-01 23:48:53 -02:00
pandusonu2
16fac7c3a0
week-view: make it a template class
...
Made changes to make the week-view into a template class.
2016-12-01 23:48:53 -02:00
pandusonu2
383cd818e9
week-view: remove unused code
...
Cleaning up the week-view.c file. Removing the previously written code which won't be required.
2016-12-01 23:48:52 -02:00
pandusonu2
c658d030b8
week-grid: created the basic skeleton of week-grid
...
Created the .h, .c and .ui file of week grid. Also made changes in the Makefile.am for it to get built.
2016-12-01 23:48:52 -02:00
pandusonu2
69cade3d77
week-header: created the basic skeleton of the week-header
...
Created the .h, .c and .ui file of week header. Also made changes in the Makefile.am for it to get built.
2016-12-01 23:48:52 -02:00
pandusonu2
3656c781da
build: move week view to views/ subfolder
...
Moved the gcal-week-view.{h,c} into views folder. Made changes in the src/Makefile.am and configure.ac to include the views/gcal-week-view.h.
2016-12-01 23:48:52 -02:00
pandusonu2
d31f20ed72
window: updated update_active_date() for week-view
...
Added the code required to update_active_date for week-view.
2016-12-01 23:48:52 -02:00
pandusonu2
028eb7b994
window: initialize and include week-view in the main window
...
We add the week-view to the views_stack.
Initialize the GtkWidget week_view in the gcal-window.c
2016-12-01 23:48:52 -02:00
Mohammed Sadiq
0514d2b3b8
source-dialog: escape string in markup
...
Calendar name can potentially contain invalid markup texts.
So it have to be escaped to be safe.
https://bugzilla.gnome.org/show_bug.cgi?id=774986
2016-11-30 23:14:13 -02:00
Mohammed Sadiq
6cf5c0317d
edit-dialog: check if event is new the right way
...
Checking if a new event is already having a source succeeds
for some reason (which should actually fail).
But thankfully we already have an event_is_new gboolean flag.
Check the status of that flag and add or update the event.
https://bugzilla.gnome.org/show_bug.cgi?id=771566
2016-11-22 09:54:28 -02:00
Piotr Drąg
4cc24c8c4c
Use Unicode in translatable strings
...
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772263
2016-11-11 17:21:19 +01:00
Isaque Galdino
7c01508620
year-view: Not in sync with month-view
...
When user changes the date in month-view, there is no sync with
year-view. The other way around works just fine, when user selects a
date in year-view, month-view goes to the same date.
Both views share an "active-date", but year-view doesn't obey that
property in some cases. Month-view also doesn't warn when changing that
property.
This commit fixes both views to keep them in sync, updating and using
"active-date" correctly.
https://bugzilla.gnome.org/show_bug.cgi?id=750478
2016-10-05 23:59:33 -03:00
Victor Toso
c0ed70f9df
e-cal-data-model: fix critical due invalid time range
...
libecal-CRITICAL **: e_cal_recur_generate_instances_sync: assertion
'icaltime_compare (interval_start, interval_end) < 0' failed
https://bugzilla.gnome.org/show_bug.cgi?id=763047
2016-10-03 19:25:50 -03:00
Victor Toso
7dfadeb56a
window: Fix leak of event_creation_data struct
...
And also be sure to set its pointer to NULL by using g_clear_pointer()
8,830 (24 direct, 8,806 indirect) bytes in 1 blocks are
definitely lost in loss record 17,999 of 18,078
at 0x4C2FA50: calloc (vg_replace_malloc.c:711)
by 0x99CE981: g_malloc0 (gmem.c:124)
by 0x99CEC64: g_malloc0_n (gmem.c:355)
by 0x44CD43: show_new_event_widget (gcal-window.c:731)
by 0x976FC57: ffi_call_unix64 (in /usr/lib64/libffi.so.6.0.2)
by 0x976F6B9: ffi_call (in /usr/lib64/libffi.so.6.0.2)
by 0x952703B: g_cclosure_marshal_generic (gclosure.c:1490)
by 0x95258B9: g_closure_invoke (gclosure.c:804)
by 0x9541D25: signal_emit_unlocked_R (gsignal.c:3635)
by 0x954105C: g_signal_emit_valist (gsignal.c:3391)
by 0x954170B: g_signal_emit_by_name (gsignal.c:3487)
by 0x4324D8: show_popover_for_position (gcal-month-view.c:305)
https://bugzilla.gnome.org/show_bug.cgi?id=772379
2016-10-03 19:25:50 -03:00
Georges Basile Stavracas Neto
6967c520c9
manager: make all calendars offline-sync
...
This prevents downloading the same calendar (which can be huge)
over and over, saving us some bandwidth.
https://bugzilla.gnome.org/show_bug.cgi?id=764623
2016-10-03 14:10:45 -03:00
Georges Basile Stavracas Neto
3d3dddf815
manager: avoid deep nesting
...
Use an early return rather than deep nesting to improve the
code legibility.
https://bugzilla.gnome.org/show_bug.cgi?id=764623
2016-10-03 14:10:35 -03:00
Georges Basile Stavracas Neto
7d3cd7f727
month-view: queue redraw on scroll
...
If we scroll to a month that has no event widget to
display, the redraw is not dispatched and looks like
Calendar is broken.
Fix that by always queuing a redraw.
2016-10-02 08:19:19 -03:00
Georges Basile Stavracas Neto
23cc46a01a
event: fix comparison if event is today
...
Since the end times are open-ended, we have to consider the very second
before the actual end time.
https://bugzilla.gnome.org/show_bug.cgi?id=772104
2016-10-01 20:43:37 -03:00
Georges Basile Stavracas Neto
159da57e46
quick-add-popover: always set seconds to 0
...
https://bugzilla.gnome.org/show_bug.cgi?id=772104
2016-10-01 20:35:48 -03:00
Georges Basile Stavracas Neto
e8dbe48baa
quick-add-popover: focus "Create" button after selecting an agenda
...
So that the keyboard flow is smooth and clean.
https://bugzilla.gnome.org/show_bug.cgi?id=770714
2016-10-01 20:15:14 -03:00
Georges Basile Stavracas Neto
152f6ff8b7
month-view: use G_DECLARE_FINAL_TYPE
...
Instead of using the old GLib boilerplate code, use the new
utilities and simplify the code a little bit. This also allows
us to remove the private field of month view.
2016-10-01 19:56:01 -03:00
Georges Basile Stavracas Neto
a2edfd48b6
subscriber-view: add an autoptr cleanup function
...
So that we can use G_DECLARE_{FINAL,DERIVABLE}_TYPE() utility macros.
2016-10-01 19:54:54 -03:00
djb
0843f9e93e
application: stop force disabling dark theme
...
https://bugzilla.gnome.org/show_bug.cgi?id=758057
2016-10-01 19:21:55 -03:00