Commit Graph
56 Commits
Author SHA1 Message Date
Erick Pérez Castellanos 64f9e45c76 app: create custom provider for background colors
GcalEventWidgets get its background colors dynamically, so we are
creating a custom provider with a CSS class per calendar color, and
later on the proper class will be applied to the widget.
2014-12-22 21:37:24 -05:00
Erick Pérez Castellanos 9af65c8f1f manager: hold a reference of the application's settings
We need to keep on the settings the list of the disabled sources
Moved code from ::init vfunc to ::constructed vfunc in order to wait for
construction properties to be set
2014-12-22 08:38:19 -05:00
Erick Pérez Castellanos 2a6b9a31ce app: fix sigsegv when not getting a date from cli 2014-12-10 01:21:19 -05:00
Erick Pérez Castellanos 83345b2fb4 app: gained --date option
GcalWindow loads the date from GcalApplication.
2014-12-09 15:36:01 -05:00
Erick Pérez Castellanos 314f60e040 about: praise our artists properly
Add jimmac to artists list
2014-12-05 16:20:57 -05:00
Erick Pérez Castellanos fe7b1d942e app: use new icon 2014-12-05 16:20:16 -05:00
Erick Pérez Castellanos 2853e9a3b2 about: add Lapo to the design/art team 2014-12-05 08:17:30 -05:00
Georges Basile Stavracas Neto 2e8b677d6a app: implemented sync action
Useful when the local calendar differs from the remote calendar (i.e. you added an event at Google Calendar).
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos a158fc5757 application: handle ref count of GtkCssProvider correctly
It seems gtk_style_context_add_provider_for_screen increase the ref
count of the GtkCssProvider (maybe copy it to GdkScreen and this isn't
releasing it correctly). We're forcing an _unref to keep the destruction
process working as expected. Previously gtk_css_provider_finalize was
not called at any time on the closing process.
2014-12-04 17:10:44 -05:00
Erick Pérez Castellanos 6c7593dbb1 application: free properties' memory on finalize
Note: GtkCssProvider doesn't finalize correctly yet, but it is correct
to clear the reference belonging to the application.
2014-12-04 17:10:44 -05:00
Erick Pérez Castellanos fb2461b813 application: properly quit application
Fixes destruction process. Calling g_application_quit skip the reference
decreasing process of GApplication and that resulted in a bunch of
_finalize methods not being called. By removing the windows GApplication
finalize properly.
2014-12-04 17:10:43 -05:00
Erick Pérez Castellanos ed32e8d624 application: do not access instance data on _new
The settings setup could be delayed to _init vfunc of the
application.
2014-12-04 17:10:43 -05:00
Erick Pérez Castellanos b8525fc0f6 app: fix about dialog build 2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos 21356d926d app: update about dialog 2014-12-04 17:10:40 -05:00
Erick Pérez Castellanos 7ab1af4e96 app: remove unused view type action 2014-12-04 17:10:37 -05:00
Erick Pérez Castellanos 333363205c app: update application menu
Use only application wide actions in the menu, as stated in GNOME HIG
Migrated to use GtkBuilder files
2014-12-04 17:10:37 -05:00
Erick Pérez Castellanos c5131db240 application: load css file from resources 2014-12-04 17:10:34 -05:00
Erick Pérez Castellanos bee7b6fa1c build: rename instance variable and add docs 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 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 20390c1443 gcal-aplication: cleaning some code
Don't think a user will use shorcuts for changing 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 1c7483e87b gcal-window: removed unneeded title 2014-12-04 17:10:27 -05:00
Erick Pérez Castellanos 044654dab4 build: removed Clutter dependency 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 09f6261550 ui: integrated GcalDayView in GcalWindow
Initial work. Added option to GcalApplication action.
2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos dd969cf14d ui: migrating from GdHeaderBar to GtkHeaderBar 2014-12-04 17:10:20 -05:00
Erick Pérez Castellanos a30fcfc59a app: Fixed string in --version handle 2014-12-04 17:10:19 -05:00
Erick Pérez Castellanos 63a0bc2bab Updated authors 2014-12-04 17:10:18 -05:00
Erick Pérez Castellanos 262a50a32f gcal-application: save window position and size
Format fixes in gcal-application.h
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=700039
2013-05-17 14:42:21 -04:00
Erick Pérez Castellanos 95461213a5 Added command line handling.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=700041
2013-05-17 14:42:21 -04:00
Erick Pérez Castellanos 01145b8916 Migrated to Gtk+-3.8 2013-05-17 14:41:12 -04:00
Erick Pérez Castellanos 34d512f5ec Forcing the app to use always the light theme.
Formatting fixes.
2013-05-11 11:32:17 -04:00
Piotr Drąg b393f5ed1c Add translator-credits to about window 2013-01-02 02:39:39 +01:00
Erick Pérez Castellanos 8e0de96520 Added accelerators to GcalApplication actions. 2012-12-01 15:29:00 -05:00
Erick Pérez Castellanos a00ec9edc2 Hooked GcalYearView into GcalWindow and GcalApplication.
This works amost flawlessly since GcalView interface and it's methods
take care of almost everything.
Yet, this made me realize some toolbar bug.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 1062d3e435 Debarshi's suggestion about g_clear_object use.
Removed if (pointer != null) condition when using
g_clear_object.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos c3acffa9d7 Changed mode declaration for emacs. 2012-09-20 09:00:46 -04:00
Erick Pérez Castellanos 45e5eb5222 Added license-type to About dialog. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos c7aded0cdd Added artists to the About dialog. 2012-08-20 23:42:29 -04:00
William Jon McCann 5f58dc0692 Add some details to the about dialog 2012-07-13 09:54:19 -04:00
Erick Pérez Castellanos 08f5e46513 Changed toolbar button to Toggles.
Added behavior in GcalToolbar to manage the toogling mode of the view buttons
Added parameter in gcal_window_new to set the view-type initially.
2012-07-13 09:27:31 -04:00
Erick Pérez Castellanos 90900b3575 Added view action to application.
Added links to GcalWindow::active-view
Added fix to GcalWindow for checking for child/events widgets in view before
instantiation.
2012-07-11 10:50:29 -04:00
Erick Pérez Castellanos 89a941ec36 Reorganized GcalApplication source-file.
Connected settings to GcalWindow property.
2012-07-11 10:50:29 -04:00
Erick Pérez Castellanos e09ce361b0 Added GSettings to read/set the active view.
Placed code to generate G_TYPE_ENUM from my defined enums
Semi-integrated GcalWeekView
Updated TODO.
2012-07-11 10:50:28 -04:00
Erick Pérez Castellanos 07ac070f08 First approach of Event view ended.
For now the view, works only for viewing, and not for editing.
The delete button works, though.
It's needed yet a notification for an event deletion.
2012-07-03 15:20:01 -04:00
Erick Pérez Castellanos 2bda18e55e Removing _gcal prefix to indicate internal functions instead of static modifier. 2012-07-03 15:19:59 -04:00
Erick Pérez Castellanos 1b39630afa Minor details 2012-05-24 00:46:33 -04:00
Erick Pérez Castellanos deccf55055 Changes in GcalManager
Added loading active sources to GcalManager
Added objects-added signal hook, processing, and emission of events-added signal
2012-05-10 17:11:56 -04:00
Erick Pérez Castellanos 38c901e311 Added signals to GcalManager
Added internal structure to keep events, cal_clients, etc.
2012-05-09 19:45:22 -04:00