Erick Pérez Castellanos
d53a3570bf
event-widget: added compare function
...
This compare function is made to sort using the same two methods used
before but together, giving priority to the longer events.
The idea is sort event properly on year-view's sidebar.
This function will probably change later.
2015-01-20 13:11:59 -05:00
Erick Pérez Castellanos
0770a12ea9
year-view: add event handling to navigator
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos
e49418a26d
year-view: add navigator drawing
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos
19c8ae9d0e
year-view: provide GcalView implementation
2015-01-20 13:11:58 -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
24b8c553dc
year-view: initial commit
...
Dropped almost everything. Started using an ui file and using a GtkBox
as a parent.
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos
eee9d11633
window: move search-view into ui file
...
This new impl of search-view will allow a lot of cleaning on GcalWindow impl
2015-01-09 15:01:02 -05:00
Erick Pérez Castellanos
ea21ffdd70
search-view: internal manager is not a property
...
The idea here it to include SearchView as a widget in GcalWindow
Builder UI file.
2015-01-09 15:01:01 -05:00
Erick Pérez Castellanos
79f4000271
year-view: fix reminders of the merge
2015-01-09 09:22:03 -05:00
Erick Pérez Castellanos
029e34a205
year-view: remove debug statement
2015-01-09 09:16:44 -05:00
Erick Pérez Castellanos
372c6fba3d
search-view: fix memory leak
...
Use internal icaltimetype from ECalComponentDateTime. Mark
GcalSearchView::event-activated signal parameter as constant.
2015-01-09 09:16:44 -05:00
Erick Pérez Castellanos
4832f5e79e
providers: remove from screen on app::finalize
...
This fixes the quirks of decreasing the refcount after attaching the
providers to the default screen.
2015-01-09 09:16:44 -05:00
Erick Pérez Castellanos
c68a499ad7
Revert "window: readd binding between search button and search mode"
...
This reverts commit f83c5865a3 .
Conflicts:
src/gcal-window.c
2015-01-09 09:16:37 -05:00
Erick Pérez Castellanos
bdaf2dbc25
subscriber: files renaming before class renaming
2015-01-09 09:02:02 -05:00
Erick Pérez Castellanos
e57d9ca55e
year-view: initial GtkWidget::size_allocate impl
...
This impl uses internals structures from GcalSubscriber
2015-01-09 08:51:18 -05:00
Erick Pérez Castellanos
5f29241c64
year-view: add initial ::draw impl
...
So far support RTL drawing.
Missing:
+ Overflow indicators (this could be buttons)
+ selection borders drawing
2015-01-09 08:46:32 -05:00
Erick Pérez Castellanos
61e1101952
year-view: add orientation factor
...
This would be helpful in order to provide proper RTL drawing to the view
2015-01-09 08:44:37 -05:00
Erick Pérez Castellanos
caf4031efe
subscriber: rework ::remove and ::modified vfuncs
...
Since we have now access to the hash keeping the children of thw widget
there's no more need of calling GcalView::get_by_uuid
2015-01-09 08:43:21 -05:00
Erick Pérez Castellanos
c1e68032c9
subscriber: added protected internal structure
...
The idea here is to make GcalSubscriber handle the container
responsibilities of the view, and the view will handle only the drawing
an allocating, this would allow us to remove GcalView interface and
merge its methods in GcalSubscriber.
2015-01-09 08:43:21 -05:00
Erick Pérez Castellanos
5a3e9577f2
view: fix gdk relayout warning
2015-01-08 13:04:49 -05:00
Erick Pérez Castellanos
c6b0274c2f
subscriber-view: flag children changes
2015-01-08 13:03:34 -05:00
Erick Pérez Castellanos
668c9ec439
subscriber-view: fix define guard
2015-01-08 13:03:01 -05:00
Erick Pérez Castellanos
55bb938127
year-view: use g_list_foreach
2015-01-07 13:08:51 -05:00
Erick Pérez Castellanos
2d93d0a939
ignore: updated
2015-01-07 12:51:51 -05:00
Erick Pérez Castellanos
5e78eadba7
Revert "window: readd binding between search button and search mode"
...
This reverts commit f83c5865a3 .
2015-01-05 10:47:37 -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
b27402e870
debug: changed warning statements
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
37245c6702
subscriber-view: fix :event-activated signal type
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos
6989eb36c5
subscriber-view: add ::clear_state to reset widget
...
GcalSubscriberView::clear_state is implemented by descendants to reset
the state of the drawing
2015-01-05 10:33:26 -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
fdf12bc6fd
subscriber-view: adopt ::event-activated signal
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
0aba9c55d2
subscriber: files renaming before class renaming
2015-01-05 10:33:25 -05:00
Erick Pérez Castellanos
c5311148f1
year-view: clean warning and whitespace
2015-01-05 10:33:25 -05:00
Erick Pérez Castellanos
2db94ae2cb
year-view: implement GcalView::get_by_uuid
2015-01-05 10:33:25 -05:00
Erick Pérez Castellanos
c4bd918827
year-view: initial GtkWidget::size_allocate impl
...
This impl uses internals structures from GcalSubscriber
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos
d9801d188b
year-view: implement GcalSubscriber extensions points
...
In GcalSubscriber container implementation is needed to find out if an
event will expand more than on cell on a view and on which cell it
belongs. GcalSubscriber provides two vfuncs for its descendants to implement.
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos
354581b7aa
year-view: use GcalSubscriber container mojo
...
Empties GtkWidget::size_allocate and GcalView::get_by_uuid to make it build
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos
cdd27073e3
year-view: add initial ::draw impl
...
So far support RTL drawing.
Missing:
+ Overflow indicators (this could be buttons)
+ selection borders drawing
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos
78d92c394e
year-view: add orientation factor
...
This would be helpful in order to provide proper RTL drawing to the view
2015-01-05 10:33:24 -05:00
Erick Pérez Castellanos
362dc68898
subscriber: rework ::remove and ::modified vfuncs
...
Since we have now access to the hash keeping the children of thw widget
there's no more need of calling GcalView::get_by_uuid
2015-01-05 10:33:23 -05:00
Erick Pérez Castellanos
8e899465e9
subscriber: added protected internal structure
...
The idea here is to make GcalSubscriber handle the container
responsibilities of the view, and the view will handle only the drawing
an allocating, this would allow us to remove GcalView interface and
merge its methods in GcalSubscriber.
2015-01-05 10:33:23 -05:00
Erick Pérez Castellanos
098d8a79d8
window: fix search_button/search_bar binding
...
Remove unneeded placeholder declaration
This code was accidentally touched on commit:
2970729324
This is kind-of a revert of that patch
2015-01-05 10:33:23 -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
43dd2e207f
utils: fix memory leak
2014-12-25 18:47:32 -05:00
Erick Pérez Castellanos
9638db32e6
date-selector: fix memory leak
2014-12-25 18:47:04 -05:00
Erick Pérez Castellanos
070be33262
search-view: remove unused GtkSizeGroup
2014-12-25 15:46:13 -05:00
Erick Pérez Castellanos
de2cb4c9b9
window: use edit-dialog on new event action
...
New event action triggered from the menu on the header bar or the app
menu should not use new-event popover.
2014-12-25 13:34:30 -05:00
Erick Pérez Castellanos
5395dca4f2
date-selector: make it GtkMenuButton descendant
...
Added GtkBuilder's UI file definition
2014-12-25 13:03:15 -05:00
Erick Pérez Castellanos
7cd5a40a0d
build: remove autogen warnings
...
Copied autogen.sh from folks projects where pwithnall cares for
autotools stuff.
2014-12-24 15:55:56 -05:00
Erick Pérez Castellanos
f988f74560
Bump version to 3.15.3.1 for release
2014-12-24 15:21:55 -05:00
Erick Pérez Castellanos
acc9dc4748
NEWS: updated for release
2014-12-24 15:17:47 -05:00
Erick Pérez Castellanos
bc1560c609
manager: cleaner way of returning enabled sources
2014-12-24 15:12:20 -05:00
Erick Pérez Castellanos
d1315de42a
date-selector: fixed re-entry in ::set_date
...
This was causing double actualization of internal day,month,year
variables because GtkCalendar::day-selected signal handler is run by
default after the user connected ones.
2014-12-24 15:00:56 -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
Erick Pérez Castellanos
cf69b68288
date-selector: always use 4 digits entry for years
...
Since GtkCalendar widget is a bit clunky to navigate fast between years,
using a four years digits it's better because we are still
very close to the change of the century.
2014-12-24 13:31:54 -05:00
Erick Pérez Castellanos
8877e89e65
manager: add debug statements
2014-12-24 11:09:46 -05:00
Erick Pérez Castellanos
358b3766a0
manager: don't query disconnected clients
2014-12-24 11:09:46 -05:00
Erick Pérez Castellanos
375425573d
edit-dialog: fix memory leak
...
Also, evolution set altrep to NULL usually, we better do the same.
2014-12-24 11:09:45 -05:00
Erick Pérez Castellanos
9926c3a01b
Bump version to 3.15.3 for release
2014-12-23 12:11:33 -05:00
Erick Pérez Castellanos
1557245a19
Updated POTFILES.in
...
Fix make distcheck
2014-12-23 12:10:46 -05:00
Erick Pérez Castellanos
eba5a341bb
NEWS: updated for release
2014-12-23 12:01:43 -05:00
Erick Pérez Castellanos
ef3b4f059f
build: fix make distcheck
2014-12-23 12:01:42 -05:00
Erick Pérez Castellanos
c4c2ae3517
build: autogen does not need git submodule mojo
2014-12-23 12:01:42 -05:00
Erick Pérez Castellanos
64a00b78b5
ignore: updated
2014-12-22 23:37:40 -05:00
Erick Pérez Castellanos
1b31d419d4
app: make DBus-activatable
...
This commit installs a service file, renames the desktop file
to follow the bus name, and adds the DBusActivatable key to the
desktop file, following
https://wiki.gnome.org/HowDoI/DBusApplicationLaunching
Updates POTFILE files accordingly
2014-12-22 23:34:29 -05:00
Erick Pérez Castellanos
43522b8845
build: update GLib required version
...
g_strv_contains is a new acquisition of Glib, so we need to bump the
dependency up.
2014-12-22 22:50:31 -05:00
Erick Pérez Castellanos
1b88c2fd89
build: remove mention to non-existent file
...
Fix make distcheck
2014-12-22 22:08:50 -05:00
Erick Pérez Castellanos
1de6a8b87a
misc: whitespace and code style minor fixes
2014-12-22 21:56:38 -05:00
Erick Pérez Castellanos
0ff177c1d8
comments: document utils functions, add FIXME
2014-12-22 21:55:55 -05:00
Erick Pérez Castellanos
4eabc0223b
build: remove unneeded code
...
GObject type system zeroing instance private data, so initialization to
NULL and FALSE is not needed.
Misc code styles fixes.
2014-12-22 21:52:35 -05:00
Erick Pérez Castellanos
8f8bb21534
event-widget: use custom class for background colors
2014-12-22 21:41:14 -05:00
Erick Pérez Castellanos
64f9e45c76
app: create custom provider for background colors
...
GcalEventWidgets get its background colors dynamically, so we are
creating a custom provider with a CSS class per calendar color, and
later on the proper class will be applied to the widget.
2014-12-22 21:37:24 -05:00
Erick Pérez Castellanos
442b26b5ea
month-view: properly handle all-day events
...
Note: when the marking of break events is made, this have to be taken
into account.
2014-12-22 14:54:05 -05:00
Erick Pérez Castellanos
5a36689e07
event-widget: advertise properly multiday status
...
When an event is marked all day, the end-date is always one day ahead of
the true end of the event, and both dates are marked as date. We need to
take this into account.
2014-12-22 14:52:34 -05:00
Erick Pérez Castellanos
748b3f74c0
manager: fix gchar** memory allocation
...
I had totally forgot you need to end the array with NULL.
2014-12-22 14:36:18 -05:00
Erick Pérez Castellanos
c00ae959d1
manager: chains ::constructed up
2014-12-22 13:10:25 -05:00
Erick Pérez Castellanos
3f093c5e13
month-view: fix drawing of overflow indicator
...
The drawing was happening but the clipping was not including the full
widget. Queuing a new draw expands the clip to the whole area of the widget.
2014-12-22 10:01:58 -05:00
Erick Pérez Castellanos
073719ef35
manager: get all connected sources
...
Added ::get_sources_connected API to retrieve a list of every source the
application has connected, no matter whether they are enabled or not.
Use ::get_sources_connected on calendars menu in GcalWindow to enable
disabled sources.
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos
761475e47b
build: remove unusued code
...
Since we don't build treeview anymore using cell renderer, this code is
not needed.
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos
6081b9547c
manager: emit ::source-activated on enabled sources
...
The ::source-activated signal has no much sense right now, I'm leaving
it around, for a while, in case some use case pop up. Otherwise in time,
it will go.
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos
bfeef45983
manager: make ::get_sources retrieve only enabled sources
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos
f0d35f60fb
Revert "edit-dialog: update sources when their readonly state changes"
...
This reverts commit 31fa4e8e06 .
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos
c4de15eeef
window: unmark disabled sources checkbox
...
Calendars selector menu needs to know which source is enable to properly
mark the checkbox
2014-12-22 08:38:20 -05:00
Erick Pérez Castellanos
5a00fddfb3
manager: use "disabled-sources" settings
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos
9af65c8f1f
manager: hold a reference of the application's settings
...
We need to keep on the settings the list of the disabled sources
Moved code from ::init vfunc to ::constructed vfunc in order to wait for
construction properties to be set
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos
c28e345b5b
app: settings gained "disabled-sources" key
...
This key will keep a list of the uid of the sources marked as disabled
in the interface in order to keep the same state between runs of the application
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos
a08a0a66c1
event-widget: remove unused CSS tag name
...
Since Gtk+ parses automatically widgets' name, there's no need of custom class
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos
e2d4e52ec7
month-view: monitor click only on overflow indicator
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos
83bd285f3d
window: use GcalView::create-event-detailed signal
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos
c97473e955
month-view: emit ::create-event-detailed
...
Emit this signal from the "Add new event..." button of overflow popover,
the reason is mainly aesthetics since it won't look good showing one
popover after another.
2014-12-22 08:38:18 -05:00