Georges Basile Stavracas Neto
abd6fa8b2d
window: properly case ::manager property getter
...
It's a readwrite property, thus it must have an
case PROP_MANAGER set in get_property.
2015-12-31 00:37:36 -02:00
Georges Basile Stavracas Neto
961bf5dc88
window: setup edit dialog from UI file
...
This commit sets up the edit dialog from the window's ui
resource file, in a series of commits that tries to move
all C code to the UI definitions.
Also, GcalManager is a full GObject class, not a simple
pointer. As such, update the property spec to be of type
object, not pointer.
2015-12-30 17:37:12 -02:00
Georges Basile Stavracas Neto
13c4145507
edit-dialog: add ::writable and ::manager properties
...
By using these properties, we gain the possibility to
bind them to the widgets and save some needless code.
This commit adds GcalEditDialog::writable and ::manager
properties. Other needed properties will be eventually
added in the subsequent commits.
2015-12-30 17:34:29 -02:00
Georges Basile Stavracas Neto
de207f9c63
edit-dialog: move bindings to UI file
...
We don't need to manually bind these properties in
the source code if we can make it on the UI files.
2015-12-30 15:05:20 -02:00
Georges Basile Stavracas Neto
4d19950c2c
edit-dialog: cosmetic changes
...
Fixes some alignment issues, as well as some
needless checks. Also, use some handy glib
functions to shrink the code even more.
2015-12-30 14:59:16 -02:00
Georges Basile Stavracas Neto
3396291e3e
edit-dialog: remove needless casts
...
These widgets are already stored as GtkWidgets,
and there is no need to do these casts.
2015-12-30 14:40:34 -02:00
Georges Basile Stavracas Neto
6f1eb7ca9d
edit-dialog: turn into a final class
...
This commit updates GcalEditDialog's code for
it to be a final class. As such, we don't need
the GcalEditDialogPrivate type - we can simply
move our data to the GcalEditDialog struct.
2015-12-30 14:36:27 -02:00
Georges Basile Stavracas Neto
0ac827d87d
edit-dialog: remove dead code
...
This is already set in the UI definition file
for the dialog.
2015-12-30 14:12:02 -02:00
Georges Basile Stavracas Neto
4d4aa8bb26
project: remove OnlyShowIn from desktop file
...
This limits the visibility of GNOME Calendar, which should
be usable in other desktop environments as well.
https://bugzilla.gnome.org/show_bug.cgi?id=758730
2015-12-09 20:43:39 -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
16e926bbcc
Bump 3.18.0 release
2015-09-21 11:41:14 -03:00
Georges Basile Stavracas Neto
d80595af69
build: update project version
2015-09-14 14:56:14 -03:00
Georges Basile Stavracas Neto
bf1f87b19f
Bump 3.17.92 release
2015-09-14 14:50:17 -03:00
Georges Basile Stavracas Neto
8bd3bcefcd
Bump version 3.17.90
2015-08-19 17:43:22 -03:00
Georges Basile Stavracas Neto
4a96cecc9d
Bump 3.17.4 release
2015-07-20 15:44:52 -03: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
6080b62368
manager: implement ::move method
2015-07-16 00:22:54 -03:00
Georges Basile Stavracas Neto
d3a806a684
year-view: improve font rendering
...
By using doubles instead of integers, we give a very
fluid resize effect for year view.
2015-07-15 23:55:08 -03:00
Georges Basile Stavracas Neto
b56540a8d7
window: add tooltips to header buttons
...
In the case the user have any doubts about each
button, a nice tooltip shows and enlightens one's
mind.
2015-07-15 21:26:50 -03:00
Georges Basile Stavracas Neto
10e340c20f
manager: initialize value
...
Avoids calling g_free on uninitialized memory,
which results in a nasty segfault.
2015-07-15 21:18:52 -03:00
Georges Basile Stavracas Neto
72c2988ff3
source-dialog: remove unused code
2015-07-15 21:10:27 -03:00
Georges Basile Stavracas Neto
80693e9ae5
edit-dialog: remove unused code
2015-07-15 21:10:12 -03:00
Georges Basile Stavracas Neto
b1540e3f41
window: code cleanup
...
Remove the unneeded code to manage search bar visibility,
since it is correctly hidden now. Also, clean up some UI
code.
2015-07-15 20:57:12 -03: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
60fdb04c94
Bump 3.17.3 release
2015-06-22 22:01:59 -03:00
Georges Basile Stavracas Neto
2a22e49b51
project: update NEWS for 3.17.3
2015-06-22 21:59:37 -03:00
Georges Basile Stavracas Neto
1f666ba405
window: move forward/backward according to locale
2015-06-04 15:44:48 -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
Georges Basile Stavracas Neto
45977bad5b
Bump 3.17.2 release
2015-05-25 15:23:58 -03:00
Georges Basile Stavracas Neto
f7457b3074
build: fix uninstall-local
2015-05-25 15:08:56 -03:00
Georges Basile Stavracas Neto
0ccdbcff5e
project: update NEWS for 3.17.2
2015-05-25 14:37:14 -03:00
Georges Basile Stavracas Neto
0a1a16060c
po: add missing files to POTFILES.in
2015-05-25 14:31:45 -03:00
Georges Basile Stavracas Neto
b7476cb84c
manager: only load calendar sources
...
Do not blindly load every source loaded by the
ESourceRegistry::source-added, since it may be
a non-calendar source.
2015-05-25 14:05:49 -03:00
Georges Basile Stavracas Neto
0c47cda20c
source-dialog: change visible page by pointers
...
Using their string representations was slow, compare
pointers which is fast.
2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto
b8fea7f1d1
source-dialog: fix memory leak
...
Free duplicated string when the listbox row is
destroyed.
2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto
87c02b520a
source-dialog: hide itself on response event
2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto
c1b14e48d4
window: comment misleading destruction of calendar row
2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto
40b39337f3
source-dialog: remove deprecated xalign for buttons
2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto
47674b4d61
source-dialog: remove the annoying 2px border from the dialog
2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto
ef9d1301d9
source-dialog: use a builder .ui definition for interface
...
We know that coding interfaces sucks, so use a .ui file instead.
2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto
f63541f475
manager: unred GOA client on finalize
2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto
18f0026eb7
manager: use goa_client for private field
...
To not confuse it with the many other clients we
already have here
2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto
9838c7fa41
window: fix more styling issues
2015-05-25 12:35:59 -04:00
Georges Basile Stavracas Neto
350cd5ea85
source-dialog: fix style
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
bbcd5bcc49
source-dialog: use GtkEntry::get_text_length
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
e3e30140b3
source-dialog: use g_clear_object instead of manual free
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
6213f5cc78
source-dialog: remove useless checks before freeing memory
...
g_free is NULL-proof, no need to check if it's NULL
before using it.
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
f9b3f2f6c7
source-dialog: remove unused enum
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
cd872d42ed
manager: load GOA client at construction time
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
27fa9983f4
manager: change ::get_client to ::get_goa_client
...
This explains better the purpose of the methods, and also
don't collide with the ECalClient prefix we already use.
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
87ecb99090
application: remove unused import
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
2b4e46a4b6
manager: notify when sources are enabled/disabled
...
Add the new signal for GcalManager::source-enabled that
notifies connected widgets about the source change. With
that, we can keep checkboxes syncronizes.
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
023a79a90f
source-dialog: bind source::display-name with label::label
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
a9364d83cb
window: better name Calendar Settings button
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
c3d34ae149
window: add a nice style to the calendar listbox
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
134d8678fe
source-dialog: connect the signal
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
51a2695546
source-dialog: open online account settings when button is clicked
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
60401426a2
source-dialog: silence gnome-control-center
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
7482469b01
source-dialog: sort online accounts
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
06e6f39721
source-dialog: remove accounts with GoaClient::account-removed
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
1a580e3be5
source-dialog: hide empty goa rows instead of removing them
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
a8631eb99a
source-dialog: initialize the icon name
...
Avoids some compiler warnings.
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
321882f4b2
source-dialog: use subtitles to improve user discoveribility
...
Make it clear that you can configure your account
by clicking the row.
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
2f882d2b0b
source-dialog: add accounts when they're added
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
10e032f510
source-dialog: open online account when row is activated
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
06cfeace4d
source-dialog: load online accounts
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
3905622420
window: don't set the manager twice
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
87299afe01
project: add online account row UI for source dialog
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
5862f1671f
window: add source dialog to builder file again
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto
7942677b8e
application: move GoaClient to manager
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
0142b0494e
window: instance source dialog on init
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
ee7025ea99
source-dialog: add ::application property
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
75de5bb5b1
source-dialog: add some more properties
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
ebb08f5eeb
application: send a signal when GoaClient init finishes
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
0aad536ca1
application: add method to retrieve the GoaClient
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
67ca57d1c9
source-dialog: connect ::row-activated signal to the handler
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
71d93bd914
application: load a GoaClient on init
...
It is done here to make it reusable for
the future initial setup dialog too.
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
a61a970049
source-dialog: spawn online accounts creation on row activation
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
6f8199c488
project: add Goa dependency
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
5d6fe1b7f4
source-dialog: revalidates on entry activation
2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto
b45e76b9af
source-dialog: properly hide the list of discovered sources
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
a704bd3d4c
source-dialog: add a smooth transition to web sources listbox
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
bbca705f55
source-dialog: show an icon on success for web sources
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
cee837fe61
source-dialog: remove unneeded properties
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
00b580fd6d
source-dialog: forbit selecing discovered calendars' row
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
24189bddd3
source-dialog: fix sorting function
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
e62d744cef
source-dialog: Add a "Calendars" label before calendar listbox
...
Also, this commit correctly hides the calendar
label and list.
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
dcd1fbe6d9
source-dialog: fix insensitive button when addin file or local source
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
d892f981cb
source-dialog: first action goes top, second goes down
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
d5b04e24ac
source-dialog: always focus user entry when asking credentials
2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto
85fd55ce96
source-dialog: make it able to select the desired calendars
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
76432b81e0
source-dialog: fix credentials leaked data
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
102698a9e3
source-dialog: remove unneeded fields
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
dc30e1e4b0
source-dialog: give empty credentials instead of none at all
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
1c34dc69d8
source-dialog: use a list of remote sources instead of a single pointer
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
905dcc4268
source-dialog: make the field a boolean, not pointer
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
8dcd64b3ec
source-dialog: remove unused var
2015-05-25 12:35:54 -04:00
Georges Basile Stavracas Neto
2928ef849c
Bump version to 3.16.1 for release
2015-05-25 12:35:54 -04:00