Georges Basile Stavracas Neto
cf6cdfd2aa
project: use cairo_surface_t when possible
...
We can avoid an entire roundtrip from surface > pixbuf > surface
if we simply pass the surface to GtkImage. We also save quite
a bunch of debug lines.
2017-03-17 10:14:25 -03:00
Georges Basile Stavracas Neto
ab3b80f3b9
event-widget: factor out clock format function
...
This function will be used by other pieces of code later. We also gain
a tiny performance improvement, as only one GSetting is ever created.
2016-12-13 20:17:28 -02:00
Georges Basile Stavracas Neto
112b82c179
utils: add utility to unref datetimes
2016-12-09 14:45:45 -02:00
Georges Basile Stavracas Neto
c1ab1c2d3b
week-header, week-grid: remove duplicate code
2016-12-08 18:53:34 -02:00
Georges Basile Stavracas Neto
eb7ad4959b
month-view: allow changing months with scrolling
...
It is very natural and intuitive to try and change the current date
by scrolling. The current implementation of the Month view, however,
blatantly ignores scroll events.
Fix that by hearing to the scrolling events and changing the month
when the scroll is enough.
2016-10-01 19:15:54 -03:00
Georges Basile Stavracas Neto
19d68573dd
utils: move utility method to get alarm's minutes
2016-07-06 03:01:56 -03:00
Georges Basile Stavracas Neto
34a6ac389a
view: update interface code
...
This commit updates GcalView interface to use
modern GLib API and, consequently, removes tons
of obsolete code.
2016-03-09 14:19:04 -03:00
fosero
83cf97ecb3
utils: let format_utc_offset handle microseconds
...
format_utc_offset can be called with the return value of
g_date_time_get_utc_offset returning microseconds in a gint64. It is
also still called with the return value of icaltimezone_get_utc_offset
in seconds. Deal with both.
https://bugzilla.gnome.org/show_bug.cgi?id=762438
2016-02-23 22:05:24 -03:00
Georges Basile Stavracas Neto
3c0c3646f4
utils: use GDateTime to build component
...
As part of our epic journey to GDateTime, and to
prepare ground for the future work, use GDateTime
as arguments for building the ECalComponent.
2016-02-16 11:54:35 -02:00
Georges Basile Stavracas Neto
7a6a13d7e0
event: fix timezone handling
...
Using libical with libecal means that the dates
are always stored as UTF dates, and we receive the
timezone as the ECalComponentDateTime::tzid value.
This fact was net being considered when adding date
support on GcalEvent, and was causing various issues
when displaying dates.
Fix that by properly handling timezones in GcalEvent.
2016-02-15 20:42:47 -02:00
Georges Basile Stavracas Neto
0ec0ea8121
event-widget: use GcalEvent internally
...
This saves a lot of code, and is much saner to maintain.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto
5e0d4018f4
event: add a wrapper around events
...
Instead of relying on confusing structures, raw data
and direct access to components, add a wrapper for
events.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto
a6a54a2b24
utils: add helper function to retrieve parent source data
2015-05-25 12:35:30 -04:00
Georges Basile Stavracas Neto
01ac569a1a
utils: add function to parse uris
...
By using a custom regular expression,
parse a uri or abort if it's invalid.
2015-05-25 12:35:28 -04:00
Erick Pérez Castellanos
c7563da2d0
app: handle calendars colours better
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=745487
2015-03-06 11:32:32 -05:00
Erick Pérez Castellanos
87d35dd443
utils: gained compare API
2015-02-17 08:06:18 -05:00
Erick Pérez Castellanos
546b137d24
utils: removing unused functions
2015-02-06 09:21:36 -05:00
Erick Pérez Castellanos
820d1cdb65
utils: API added
...
+ get_color_name_from_source
+ get_circle_pixbuf_from_color
The first one is use plenty in the codebase, everytime we need a color,
and the second one will be used when retrieving the search results.
2015-02-06 09:21:33 -05:00
Erick Pérez Castellanos
f2d84231a4
utils: added date comparison method
...
icaltime_compare_date_only() has some problems when one of the dates
passed are marked as is_date and the other not.
2015-01-27 17:42:16 -05:00
Erick Pérez Castellanos
0b2367200b
copyright: update year
2015-01-20 13:11:58 -05:00
Georges Basile Stavracas Neto
b44f14bdf2
utils: added code to show the GtkPopover menu's icons
...
This will be useful for the next commits, which will introduce a fix for the hidden icons at calendar menus.
2015-01-13 13:21:48 -02:00
Erick Pérez Castellanos
78bced937e
utils: add helper method for component construction
2014-12-04 17:10:56 -05:00
Erick Pérez Castellanos
67732884bb
utils: build an uuid string
...
Use an ESource and ECalComponent to build an uuid string with the format specified
2014-12-04 17:10:55 -05:00
Erick Pérez Castellanos
ff73499ab0
utils: retrieve first_weekday from locale
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703317
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos
74c9f009d8
edit-dialog: show events description, minor tweaks
2014-12-04 17:10:48 -05:00
Erick Pérez Castellanos
e873503744
app: added search-view to window views enum
2014-12-04 17:10:48 -05:00
Georges Basile Stavracas Neto
19d380e80f
project: replace GdkColor by GdkRGBA
...
Fixes bug #738553
2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos
e06033910c
utils: add print_date debug method
2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos
3e7f9f4636
gcal-utils: pass size to gcal_get_pixbuf_from_color
2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos
f4179ec990
build: removed unused code from gcal-utils
...
Removed enums and one function
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos
6ed56ba819
Migrated get_icon_margin to gcal-utils.
...
Moved to use it later on GcalSearchbar.
2013-05-11 11:32:16 -04:00
Erick Pérez Castellanos
0e39c4f618
Added gcal_compare_event_widget_by_date function.
...
Method added so I can sort the widgets by its start date on
the views.
2012-12-01 15:28:56 -05:00
Erick Pérez Castellanos
cc14e10d36
Get month names and weekdays from locale.
...
Added modification to extract month names from locale instead
of localization files.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos
21ab796fb3
Added source change notification.
...
Added support in GcalEditDialog to notify when the source
of an event has changed.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos
69871884f9
Added start-date change handling.
...
Missing: moving end_date accordingly.
2012-12-01 15:28:51 -05:00
Erick Pérez Castellanos
20eccc8a31
Added support to obtain properties of the event
...
Added very initial support to handle obtention of the modified properties
of the edited event. There's still some kind of Model implementation to keep
track of the changes made by the user.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos
c3acffa9d7
Changed mode declaration for emacs.
2012-09-20 09:00:46 -04:00
Cosimo Cecchi
8fabdc9eb6
build: fix icaltime.h include path
2012-08-24 19:00:38 +02:00
Erick Pérez Castellanos
7581e8bad0
Reworked details view of an event.
...
Removed editable-widgets.
Added GcalEditDialog
Reworked delete-event trigger
Moved method from GcalEventOverlay to utils to use it on GcalEditDialog
2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos
a9da2aa552
Made simple-add event work.
...
Fixed GcalEventOverlay handling of dates.
Added initial code and methods to handle adding events to GcalManager.
Fixed in GcalMonthView handling of dates passed to event-creation.
Fixed gcal-utils sources for gcc warning.
Fixed calling order in GcalWindow.
2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos
6a46b4b2f4
Corrected icaltime header inclusion.
2012-08-17 10:34:35 -04:00
Erick Pérez Castellanos
e09ce361b0
Added GSettings to read/set the active view.
...
Placed code to generate G_TYPE_ENUM from my defined enums
Semi-integrated GcalWeekView
Updated TODO.
2012-07-11 10:50:28 -04:00
Erick Pérez Castellanos
1021c7e781
Added GcalWeekView. Not integrated yet.
...
Refactoring the code inside GcalMonthView for drawing and for showing child
widgets.
Fixed ref_sink in GcalEditableRemainder. (Don't need it)
Added translation for weekdays abbreviation. (Thxs to ebassi & mclasen)
Passed make distcheck.
2012-07-11 10:50:28 -04:00
Erick Pérez Castellanos
39ed044ca5
Glue code for using those editable widgets.
...
Added GcalEventWidget::activated signal.
Fixed bug in GcalMonthView preventing to get button events.
Added methods in GcalUtils from Evo for formatting time.
..and stuff
2012-07-03 15:20:00 -04:00
Erick Pérez Castellanos
8bbb375ac1
Added initial version of GcalEditable family of widgets.
2012-07-03 15:20:00 -04:00
Erick Pérez Castellanos
2bda18e55e
Removing _gcal prefix to indicate internal functions instead of static modifier.
2012-07-03 15:19:59 -04:00
Erick Pérez Castellanos
24fece9529
Wrapped icaltimetype as G_TYPE_BOXED
...
Fixed GcalMonthView to use this.
Added date-start for GcalEventWidget.
2012-05-16 23:43:08 -04:00
Erick Pérez Castellanos
9e527f823e
Added to GcalMonthView class GcalView interface implementation.
2012-05-16 00:26:23 -04:00
Erick Pérez Castellanos
466203d83e
Style fixes.
2012-05-04 11:48:54 -04:00
Erick Pérez Castellanos
4454e83f9f
Migrated GcalMonthView to icaltimetype instead of GDate
2012-05-04 00:10:57 -04:00