[gnome-calendar/calendar-management] window: add public API to show the sources dialog
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/calendar-management] window: add public API to show the sources dialog
- Date: Wed, 14 Jan 2015 02:32:22 +0000 (UTC)
commit 93992bc185e00cf1b1cf167226347f629e3ac152
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jan 14 00:30:09 2015 -0200
window: add public API to show the sources dialog
This will allow inserting an app menu entry.
src/gcal-window.c | 19 +++++++++++++++++++
src/gcal-window.h | 2 ++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index f9145f1..2f194ad 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1539,3 +1539,22 @@ gcal_window_set_search_mode (GcalWindow *window,
gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (priv->search_bar),
enabled);
}
+
+/**
+ * gcal_window_show_sources_dialog:
+ *
+ * Shows the sources manager dialog.
+ * Note that the dialog works completely
+ * independent from the window.
+ *
+ * Returns:
+ */
+void
+gcal_window_show_sources_dialog (GcalWindow *window)
+{
+ GcalWindowPrivate *priv;
+
+ priv = gcal_window_get_instance_private (window);
+
+ gtk_dialog_run (priv->source_dialog);
+}
diff --git a/src/gcal-window.h b/src/gcal-window.h
index 0ba14ab..8f32dcc 100644
--- a/src/gcal-window.h
+++ b/src/gcal-window.h
@@ -60,6 +60,8 @@ void gcal_window_new_event (GcalWindow *window);
void gcal_window_set_search_mode (GcalWindow *window,
gboolean enabled);
+void gcal_window_show_sources_dialog (GcalWindow *window);
+
G_END_DECLS
#endif /* __GCAL_WINDOW_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]