Georges Basile Stavracas Neto
1dcf0d1f24
project: Unify headers
2018-01-27 22:35:20 -02:00
Georges Basile Stavracas Neto
499db7bfd4
weather: Rework weather management
...
This commit brings a few changes that I was too lazy to
split in different commits:
* Remove a few useless arguments in the GcalWeatherService API
* Move the weather management code from GcalWindow to GcalWeatherSettings
* A few style changes
2018-01-27 20:36:29 -02:00
Adam Dingle
67efbd0f6c
week-view: display "12 PM" correctly
...
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/235
2018-01-10 10:10:46 +01:00
Georges Basile Stavracas Neto
9f1885d807
weather-service: use GPtrArray for public API
...
Using GLists and GSLists is a bad practice. These data
structures are too much inneficient and GPtrArray has
the advantage of having a free function pointer, so we
can hide the underlying free function from the consumers
of this API.
This also gets rid of another allocation cycle in Month
view.
2017-12-16 23:12:06 -02:00
Georges Basile Stavracas Neto
5c1bf907fa
views: move :event-activated signal to GcalView
...
We don't really need to copy this signal to every GcalView
implementation. It's just wasting code.
2017-12-16 21:44:09 -02:00
Florian Brosch
eceb826e77
Whitespace changes
2017-12-11 22:13:16 -02:00
Florian Brosch
d51d1ea2cd
view: Move weather API to interface GcalView
...
This allows us to get rid of similar code.
2017-12-11 22:09:59 -02:00
Florian Brosch
1f3173823b
weather: Integrate weather into our main windows.
2017-12-11 21:29:31 -02:00
Florian Brosch
3d292038b2
week-view: Fix outdated ownership comment.
...
A comment states GcalWeekView.manager is a week reference. It is
not. It probably should be.
2017-12-11 21:23:20 -02:00
Georges Basile Stavracas Neto
b9310a84a3
widgets: ensure types on class_init
...
This will avoid GtkBuilder crashing because it couldn't
find the correct type for a given widget.
2017-09-20 19:14:15 -03:00
Georges Basile Stavracas Neto
e60c8593dd
window: propagate manager using properties
2017-09-07 14:35:44 -03:00
Georges Basile Stavracas Neto
53a8278953
views: correctly hide events according to the mod type
...
When deleting events with recurrence, we want to hide the event
widgets according to the modification type. So that selecting
e.g. subsequent in the modification type dialog hides the event,
and the subsequent ones, truly reflecting the operation that will
happen.
Currently, however, the views don't do that, and only hide the
event that was asked to be deleted.
Fix that by passing the object modification type, and adapting the
views to take that into account.
2017-09-07 00:02:40 -03:00
Alex Benishek
311195857f
Move from GPL 2 to GPL 3
...
Right now the project contains a mix of GPL 2 and GPL 3 code.
This commit moves all of the perviously GPL 2 code to GPL 3
https://bugzilla.gnome.org/show_bug.cgi?id=752649
2017-08-10 07:16:36 -03:00
Georges Basile Stavracas Neto
dde6b5bf05
week-view: improve scroll timeout logic
...
Instead of keeping an active timeout source spamming the
console, just connect to the right signal and wait for the
week view to be visible again.
2017-05-16 17:48:25 -03:00
Mohammed Sadiq
178e6a269a
week-view: fix signal emission on scrolled_window
...
This was causing segfault in week-view
https://bugzilla.gnome.org/show_bug.cgi?id=782269
2017-05-06 12:51:25 -03:00
Georges Basile Stavracas Neto
aa5b963412
view: rework active-date
...
The current implementation is deficient in many ways, the
worst one being the it relying on GObject semi-synchronous
property emission.
This issue was exposed by the Week view code, where the active
date was updated, but delayed to reach the Week header and some
events were being added ~before~ the active date changed.
With this work, I was also able to figure out a bunch of code
that relied on this (i.e. luck) to work.
2017-04-12 20:51:23 -03:00
Georges Basile Stavracas Neto
b93fe11da8
view: cleanup unused code
2017-03-29 16:25:47 -03:00
Georges Basile Stavracas Neto
8b718ee0a0
week-view, week-header: instrument more functions
2017-03-17 16:38:28 -03:00
Georges Basile Stavracas Neto
002271ebb1
views: get rid of current date
...
We can easily track the current date with GDateTime API,
so we don't actually need the current date field.
2017-03-17 15:49:12 -03:00
Georges Basile Stavracas Neto
1dadd34409
week-view: instrument possibly crasher function
2017-03-17 15:06:02 -03:00
Georges Basile Stavracas Neto
339b49e7d5
views: cleanup code
2017-03-17 11:13:19 -03:00
Georges Basile Stavracas Neto
d5825bbd35
project: override log domains
...
This way, we can have more useful debug spils.
2017-03-17 10:14:25 -03:00
Georges Basile Stavracas Neto
180621cd91
week-view: also check for realized
...
Be more strict about the checks, and avoid crashes.
2017-03-14 15:53:09 -03:00
Joyjit Choudhury
06cdeb61ed
week-view: set the first weekday for week-header & week-grid
...
In this commit, the first weekday is set for week-header & week-grid.
The issue is, the first weekday is being set only for week-view,
resulting in incorrect display of weekdays in the week-header.
To fix this, the first weekday for week-header & week-grid is set
along with that of week-view.
https://bugzilla.gnome.org/show_bug.cgi?id=779346
2017-03-02 07:20:31 -03:00
Georges Basile Stavracas Neto
d63e007a7a
week-grid, week-view: improve hour sidebar rendering
...
The hour strings are too soft and can barely be read. Fix
that by setting a stronger color.
https://bugzilla.gnome.org/show_bug.cgi?id=777420
2017-02-09 09:21:28 -02:00
Georges Basile Stavracas Neto
096327e046
week-view: set the header's and grid's manager as well
2017-01-17 10:50:32 -02:00
Georges Basile Stavracas Neto
ffaf7153d7
week-header: implement event creation
2016-12-14 17:00:11 -02:00
Georges Basile Stavracas Neto
e8906c9e04
week-view: smoothly scroll the grid when moving to today
2016-12-13 16:29:07 -02:00
Georges Basile Stavracas Neto
f134da5a1d
week-view: avoid segfault when scrolling when unmapped
2016-12-13 16:29:07 -02:00
Georges Basile Stavracas Neto
343283e37a
week-grid: implement event creation
2016-12-13 16:29:07 -02:00
Georges Basile Stavracas Neto
bcfe13bcbc
week-view: adapt view and widgets to handle RTL
2016-12-08 20:33:34 -02:00
Georges Basile Stavracas Neto
7e53c433b7
week-view: center grid on date change
2016-12-08 19:14:03 -02:00
Georges Basile Stavracas Neto
7a6ca3d711
week-view: simplify code
2016-12-08 18:34:06 -02:00
Georges Basile Stavracas Neto
36f716ebf4
week-view: reimplement editing events
2016-12-08 18:23:25 -02:00
Georges Basile Stavracas Neto
74ac2d83ee
week-view: fix active and current date handling
...
The active date is the visible date, while the current date
is today. We shouldn't confuse those two.
2016-12-08 14:18:37 -02:00
Georges Basile Stavracas Neto
c93d634454
week-view: add events to the grid when needed
2016-12-07 17:02:47 -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
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
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
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
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
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