Erick Pérez Castellanos
39318534cd
window: fix focus issue when creating event
...
https://bugzilla.gnome.org/show_bug.cgi?id=738858
2014-12-04 17:10:44 -05:00
Erick Pérez Castellanos
cf7e6be614
window: hook GcalView:event-activated signal
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos
a05d114859
window: add :manager property to construction
...
Since a pointer to the GcalManager instance it's needed at construction
time and GtkWindow::application property is not set as construction
property. We need to add this property to have a reference to pass to
the instantiated views.
Just like the views, this isn't ref/copied or anything, it's just a
dummy pointer. The application objects is the respnsible of handling
GcalManager instance initialization and destruction.
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos
c55caa89c6
window: removed unused code
...
Events related signals from GcalManager had been removed previously,
those handlers aren't needed anymore.
Second, there's no need to inform GcalManager of the new range since
every view will do so internally. Also, there's no need of removing
children widgets from the active view, since each view will do so on its
own by implementing ECalDataMoelSubscriber::components_removed vfunc.
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos
d5f2b21f37
build: removed unused/faulty code
...
This cleaning is made in order to merge this branch into master as soon
as possible.
The implementation of GcalDayView is planned to go on the same lines as
GcalWeekView but for two days alone, so much of the code of the latter
could be reused. The approach of using shallow container and kinda
layout manager objects inside GcalDayView didn't worked that well for my
expertise at this time.
2014-12-04 17:10:41 -05:00
Erick Pérez Castellanos
7b97248c8b
window: fix memory leak
2014-12-04 17:10:41 -05:00
Georges Basile Stavracas Neto
7dc4ae6a84
nav-bar: implemented today button
...
Implements today button between previous and forward buttons.
Fix bug #703316 .
2014-12-04 17:10:40 -05:00
Georges Basile Stavracas Neto
a5c65af0fb
project: remove libgd dependency
...
This patch fixes bug #737729 , removing all libgd dependencies.
Every GdHeaderButton was replaced by GtkButton, and GdNotification was replaced by a custom-styled GtkFrame inside a GtkRevealer.
2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos
503d0345d9
window: restore GcalEditDialog:response handling
...
Now, this method will be improved later since the modify response will
use some new API
2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos
67fc66a8f4
window: migrated to match latest GcalManager API
...
Reorganized some code as mentioned on HACKING code style file
Removed unused methods
Started migration on new EditDialog flow to match latest GcalManager API
Updated GcalManager:events-modified handler to match lastet GcalManager
API
2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos
8ca256b130
window: update GcalManager:objects-added handler
2014-12-04 17:10:39 -05:00
Erick Pérez Castellanos
1d95b5e8a9
window: new-event-mode doesn't need CONSTRUCT flag
2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos
27565d487e
time: properly set time and timezone
2014-12-04 17:10:37 -05:00
Erick Pérez Castellanos
80fdc33e0d
window: queue draw on update view
2014-12-04 17:10:37 -05:00
Georges Basile Stavracas Neto
1e1052c65c
window: use GtkPopovers
...
GNOME Calendar uses a custom GtkOverlay-based widget, witch is not necessary anymore. It should be replaced by GtkPopover.
2014-12-04 17:10:37 -05:00
Georges Basile Stavracas Neto
a9e8eb311a
window: fix timeout resource handler
...
Update the handler after the save_geometry(...) method is called
2014-12-04 17:10:37 -05:00
Georges Basile Stavracas Neto
4f241168de
window: fix timeout resource handler
...
Update the handler after the save_geometry(...) method is called
2014-12-04 17:10:37 -05:00
Erick Pérez Castellanos
6c893eb333
window: remove geometry related debug sentences
2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos
ed9342b237
window: hook key events to search-mode
2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos
48f5b36c29
views: ensure initial/final dates have timezones
2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos
420db914db
window: changed system icon for menu icon
2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos
bee7b6fa1c
build: rename instance variable and add docs
2014-12-04 17:10:34 -05:00
Erick Pérez Castellanos
8a3ad4fc98
gcal-window: fixed minor sigsegv when no positionis saved
2014-12-04 17:10:34 -05:00
Javier Sánchez Ochando
50f8f2de37
gcal-window: the calendar window remember its geometry.
2014-12-04 17:10:34 -05:00
Erick Pérez Castellanos
258283a01d
gcal-window: use toolkit's close-button in HeaderBar
2014-12-04 17:10:34 -05:00
Erick Pérez Castellanos
5e4488c315
gcal-window: fixed bug on split event uuid
...
Fixed the case when the event uid have a ':' colon
character on it.
2014-12-04 17:10:33 -05:00
Erick Pérez Castellanos
2919eedc5f
gcal-window: added cute close button
2014-12-04 17:10:33 -05:00
Erick Pérez Castellanos
76a0211377
gcal-window: added dates adjusting on event-creation
...
Adjust dates according to the active view when necessary
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos
fa73bb5e90
gcal-window: fixed bug on events-modified signal
...
On GcalDayView objects fail to reparent easily.
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos
78b4a9c879
gcal-window: improved new-event widget placement
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos
7c976b5a86
gcal-window: handled reentrancy of new-event widget
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos
44693ab6c5
gcal-window: added new-event flow
...
Added Esc key closes new-event widget
Added summary entry get focus when new-event widget is shown
Reworked new-event creation flow
Renamed gcal_window_get_manager to get_manager
2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos
f9a37293eb
build: fixing deprecations from gtk+-3.10
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos
1ada96616b
build: moved gobject construction to new sugar
...
Misc formatting fixes
Misc minor refactoring
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos
6b7e27a115
gcal-window: ordered according to HACKING
...
Renamed methods
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos
005e583341
gcal-window: started migration to GcalNewEventWidget
...
Removed GcalEventOverlay
Hooked GcalView:create-event signal from views
2014-12-04 17:10:28 -05:00
Erick Pérez Castellanos
04d14cfaca
gcal-window: added new-event-mode as property.
...
Bind StackSwitcher sensitive state and GAction:enabled to new-event-mode property
2014-12-04 17:10:28 -05:00
Erick Pérez Castellanos
b54ac5510b
gcal-window: fixed update_view method
...
Used new GcalView:clear to destroy all the event-widget children of a view
2014-12-04 17:10:27 -05:00
Erick Pérez Castellanos
9da7e71eed
gcal-window: initial support for navigation
...
Handled nav buttons actions
Reorganized gcal-window source a little
2014-12-04 17:10:27 -05:00
Erick Pérez Castellanos
c365e9124a
gcal-view: cleaned API
...
Removed unneeded GcalView:reposition_child method.
Reworked gcal_window_events_modified to use GcalView:get_by_uuid
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos
aabf226344
gcal-window: reposition notification widget
...
Setting the overlay to cover the NavBar widget as well, so the notifications
show up, below the toolbars
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos
9f530a5b8a
gcal-view: modified API
...
Implemented in views.
Reworked GcalDayView implementation to allow bigger
than days events.
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos
31a363999d
gcal-window: refactored some code
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos
de0902028f
gcal-window: fixed initialization on DayView mode
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos
85a2002e76
gcal-window: changed transition-type between views
...
Requires master from Gtk+
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos
9b828b39be
gcal-window: added new application flow
...
gcal-window changes:
1. Added #GtkStackSwitcher for view-switching handling
2. Reworked view switching behavior
3. Added window states: search-mode, new-event-mode
4. Implemented search using #GtkSearchBar, allowing to handle [Esc] keys closing the search
5. Removed temporally SourcesView
gcal-application changes:
1. Added actions for [Search] and [New Event] with its keyboard-shorcut
A lot of ground work is set here, the code is fill with FIXMEs and comment
for stuff-TODO
2014-12-04 17:10:24 -05:00
Erick Pérez Castellanos
c22792e65e
gcal-view: reworked a little more the API
...
Added API to get the headers for update GcalNavBar
Updated GcalMonthView, GcalWeekView and GcalYearView implementations
Updated calls in GcalWindow
2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos
3327207c9d
gcal-window: fixed memory leak when handling date
...
Fixed construction method
2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos
a71491377e
gcal-window: updated to new GtkSearchBar API
2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos
09f6261550
ui: integrated GcalDayView in GcalWindow
...
Initial work. Added option to GcalApplication action.
2014-12-04 17:10:22 -05:00