Commit Graph
100 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 6657dad17f window: remove hash table usage
Replaced by g_object_{get|set}_data methods
2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto 491e9d3e85 window: rename GcalWindow::make_row_for_source to GcalWindow::make_row_from_source 2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto b59da7e2e0 source-dialog: show a spinner when it should be validating 2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto 54e6bca518 source-dialog: stub validation query 2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto 429a9dec05 source-dialog: clear pages before showing the dialog in creation mode 2015-05-25 12:35:27 -04:00
Georges Basile Stavracas Neto 8703d2a41e source-dialog: remove unused vars 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 0415d2272b source-dialog: clear previously unsaved calendars 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto fb2bfca990 source-dialog: query some calendar data when selecting a calendar 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto c48edbd682 manager: implement GcalManager::query_client_data 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 1aa194e844 source-dialog: turn the name label into an entry 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto b167967cc0 source-dialog: set the parent's display name as the headerbar subtitle 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto e5a2361274 manager: implemented GcalManager::get_source method 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 4d978a33f6 source-dialog: only allow removable sources to be removed 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 17f56895dd window: use markup label for in-app notification 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 9df8b8077d window: implement removing and undoing the removal of a calendar
We're still facing the bug where the just-added calendar segfaults when removed.
2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 9d222e47fc source-dialog: separate local & remote source handling 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto f724a6aaf6 source-dialog: add button is insensitive by default
We must convince him to get sensitive by selecting a valid source.
2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 4585b44941 window: remove annoying compile warning
Hey GCC, they're just pointers!
2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 8ac47264a4 source-dialog: initial implementation of local source creation 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 16f12f600e local-source: copy code from Evolution regarding local sources 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 3c5a1ebfe6 source-manager: don't try to save NULL sources 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto d6b4aef582 window: sort calendars by name 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto df1b7def8c window: refresh calendar list when a source is edited 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto cba97f8719 source-dialog: properly save the source when the dialog is closed 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 18fa205916 manager: initial implementation of GcalManager::save_source method 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto ec1ad935da source-dialog: implement changing the default source 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto c0c5f102c0 manager: fix return type 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 3070922f5e manager: implement GcalManager::set_default_source method 2015-05-25 12:31:07 -04:00
Georges Basile Stavracas Neto 7f9eccb7a4 source-dialog: fix sizing issue 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 231c3e45ff source-dialog: expand main stack 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 5c693f3e5a source-dialog: don't fire the color signal when it's setting the source 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 96564b3502 source-dialog: fix return type 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 0ea4357703 source-dialog: implement color selection 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 84112ae721 source-dialog: open GNOME Control Center when the description label's link is activated 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 9a3e0e51ba source-dialog: handle source name changes 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 4a9fca3aea source-dialog: hide default source check when calendar is readonly 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto a4ffdf0314 source-dialog: bind title when diting 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 8097b22b60 source-dialog: update the default calendar check 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto c91d5bbb59 window: hide calendar popover when the dialog is trigged 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto b08165364a window: set the source dialog's manager field 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 8e025c5f20 source-dialog: resize dialog according to the mode 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 07ac22de47 source-dialog: set the minimum width of the dialog 2015-05-25 12:31:06 -04:00
Georges Basile Stavracas Neto 557ec083da window: set the source to be edited 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto fe44186446 source-dialog: add GcalSourceDialog::set_source method 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 95af5c72d3 window: hide the dialog after the response 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 00e48dca82 source-dialog: emit the response signal when an action button is activated 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 77b7f116da source-dialog: toggle some widgets' visibility when changing mode 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 143444ddd5 window: show source dialog when a calendar is activated 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto dafdff6326 source-dialog: fixup some properties 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 7e9d722206 window: set source dialog to create mode 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 34f9266966 window: fix signal name 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 6dccbfe431 window: show sources dialog 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 3ef048c2a0 source-dialog: setup headerbar properly 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto ee2c22b950 window: add a GcalSourceDialog instance 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto e6bf96c198 source-dialog: set ::'use_header_bar' property 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 183cddea3d source-dialog: fix gtk+ version requirement 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 667717a7ef source-dialog: prototype impl of modes 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto c1791cd446 source-dialog: fix wrong type assingment 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 059b783b0d source-dialog: lazy set the GcalManager instance
No signals are connected.
2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 3915e1c6e9 source-dialog: keep a ref to the private spot 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 2df236fccb source-dialog: bind the template class 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 61c395ef46 source-dialog: fix compiling issues 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 7cf3ac233f source-dialog: fix wrong return type 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 1de622f4e0 source-dialog: add missing include 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 08f4853a2a source-dialog: rename class to GcalSourceDialog 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 095fd60ba8 source-dialog: initial stub implementation 2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 61f5c9275b source-dialog: initial interface implementation
And just it, nothing else.
2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto cb532bbfbd window: port the calendar popover to GtkListBox
This is a significant rewrite of the calendar popover. Instead of adding actions to the window, it uses a internal map to find the corresponding source.
2015-05-25 12:31:04 -04: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
Georges Basile Stavracas Neto 626e07982b project: fix schema translation
Don't merge translations to the
XML file since DConf can't handle
that.
2015-04-02 14:40:28 -03:00
Georges Basile Stavracas Neto 80775a1e54 window: change "More Details" button label to "Edit Details"
As asked by Allan, this better describes
the purpose of this button.
2015-04-02 12:38:41 -03:00
Georges Basile Stavracas Neto 955c934956 window: block automatic creation of nameless events
We shouldn't let nameless events be created.
This commit blocks all ways to create them
when the name is not set.

