Commit Graph
2260 Commits
Author SHA1 Message Date
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
Georges Basile Stavracas Neto 3cde8ad4f4 window: simplify refresh sources timeout code 2015-01-03 18:41:19 -02:00
Georges Basile Stavracas Neto 8aefe71316 window: syncronize sources from time to time
Currently, it is hardcoded 5min for active windows, and 20min for innactive windows. These values may change later.
2015-01-03 17:17:09 -02:00
Georges Basile Stavracas Neto b635ac7112 time-selector: fix wrong time order for RTL languages
Fix bug #741921.
2015-01-03 16:00:37 -02:00
Georges Basile Stavracas Neto c10ba6b228 time-selector: don't access dconf multiple times for the same key
Instead of accessing 3 times the same key, use the cached version and save up some time.
2015-01-03 15:31:05 -02:00
Georges Basile Stavracas Neto fa014972bc time-selector: make it GtkMenuButton descendant
With it, it is up to Gtk+ to handle the popover.
2015-01-03 15:11:20 -02:00
Georges Basile Stavracas Neto ecb4cb24d6 manager: fix refreshing condition
GcalManager shouldn't refresh when it's not enabled or when refreshing is not supported, not strictly both of them.
2015-01-03 13:11:00 -02:00
Georges Basile Stavracas Neto 6915522ecc manager: syncronize sources at startup
As proposed by the design team, Calendar should update the sources at startup time.
2015-01-03 13:08:47 -02:00
Georges Basile Stavracas Neto 29d5af6bca window: perform the search even for empty strings
This will keep consistency, since empty search is performed for the first time, then it's ignored.
2015-01-03 12:42:41 -02:00
Georges Basile Stavracas Neto f83c5865a3 window: readd binding between search button and search mode
This should've been lost somewhere.
2015-01-03 11:24:57 -02: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 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
Georges Basile Stavracas Neto fb57d5998a month-view: better handle overflow background draw 2014-12-23 21:35:05 -02:00
Georges Basile Stavracas Neto 70fa71492e date-selector: added docs 2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto e2dc2591e8 date-selector: remove unneeded initialization
GObject initializes private fields to 0, we don't have to redo this work.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto 70d62e802d date-selector: fix code style format
Better legibility is always welcomed.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto 4d9ed837cb date-selector: remove debug message
It's not needed to know the mask.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto 5ed4832f9a date-selector: use atoi instead of strtol
This prevents the pseudo-bug where strtol thinks the date is in octal because of the leading zeros.
2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto 3257f47b46 date-selector: fix code style 2014-12-23 12:01:42 -05:00
Georges Basile Stavracas Neto fddac33fad date-selector: factor out duplicated code 2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto 13a3fb9638 date-selector: don't set locale on ::init 2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto 5cec73ab43 date-selector: completely drop the format_24h flag
Dates do not depend on the time format, so it shouldn't be cached here.
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto 9b5670a416 date-selector: add gcal_date_selector_use_24h_format function
Will be used later on in order to avoid retrieving this value multiple times with GSettings.
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto 07e052ef9c edit-dialog: requires date format for construct
Neccessary to pass it to GcalDateSelector & GcalTimeSelector without having to search the value again.
2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto 0ad7dd54ab date-selector: remove wrongly placed g_object_refs 2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto bfc6e37595 date-selector: show Day, Month and Year labels according to it's position 2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto 71913eed41 date-selector: fire MODIFIED signal
Also, some code cleanup.
2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto 62849f128d date-selector: fix focus-out propagation issue 2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto f0e0a6c015 date-selector: update date on GtkEntry::activate signal 2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto 55b4002e6b date-selector: set date on GtkEntry::focus-out-event 2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto 077b1a7d01 date-selector: clamp day & month values before validating it 2014-12-23 12:01:40 -05:00
Georges Basile Stavracas Neto 107772131b date-selector: clear code, improved set_date func 2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto d820abcb3e date-selector: allow calendar to select the date
For testing reasons, we don't fire MODIFIED signal yet.
2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto 86624ce8fd date-selector: validate entries' input 2014-12-23 12:01:39 -05:00
Georges Basile Stavracas Neto 69db4acf4c date-selector: limit number of digits of entries 2014-12-23 12:01:39 -05:00