Alex Benishek
311195857f
Move from GPL 2 to GPL 3
...
Right now the project contains a mix of GPL 2 and GPL 3 code.
This commit moves all of the perviously GPL 2 code to GPL 3
https://bugzilla.gnome.org/show_bug.cgi?id=752649
2017-08-10 07:16:36 -03:00
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
478db350e3
project: intrument functions
...
Add the newly added macros to provide useful tracing
information.
2017-03-17 10:14:25 -03:00
Georges Basile Stavracas Neto
d5825bbd35
project: override log domains
...
This way, we can have more useful debug spils.
2017-03-17 10:14:25 -03:00
George Willian Condomitti
1ee760ac5c
search-view: start searching after 3 characters and 500ms
...
Add timeout and minimum string length (3 characters) before triggering
searching routine.
App freezes and lags for a few seconds once one starts typing due to
the huge amount of matched events.
Search will be triggered only if passed time since last inserted
charactere is at least 500ms and three characteres have been entered.
If length is already >= 3 but user keeps typing in a quick fashion
(i.e. faster than 500ms per charactere) pre-scheduled search routine
(timeout from the last inserted char) is cancelled and a new one
is created.
https://bugzilla.gnome.org/show_bug.cgi?id=775549
2017-03-03 21:14:52 -03:00
Georges Basile Stavracas Neto
e4555ea292
search-view: various fixes
2017-01-24 09:22:57 -02:00
Georges Basile Stavracas Neto
53f9158f25
search-view: only decrease search counter when something is removed
...
Because we were blindlessly decreasing the search hit counter without
considering that we could've not removed anything, the search hit
counter is going nuts.
Fix that by properly checking if something was removed, and only decrease
the search hit counter when that happens.
2017-01-24 08:59:00 -02:00
Georges Basile Stavracas Neto
81b178acff
search-view: fix segfault
2016-09-28 21:04:51 -03:00
Georges Basile Stavracas Neto
f1069c96d6
event: implement GInitable
...
Since the event creation can fail, lets make it a GInitable
so that we can fail during initialization.
https://bugzilla.gnome.org/show_bug.cgi?id=763166
2016-09-28 00:07:28 -03:00
Georges Basile Stavracas Neto
e79bdfb933
search-view: fix time label
...
We want to show "All day" when the event is all day, not
when it ~isn't~ all day.
https://bugzilla.gnome.org/show_bug.cgi?id=771677
2016-09-27 23:16:20 -03:00
Georges Basile Stavracas Neto
33d9901c49
search-view: don't subscribe to invalid dates
2016-07-08 20:53:56 -03:00
Georges Basile Stavracas Neto
fef23f1243
search-view: don't load events with no dtstart
2016-03-09 11:19:52 -03:00
Georges Basile Stavracas Neto
4676a21a58
search-view: use GcalEvent
...
Instead of relying on the now deprecated GcalEventData,
use the newly introduced GcalEvent class. As a side
effect, the code is simpler and much more saner to
deal with.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto
65cfea9609
search-view: turn into a final class
2016-01-19 20:55:17 -02:00
Erick Perez Castellanos
5f6bd95750
Fix gcal_manager_is_client_writable() semantics
...
Fix all the calls to it accordingly.
2015-10-07 08:39:51 -05:00
Georges Basile Stavracas Neto
d644cbc8bf
search-view: update UI to match upstream
...
Latest GNOME applications follow a clear style of
searching and displaying results, with a no results
page.
To create a coherent usage between GNOME applications,
add the No results page to search popover.
2015-07-17 02:19:44 -03:00
Georges Basile Stavracas Neto
c85b7394f9
search: split listbox sort function
...
It'll be needed for future work on
pagination, so the sorting logic can
be reused.
2015-04-03 10:06:19 -03:00
Georges Basile Stavracas Neto
f4d0e48569
search: small refactoring of the code
...
Use GObject::set_data and ::get_data
to get rid of an useless hash table.
2015-04-03 09:41:46 -03:00
Erick Pérez Castellanos
f7e897fefe
search-view: fix timezone handling
2015-03-16 12:24:39 -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
edec70fe0d
search: use new compare function
2015-02-17 08:06:18 -05:00
Erick Pérez Castellanos
b502ccd363
misc: fix styling
2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos
aef9960d73
search-view: fix double free of ListBox's rows
2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos
b86f381705
search-view: changed sorting of results
...
This sorting promotes the results closer to the time when the search was done.
2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos
8fadbaa760
misc: fix various memory leaks
2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos
b1df382ee3
app: use get_color_name_from_source()
2015-02-06 09:21:36 -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
Georges Basile Stavracas Neto
ee09608a58
search-view: remove non-working connection
...
All the source update stuff is done internally by ECalDataModel, and we don't need to do it again.
2015-01-09 12:40:16 -02: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
Georges Basile Stavracas Neto
bc17a9b38b
search-view: right-align icons
2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto
54aa3933fc
search-view: show icons for event attributes
...
For now, only the alarm and lock icons are showed.
2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto
3ed508b8c0
search-view: order by date, instead of name
2015-01-09 09:16:43 -05:00
Georges Basile Stavracas Neto
0002e7640f
search-view: update the view when a valid search occurs
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto
8933b1485a
search-view: reset states when performs the search
...
Also, reset search when starting a new search from window.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto
a458a7fb52
search-view: coding style fixes
...
This commit introduces no new code, as it only
change function ordering and some minor style
fixes.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto
37566a435e
search-view: run the search when the sources changes
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto
e88af3ab5f
search-view: show properly a thin line before every result
...
This time, do not rely on CSS hacks.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto
d628c4b9fc
search-label: show a friendly label when search entry is empty
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto
ff54f7eb67
search-view: don't try to access NULL data
...
This should be better debugged, as it may be a thread syncronization problem.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto
ddb93d8d72
search-view: subscribe on demand
...
To avoid filling up the list with all events, subscribe only when the first search happens.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto
c9047c102f
search-view: handle search independently
...
Instead of letting GcalWindow handle the searches,
make GcalSearchView handle it so the widget has
more control over the general appearance of the
popover.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto
b5c80e1849
search-view: better width for labels
...
The labels are consuming too much space. This commit fix it.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto
fb7b738ff7
search-view: make it a GtkPopover descendant
...
This huge patch makes GcalSearchView a GtkPopover
descendant. Also, it poorly adapts GcalWindow to
make it work with it.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
6c7500c5b0
search-view: remove GcalSearchView::date_mask fiels
...
Completely replaced by "%x" formatting string on GDateTime.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
a9de8dd3c1
search-view: remove GcalSearchView::time_mask field
...
It is unused and should be removed to avoid further headaches.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
d72729356d
search-view: respect system time format
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
8742b47dc6
search-view: comment almost every function possible
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
cd4fb40281
search-view: major code cleanup
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
95b35964cd
search-view: fixed double border at the end of the list
...
Also, fixes a small details that the results list is
always expanded.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto
a0e5a8564e
search-view: properly connect 'row-activated' signal
2015-01-09 09:16:40 -05:00