app: implemented sync action
Useful when the local calendar differs from the remote calendar (i.e. you added an event at Google Calendar).
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
3887951323
commit
2e8b677d6a
@@ -64,6 +64,10 @@ static void gcal_application_show_about (GSimpleAction *
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
|
||||
static void gcal_application_sync (GSimpleAction *sync,
|
||||
GVariant *parameter,
|
||||
gpointer app);
|
||||
|
||||
static void gcal_application_quit (GSimpleAction *simple,
|
||||
GVariant *parameter,
|
||||
gpointer user_data);
|
||||
@@ -83,6 +87,7 @@ static GOptionEntry gcal_application_goptions[] = {
|
||||
|
||||
static const GActionEntry gcal_app_entries[] = {
|
||||
{ "new", gcal_application_create_new_event },
|
||||
{ "sync", gcal_application_sync },
|
||||
{ "search", gcal_application_launch_search },
|
||||
{ "about", gcal_application_show_about },
|
||||
{ "quit", gcal_application_quit },
|
||||
@@ -264,6 +269,18 @@ gcal_application_create_new_event (GSimpleAction *new_event,
|
||||
gcal_window_new_event (GCAL_WINDOW (priv->window));
|
||||
}
|
||||
|
||||
static void
|
||||
gcal_application_sync (GSimpleAction *sync,
|
||||
GVariant *parameter,
|
||||
gpointer app)
|
||||
{
|
||||
GcalApplicationPrivate *priv;
|
||||
|
||||
priv = gcal_application_get_instance_private (GCAL_APPLICATION (app));
|
||||
|
||||
gcal_manager_refresh (priv->manager);
|
||||
}
|
||||
|
||||
static void
|
||||
gcal_application_launch_search (GSimpleAction *search,
|
||||
GVariant *parameter,
|
||||
|
||||
Reference in New Issue
Block a user