Georges Basile Stavracas Neto
2a11959bdd
month-cell: show +X in overflow label
...
Instead of "Other X Events".
2017-11-11 18:15:18 -02:00
Georges Basile Stavracas Neto
b5ad149261
month-cell: improve calculation of header box height
...
Should also consider the top and bottom margins.
2017-11-11 18:15:02 -02:00
Georges Basile Stavracas Neto
432e7ab7ea
month-cell: move day label to the start of the cell
2017-11-11 18:08:22 -02:00
Georges Basile Stavracas Neto
4dd4c2410f
month-cell: Move day label to top, split from overflow
2017-11-11 17:48:59 -02:00
Georges Basile Stavracas Neto
af90070cf4
doap: remove Isaque and Erick as maintainers
...
They don't maintain it anymore.
2017-11-11 17:35:01 -02:00
Georges Basile Stavracas Neto
1968151114
project: add libdazzle dependency
2017-11-11 17:33:49 -02:00
Georges Basile Stavracas Neto
caffb60065
utils: add autoptr support for ESource
2017-11-08 23:26:25 -02:00
Georges Basile Stavracas Neto
5977eeefc8
month-cell: only update label when date changes
...
If the date is the same, we don't need to update the label.
This might cause an infinite resize loop.
2017-10-31 01:11:26 -02:00
Georges Basile Stavracas Neto
907e55ccbe
month-view: remove reminescent dnd code
...
Month view does not manage Drag n' Drop anymore, but
this code was left behind by accident.
2017-10-31 01:00:15 -02:00
Georges Basile Stavracas Neto
1e54c9db12
month-view: only idle add month cell update when necessary
2017-10-31 00:34:45 -02:00
Georges Basile Stavracas Neto
523609f2c0
month-view: always update month cells in idle
...
This way, we can schedule the multiple resizing queueing
operations to after the size-allocate phase is over.
2017-10-29 19:05:42 -02:00
Georges Basile Stavracas Neto
e04b7f0fd3
event-widget: lazily relayout main grid
2017-10-29 19:05:34 -02:00
Georges Basile Stavracas Neto
2357f5d766
month-cell: draw out-of-month cell day labels differently
2017-10-07 11:41:00 -03:00
Georges Basile Stavracas Neto
3411dbb13d
month-view: don't outsmart GTK resizing machinery
...
If we need to resize, then let's just accept we need to
resize the month view (event if that's an expensive
operation) and do the resizing.
This fixed many minor annoyances like invisible overflow
labels, on-the-fly text direction changes, etc.
2017-10-07 11:40:48 -03:00
Georges Basile Stavracas Neto
a5e733f705
month-cell: don't enbold overflow label
...
Only the day label should be made bold.
2017-10-07 11:27:56 -03:00
Georges Basile Stavracas Neto
ff9c663c8c
month-view: only update selection if there's a start date
...
We can potentially not have an end date set, but there's always
a start date. If there isn't, it means the user clicked from
outside of month view, or at an invalid cell, in which cases we
shouldn't display the quick add popover anyway.
2017-10-07 11:20:23 -03:00
Georges Basile Stavracas Neto
a0c224a0d5
edit-dialog: alarm rows are not activatable
...
Otherwise, they show that annoying hover effect
that is ultimately useless, since clicking on the
row won't do anything.
2017-10-07 11:08:51 -03:00
Georges Basile Stavracas Neto
df40a4d8bf
month-view: don't hide month view when dragging from popover
2017-10-07 11:01:32 -03:00
Georges Basile Stavracas Neto
37fb5e8492
month-view: fix event positioning on RTL locales
...
We have to pick the mirrored column index on RTL locales.
2017-10-06 21:23:05 -03:00
Georges Basile Stavracas Neto
f83471c609
window: trivial code refactoring
2017-10-06 20:32:00 -03:00
Georges Basile Stavracas Neto
999160495d
log: accept NULL log domains
2017-10-06 20:32:00 -03:00
Georges Basile Stavracas Neto
e59910f0e9
month-view: rewrite was a template widget
2017-10-06 20:32:00 -03: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
8a2376ae55
event: refactor gcal_event_is_multiday
2017-09-14 14:05:53 -03:00
Georges Basile Stavracas Neto
349839ee49
event-widget: make font relative to initial font size
2017-09-14 13:50:43 -03:00
Georges Basile Stavracas Neto
4262f2fb25
project: update meson file code style
2017-09-14 13:31:19 -03:00
Georges Basile Stavracas Neto
f486569e19
week-grid: improve positioning code
2017-09-14 13:31:04 -03:00
Georges Basile Stavracas Neto
925e17e16c
event-widget: fix dragging events
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
d099f0f243
event-widget: use semibold for hour label
...
We want to emphasize the hour, but not so much.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
af52f8bac4
event-widget: adjust spacing between labels
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
25e5e9ecc1
view: don't add time headers in event lists
...
Nowadays, GcalEventWidget draws the time by itself. This
makes adding a time header pretty much useless.
Fix this double information by removing the time headers
from event listboxs.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
766de8c025
event-widget: remove alarm icon
...
This tiny icon wasn't really adding any value, but was
cluttering an already information-intensive view.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
2a923939d9
event-widget: draw horizontal timed events differently
...
This makes more clear which events are timed, and which events
are all day. They are also super cute!
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
7dd42d4186
event-widget: add .timed style class to timed events
...
Another CSS tool for us to play with.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
f42d5d0598
event-widget: add .vertical and .horizontal style classes
...
Depending on the GtkOrientation passed to it, just like the regular
behavior of GTK widgets. This way, we can have a finer control over
CSS selectors.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
713200773f
project: add example of commit message
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
a853376629
event-widget: turn into a GtkBin subclass
...
The current GcalEventWidget implementation is a direct
GtkWidget subclass, which means we have to take care of
all the implementation details such as raising GdkWindows
and managing the drawing all by ourselves.
The event widget, however, can be easily described through
a GtkBuilder file. This would simplify the implementation
and makes us maintain less code.
Fix that by making GcalEventWidget a GtkBin subclass.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
b3cfbe3d31
event-widget: update style
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
f3f2ba271b
event-widget: update code style
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
d2d4e7a9b6
event-widget: remove unused prototypes
...
These are not implemented anymore, and just add more noise
to the header file.
2017-09-14 13:26:28 -03:00
Georges Basile Stavracas Neto
f027c4c1a9
Bump for 3.27.0 unstable release cycle
2017-09-11 23:39:38 -03:00
Georges Basile Stavracas Neto
290d4bb7a6
project: style fixups to meson
2017-09-09 10:09:02 -03:00
Georges Basile Stavracas Neto
ea548d1584
project: update TODO
...
We just merged GcalSubscriberView and GcalMonthView
2017-09-09 10:08:33 -03:00
Georges Basile Stavracas Neto
ffe67a1304
project: add more tasks to TODO
2017-09-08 23:15:50 -03:00
Georges Basile Stavracas Neto
8f7230cf5f
window: remove stray debug message
2017-09-08 22:59:47 -03:00
Georges Basile Stavracas Neto
5a0a3fcd9c
event: fix various reference ownership issues
2017-09-08 22:25:18 -03:00
Georges Basile Stavracas Neto
242db0436a
main: remove double ;
2017-09-08 22:23:44 -03:00
Georges Basile Stavracas Neto
7f14e9f561
project: rewrite HACKING guides
...
Now I don't have to pass all this tribal knowledge every
single time.
2017-09-08 21:34:52 -03:00
Georges Basile Stavracas Neto
9c50ae9b9c
main: simplify code even more
2017-09-08 21:04:02 -03:00
Georges Basile Stavracas Neto
27a44c3092
project: don't install private library
...
Instead, bring back building all the objects into
calendar itself, and only use the private library
internally.
2017-09-08 21:04:02 -03:00
Georges Basile Stavracas Neto
68c2b7d3ac
project: remove GcalSubscriberView
...
The subscriber view was an unecessary layer and only
added more complication than it actually helped.
This commit merges GcalSubscriberView and GcalMonthView
into a single class.
2017-09-07 16:07:04 -03:00
Georges Basile Stavracas Neto
6d19e30973
project: libgcal library
2017-09-07 16:06:21 -03:00
Georges Basile Stavracas Neto
7c587e896e
edit-dialog: reduce header circle icon
2017-09-07 15:01:50 -03:00
Georges Basile Stavracas Neto
8927e10ae0
edit-dialog: wrap in a scrolled window
...
As we're adding more and more widgets in the Edit dialog,
it is now growing too tall to fit normal screens. Thus, wrap
it in a scrolled window, and let the content height cover
75% of the main window at most.
2017-09-07 14:58:14 -03:00
Georges Basile Stavracas Neto
a0e64ca3c8
edit-dialog: cleanup ui file
2017-09-07 14:38:46 -03:00
Georges Basile Stavracas Neto
e68dc3aebf
project: move GcalView to views/
...
It makes sense to put the interface together with
the other classes.
2017-09-07 14:37:37 -03:00
Georges Basile Stavracas Neto
e60c8593dd
window: propagate manager using properties
2017-09-07 14:35:44 -03:00
Georges Basile Stavracas Neto
36a39e6c5c
window: simplify constructor
...
We don't need to pass information that can easily be
retrieved by the GSettings instance from GcalManager.
2017-09-07 13:21:09 -03:00
Georges Basile Stavracas Neto
a0b6bdb04a
application: move GSettings object to GcalManager
...
The first outcome of the test suite. This separation does
not make much sense now, and GcalManager is basically a
holder for all data types.
This commit moves the GSettings to the GcalManager instance
of the application. Of course, in the future, the plan is to
split GcalManager nicely.
2017-09-07 12:52:49 -03:00
Georges Basile Stavracas Neto
1d29fd4944
project: add some more tasks
2017-09-07 12:38:49 -03:00
Georges Basile Stavracas Neto
c7845d1878
tests: add initial test suite
2017-09-07 12:37:46 -03:00
Georges Basile Stavracas Neto
98d8dbc39a
project: update configure and meson requirement
2017-09-07 12:37:21 -03:00
Georges Basile Stavracas Neto
110c6be7c8
application: style fixes
2017-09-07 12:08:11 -03:00
Georges Basile Stavracas Neto
647e243bd5
project: don't compile source files twice
...
We can just link with the private library, and use the
main file to make it an executable. This drops the compile
time by 43% here.
2017-09-07 12:07:22 -03:00
Georges Basile Stavracas Neto
9c6c8770ec
project: improve configure output
2017-09-07 11:43:37 -03:00
Georges Basile Stavracas Neto
c7f7506d52
project: move evolution files to contrib/
...
It's better for the project organization if we nicely
organize external projects' files in contrib/, and our
own files in src/.
2017-09-07 11:41:05 -03:00
Georges Basile Stavracas Neto
ebcf3f38df
shell-search-provider: remove private field
...
This is a private class, and doesn't need private fields.
2017-09-07 02:37:39 -03:00
Georges Basile Stavracas Neto
edc1d63f26
project: more meson improvements
2017-09-07 02:24:09 -03:00
Georges Basile Stavracas Neto
de780276f9
manager: user the new code style
2017-09-07 02:23:56 -03:00
Georges Basile Stavracas Neto
00b9c1c7a7
project: style improvements in meson files
2017-09-07 02:15:37 -03:00
Georges Basile Stavracas Neto
941f3ee77d
event: cache events
...
This speeds up Calendar a little bit, and more importantly,
allows me to sleep well at night now.
2017-09-07 02:09:53 -03:00
Georges Basile Stavracas Neto
2f52962f01
utils: remove debug spew
2017-09-07 01:52:21 -03:00
Georges Basile Stavracas Neto
c43d74d16a
project: update TODO.md
2017-09-07 00:04:27 -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
Georges Basile Stavracas Neto
1a496eea17
subscriber-view: update comments
2017-09-07 00:02:40 -03:00
Georges Basile Stavracas Neto
3b6b536663
recurrence: add GcalRecurrenceModType
...
Instead of reusing the ECalObjModType and mixing the
prefixes all around, do this small cleanup and add a
gcal-prefixed enum.
2017-09-07 00:02:40 -03:00
Georges Basile Stavracas Neto
edce0ab076
recurrence: use refcount instead of copy/free
2017-09-06 22:15:13 -03:00
Georges Basile Stavracas Neto
0cb6f20aea
view: update style
2017-09-06 21:53:17 -03:00
Georges Basile Stavracas Neto
8cbb5c1a4d
project: update TODO, README and add CONTRIBUTING
...
Let's make the lives of newcomers easier :)
2017-09-06 21:49:00 -03:00
Georges Basile Stavracas Neto
6004123ba2
edit-dialog: fix time widgets sensitive when all day
2017-08-24 07:16:15 +09:00
Georges Basile Stavracas Neto
3eec69c559
edit-dialog: update style
...
Calendar matured its code style over time and
edit dialog kept the old style.
2017-08-24 07:07:36 +09:00
Georges Basile Stavracas Neto
316aeb9c67
quick-add-popover: properly place translator comment
2017-08-22 21:21:19 -03:00
Georges Basile Stavracas Neto
13d6f85d1f
quick-add-popover: put day placeholder in the translatable string
...
As fairly pointed out, we should never split sentences [1].
[1] https://wiki.gnome.org/TranslationProject/DevGuidelines/Never%20split%20sentences
https://bugzilla.gnome.org/show_bug.cgi?id=786022
2017-08-22 20:51:16 -03:00
Georges Basile Stavracas Neto
282fb5fc33
month-view: don't draw dnd highlight on empty cells
...
https://bugzilla.gnome.org/show_bug.cgi?id=786102
2017-08-14 23:42:49 -03:00
Georges Basile Stavracas Neto
2a67a3d935
project: update .gitignore
2017-08-14 23:32:48 -03:00
Georges Basile Stavracas Neto
247e786ff0
project: update HACKING and TODO
2017-08-14 23:32:15 -03:00
Georges Basile Stavracas Neto
dab25a0465
Bump 3.25.90 release
2017-08-11 14:11:55 -03:00
Georges Basile Stavracas Neto
f9cb8823a9
build: generate 'dist' and 'distcheck' targets
2017-08-11 14:09:25 -03:00
Georges Basile Stavracas Neto
d11ed85a7f
month-view: grey out invalid days
...
It should be very clear that days outside the current
month are actually not valid. The current drawing
algorithm does not differentiate that, thought, and
draws everything at the same color.
Fix that by greying out the days outside the current
month.
https://bugzilla.gnome.org/show_bug.cgi?id=763771
2017-07-30 16:03:39 +01:00
Georges Basile Stavracas Neto
72a3bb4168
quick-add-popover, event-widget: add translator comments
...
https://bugzilla.gnome.org/show_bug.cgi?id=784645
2017-07-10 22:57:00 -03:00
Georges Basile Stavracas Neto
60067433c3
Bump 3.25.3 release
2017-06-19 17:11:30 -03:00
Georges Basile Stavracas Neto
3f9731bf89
manager: fix style
2017-06-10 08:30:27 -03:00
Georges Basile Stavracas Neto
d294ea46a5
week-header: fix drawing stray lines when managing events
2017-05-24 17:27:07 -03:00
Georges Basile Stavracas Neto
1ef8fbcb34
edit-dialog: unconditionally update event dialog
...
When setting an event, we might modify the event in such a way that
the edit dialog can be broken if it doesn't update.
Fix that by unconditionally updating the event dialog when setting
an event.
2017-05-22 22:55:10 -03:00
Georges Basile Stavracas Neto
a647033847
project: remove unused variables
2017-05-22 21:57:24 -03:00
Georges Basile Stavracas Neto
4e262f6d5d
event: remove unused code
2017-05-17 14:47:03 -03:00
Georges Basile Stavracas Neto
f2ce665240
flatpak: allow communicating with org.gnome.ControlCenter
2017-05-17 09:05:05 -03:00
Georges Basile Stavracas Neto
05af332937
source-dialog: use DBus to spawn Control Center
...
In a Flatpak'd world, we cannot rely on the fact that
gnome-control-center binary will be installed at the
app's sandbox. But since it's a core app, we can rely
on the fact that it's available outside the sandbox.
To make it work, use DBus rather than raw spawn to
open control center.
2017-05-17 09:03:24 -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
Georges Basile Stavracas Neto
f25a7b0dd8
application: only override log handler with --debug
2017-05-16 15:01:11 -03:00