Georges Basile Stavracas Neto
9ff5e05f9c
app: automatically load resources from base path
...
We don't have to load most of the menus we're currently loading
by using the very handy automatic resource loading.
This patch fixup so the app loads resources automagically.
2016-02-16 18:12:18 -02:00
Georges Basile Stavracas Neto
6283d9d025
application: update event colors when agenda changes
...
When we change a source (aka agenda) color, we have to
restart Calendar in order to see it in action.
After the work on GcalEvent, events are now able to track
the agenda's color changes, and the event widget updates
itself in response to that.
The last step was simple notifying GcalApplication when an
agenda changes, so it knows when to recreate the color schemes.
2016-02-14 12:51:32 -02:00
Georges Basile Stavracas Neto
eb360dc809
shell-provider: use GcalEvent instead of event data
...
Following the sequence of porting commits, make the Shell's
search provider class handle events using GcalEvent classes
instead of the old GcalEventData structure.
2016-02-14 12:17:37 -02:00
Cosimo Cecchi
f4d015759d
Rename icon to match app ID
...
In preparation for xdg-app.
https://bugzilla.gnome.org/show_bug.cgi?id=761375
2016-01-31 15:13:55 -06:00
Georges Basile Stavracas Neto
adc83a7a93
application: turn into a final class
...
GcalApplication is not derivable, so turn it
into a final class and get rid of the private
field.
2016-01-19 18:43:11 -02:00
Georges Basile Stavracas Neto
87ecb99090
application: remove unused import
2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto
7942677b8e
application: move GoaClient to manager
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
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
Erick Pérez Castellanos
0ac46215eb
app: make window NULL upon destruction
...
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=748166
2015-04-26 15:10:41 -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
bd2b6356b1
app: use gtk_widget_show() instead of show_all()
...
Remove comment
2015-02-16 09:31:19 -05:00
Erick Pérez Castellanos
6be8b4b5ae
app: use source-added signal to load css providers
...
After the changes of latest EDS is needed to use source-added signal
again since the some sources might take longer to connect than others.
2015-02-13 09:12:15 -05:00
Erick Pérez Castellanos
348be33329
app: event-widget CSS code for classes rewritten
2015-02-13 09:12:15 -05:00
Erick Pérez Castellanos
546b137d24
utils: removing unused functions
2015-02-06 09:21:36 -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
837c33399f
misc: remove comments and debug instructions
2015-02-06 09:21:36 -05:00
Erick Pérez Castellanos
f4799552aa
app: set initial on GcalWindow always
...
Add function to allow the search provider to set the value.
2015-02-06 09:21:34 -05:00
Erick Pérez Castellanos
4f689b22e6
app: read uuid from cli option
...
Use also a function to set the value of the event's uuid to show.
2015-02-06 09:21:34 -05:00
Erick Pérez Castellanos
46c9742a90
app: properly ordered shell search initialization and setup
2015-02-06 09:21:34 -05:00
Erick Pérez Castellanos
b3a374dbe9
app: use GcalManager:load-completed signal
...
Use this signal to load the CSS code for the widgets just one time
instead of recreating the complete CSS code once for each source connected
2015-02-06 09:21:33 -05:00
Erick Pérez Castellanos
1dd50951f6
app: add shell provider implementation skeleton
2015-02-06 09:21:33 -05:00
Erick Pérez Castellanos
b08defc0e5
app: keep a pointer to private instance data
...
This seems faster to me
2015-01-29 10:47:41 -05:00
Erick Pérez Castellanos
5071b94b14
application: use events edges styles
2015-01-22 13:47:25 -05:00
Erick Pérez Castellanos
3ac46c9a3c
misc: comments and whitespace fixes
2015-01-20 13:55:49 -05:00
Erick Pérez Castellanos
0b2367200b
copyright: update year
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos
4832f5e79e
providers: remove from screen on app::finalize
...
This fixes the quirks of decreasing the refcount after attaching the
providers to the default screen.
2015-01-09 09:16:44 -05:00
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