The user can still edit events' data.
2015-04-02 12:35:29 -03:00
Georges Basile Stavracas Neto e009a67e30 utils: better search for the first week day
We were relying on _NL_TIME_FIRST_WEEKDAY, which is a glibc extension.

It doesn't work with non-glibc systems, such as FreeBSD.

This commit makes it carefully search for the first weekday. Fixes bug #743327.
2015-01-22 09:53:19 -02:00
Georges Basile Stavracas Neto ea4fdbc05b build: don't try to generate a Makefile from a non-existant Makefile.am 2015-01-21 10:19:29 -02:00
Georges Basile Stavracas Neto 9cc0dda7d4 window: change the transition to crossfade
There is no linear relation of day, month and year views.

As such, it is better to not try to suggest it.
2015-01-14 15:00:38 -02:00
Georges Basile Stavracas Neto 17e5327cf4 manager: prevent a segfault when opening edit dialog with no sources connected 2015-01-13 17:10:39 -02:00
Georges Basile Stavracas Neto 5423280398 edit-dialog: use UI file to connect signals
Fixes bug #739313.
2015-01-13 17:02:07 -02:00
Georges Basile Stavracas Neto c799acf482 edit-dialog: calculate all_day before using it to set the dates
It was using the all_day var before actually using it.

This caused an issue where the start time showed as the current time.
2015-01-13 16:18:40 -02:00
Georges Basile Stavracas Neto b1daf9eeb4 edit-dialog: remove unused field
The old times when calendar used GtkTreeIter has passed, and it no longer needs the active iter field.
2015-01-13 13:29:17 -02:00
Georges Basile Stavracas Neto 3cf37cc3d2 window: remove unused prototype
The code was implemented at gcal-utils, so no need to have it here.
2015-01-13 13:25:11 -02:00
Georges Basile Stavracas Neto 6de2bdd292 edit-dialog: fix missing icons from source selection menu 2015-01-13 13:23:42 -02:00
Georges Basile Stavracas Neto 6094cb7b69 window: fix missing icons from calendar management menu 2015-01-13 13:23:10 -02: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
Georges Basile Stavracas Neto 7f8e8eaa1f window: show search view when animation finish, hide when animation starts
This prevents a warning, and makes the behavior a little bit more polished.
2015-01-09 12:53:42 -02: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
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 352ebd40c3 window: code cleanup
Removes an unused function and an unused variable.
2015-01-09 09:16:43 -05:00
Georges Basile Stavracas Neto 0b4efe3bed window: don't change the header title when changed
As strongly recommended by the design team, it's redundant to have the 'Results for 'xyz'' title.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto d65f01c3f2 window: show the search popover when the entry is mapped
This avois the flickering of the popover trying to reach an unmaped widget.
2015-01-09 09:16:42 -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 469999cd96 window: remove list button from search bar
We won't be using is for now, and it causes a lot of confusion. Also, the behavior is quite broken.
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 f0c126b0ee window: fix header display 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto d5d1d37411 search-view: style it to better fit the HIG stardard 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