[gnome-calendar/calendar-management] app: implements the app.source action
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-management] app: implements the app.source action
- Date: Wed, 14 Jan 2015 02:32:32 +0000 (UTC)
commit 2ce3c6c6688f1eebff45797790f57fccae1ccfb2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jan 14 00:31:14 2015 -0200
app: implements the app.source action
This action shows the sources dialog.
src/gcal-application.c | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-application.c b/src/gcal-application.c
index e3a3890..fc58a35 100644
--- a/src/gcal-application.c
+++ b/src/gcal-application.c
@@ -75,6 +75,10 @@ static void gcal_application_show_about (GSimpleAction *
GVariant *parameter,
gpointer user_data);
+static void gcal_application_show_sources_dialog (GSimpleAction *simple,
+ GVariant *parameter,
+ gpointer user_data);
+
static void gcal_application_sync (GSimpleAction *sync,
GVariant *parameter,
gpointer app);
@@ -104,6 +108,7 @@ static GOptionEntry gcal_application_goptions[] = {
static const GActionEntry gcal_app_entries[] = {
{ "new", gcal_application_create_new_event },
+ { "source", gcal_application_show_sources_dialog },
{ "sync", gcal_application_sync },
{ "search", gcal_application_launch_search },
{ "about", gcal_application_show_about },
@@ -367,6 +372,25 @@ gcal_application_create_new_event (GSimpleAction *new_event,
gcal_window_new_event (GCAL_WINDOW (priv->window));
}
+/**
+ * gcal_application_show_sources_dialog:
+ *
+ * Show the source management dialog.
+ *
+ * Returns:
+ */
+static void
+gcal_application_show_sources_dialog (GSimpleAction *sync,
+ GVariant *parameter,
+ gpointer app)
+{
+ GcalApplicationPrivate *priv;
+
+ priv = gcal_application_get_instance_private (GCAL_APPLICATION (app));
+
+ gcal_window_show_sources_dialog (GCAL_WINDOW (priv->window));
+}
+
static void
gcal_application_sync (GSimpleAction *sync,
GVariant *parameter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]