Georges Basile Stavracas Neto
7b28416361
month-view: make lines stronger
...
The current lines are very light and people
with visual issues may not find them easy.
To fix that, make these lines slightly stronger,
enough to make them clearly visible.
https://bugzilla.gnome.org/show_bug.cgi?id=758679
2016-01-12 17:00:07 -02:00
Georges Basile Stavracas Neto
df9af0e8f9
month-view: remove leftover
...
This was supposed to be removed, since there's no
use in setting a state and immediately restore the
context.
2016-01-04 22:24:10 -02:00
Georges Basile Stavracas Neto
6de0376ab6
month-view: fix warnings
...
We were calling gtk_style_context_get() with a state
different than that of the style_context, which yiels
warnings.
Fix that by saving, setting the flag and restoring the
context.
2016-01-04 16:50:47 -02:00
Georges Basile Stavracas Neto
21f3ed1ef1
project: more css names fixups
2016-01-04 16:50:46 -02:00
Georges Basile Stavracas Neto
8b1054f638
month-view: set a css name
...
This will add a CSS Node in the style context,
and keep Calendar in sync with latest gtk+
upstream changes.
2016-01-04 16:27:40 -02:00
Georges Basile Stavracas Neto
b6bec55185
month-view: don't show popover when clicking an invalid cell
...
Because we're using a simple (gint) cast to round y value of
the clicked point, a negative y was rounding to a valid cell
position and showing the popover even when the user clicked
on the blank cells before the actual month view.
Fix that by properly checking if y is negative.
https://bugzilla.gnome.org/show_bug.cgi?id=755910
2015-10-27 12:00:49 -02:00
Georges Basile Stavracas Neto
6afa9b98f6
month-view: fix mirroring macro
...
It was using a local variable, which is a bad idea. It
only worked because we were using it in the context of
that local variable, but it was luck.
2015-10-27 11:57:51 -02:00
Georges Basile Stavracas Neto
0c1df74735
month-view: add keyboard navigation
...
This big patch implements keyboard navigation for
Month view and the main window. Also, refactor
some of it's drawing code.
2015-07-15 20:40:55 -03:00
Georges Basile Stavracas Neto
5381dc77a4
month-view: update focused cell on mouse events
...
Also, quit selection mode when Escape is pressed
2015-06-04 13:02:47 -03:00
Georges Basile Stavracas Neto
e4b5da7f50
month-view: implement keyboard navigation
...
For this to be made, some significant changes on the inners
of GcalMonthView had to be done. Later on, I'll do a complete
rewrite of it, deprecating the use of 'sw' and 'k'.
2015-06-04 12:48:50 -03:00
Piotr Drąg
bf2eb4771c
Fix minor typos in a comment
2015-06-03 21:10:59 +02:00
Georges Basile Stavracas Neto
bbcf8fddad
month-view: initial keyboard focus highlight
2015-05-17 09:55:22 -03:00
Erick Pérez Castellanos
96c8120d28
month-view: optimized event-widget parts removal
2015-02-17 08:06:19 -05:00
Erick Pérez Castellanos
6ddb9da442
month-view: fix range selection
...
We add one day in order to have the all-day event span the selected
days. If the range was selected from large day to a shorter one this was
chopping one day of the range. Adding the extra day after the range has
been sorted.
2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos
48f1529e15
month-view: draw overflow indicators
...
This was wrongly removed by me before, I should have changed
gtk_widget_queue_draw_area() to gtk_widget_queue_draw() instead of
removing it completely.
2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos
a4212d16f2
month-view: add widgets margin to its allocation
2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos
cff527f642
month-view: fix some of the event-widget tagging
2015-02-13 09:12:15 -05:00
Erick Pérez Castellanos
d5fe2d8cb6
month-view: remove unneeded state flag
...
::start_mark_cell flags has the same function of ::clicked_cell and some
more, so ::clicked_cell plays no role.
2015-01-30 12:41:17 -05:00
Erick Pérez Castellanos
94a6e8bf7e
month-view: restore ::days_delay calculation.
...
This was wrongly lost on commit fa2f300362
2015-01-29 10:54:27 -05:00
Erick Pérez Castellanos
79ea0817b0
month-view: fix button release behaviour
...
When starting from invalid cell button_release vfunc didnt check
properly the value of the first clicked cell, this led to non-sense
dates on new-event popover.
2015-01-29 09:56:31 -05:00
Erick Pérez Castellanos
08b37bf8ea
views: remove unused code
2015-01-29 00:01:10 -05:00
Erick Pérez Castellanos
88e95081c5
month-view: highlight current date properly
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703323
2015-01-28 15:54:16 -05:00
Erick Pérez Castellanos
25545e5bf6
month-view: match UI style of year-view popover
...
year-view: rename popover class to something more generic
2015-01-28 00:16:53 -05:00
Erick Pérez Castellanos
fa2f300362
app: move view subscription to GcalWindow
...
Initialize :manager property first and :active-date later. Allocate
::active_date instance on instance init vfunc.
2015-01-27 22:37:44 -05:00
Erick Pérez Castellanos
e67fc01279
app: use "Add Event…" instead of "Add new event…"
2015-01-27 17:49:44 -05:00
Erick Pérez Castellanos
5c5d5f62f8
month-view: fixed draw clip bug
...
Updated Gtk+ version requirement to 3.15.4 where the bug is fixed.
2015-01-22 15:55:15 -05:00
Erick Pérez Castellanos
139f96e8bf
month-view: remove comments reminders
...
These issues were fixed, so the reminders have to go
2015-01-22 15:36:06 -05:00
Erick Pérez Castellanos
f06586df89
month-view: mark event-widgets edges
2015-01-22 14:26:28 -05:00
Erick Pérez Castellanos
2ff6bb460e
gcal-view: remove unused funcs
2015-01-20 15:03:12 -05:00
Erick Pérez Castellanos
b03a906eee
month-view: impl GcalView::get_children_by_uuid
2015-01-20 14:48:27 -05:00
Erick Pérez Castellanos
bdacaeaa59
month-view: add view headers of its own
2015-01-20 13:47:38 -05:00
Piotr Drąg
93fa37ce11
Replace three dots with a proper ellipsis
2015-01-20 19:22:35 +01:00
Erick Pérez Castellanos
0f13cb4a11
month-view: optimize days_delay update
...
No need of memory allocation and releasing which is costly.
2015-01-20 13:12:01 -05:00
Erick Pérez Castellanos
0b2367200b
copyright: update year
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos
d15c4a5c1b
view iface: remove manager property
...
There's no reason at all why manager should be a property inside the
views. It won't benefit of bindings or anything else inherent to GObject
property system.
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos
5a3e9577f2
view: fix gdk relayout warning
2015-01-08 13:04:49 -05:00
Erick Pérez Castellanos
13a2aad87b
month-view: impl ::clear_state vfunc
...
Implementing GcalSubscrberView::clear_state allow month-view to use
GcalSubscriberView::setup_child when handling overflow widgets
2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos
e0b26dd6f7
style: misc fixes
2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos
22eda85632
month-view: use subscriber-view internals
2015-01-05 10:33:27 -05:00
Erick Pérez Castellanos
a5fe4c5ef0
subscriber-view: use ::setup_child protected func
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos
663f1c6fa4
build: remove not-used code
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos
9994377c9f
subscriber-view: gained ::get_child_by_uuid vfunc
...
Started migrating methods from GcalView to GcalSubscriber
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos
0e5c197c2f
subscriber: renamed to GcalSubscriberView
...
This is more of a semantic change than anything else. GcalSubscriber
will gradually take on GcalView interface and that's why I'm adding the
View suffix.
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos
11324a6712
month-view: fix all-day events end-date
...
All-day events has an end-date one day after they really end.
2014-12-26 16:53:05 -05:00
Erick Pérez Castellanos
443a502b1f
month-view: fix ::forall impl leaking
2014-12-26 12:02:15 -05:00
Erick Pérez Castellanos
b66d4eb21c
misc: fix memory leak
2014-12-26 12:01:53 -05:00
Erick Pérez Castellanos
e6a929f3fd
view: remove ::mark_current_unit
...
New event action will open edit-dialog directly so this method is not needed
2014-12-25 20:24:36 -05:00
Erick Pérez Castellanos
2261ea6909
month-view: fix memory leak
...
Remove unneeded debug instructions
2014-12-25 18:47:54 -05:00
Erick Pérez Castellanos
a7aed0987a
month-view: fix draw and allocation on 6 rows months
...
Sometimes months expand 6 rows completely instead of the regular
5. March, 2015 is an example of it. Allocation of widgets, drawing
of indicators, placement of the overflow popover was wrong.
2014-12-24 13:33:29 -05:00
Georges Basile Stavracas Neto
fb57d5998a
month-view: better handle overflow background draw
2014-12-23 21:35:05 -02:00