aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-memos.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-memos.c')
-rw-r--r--calendar/gui/e-memos.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/gui/e-memos.c b/calendar/gui/e-memos.c
index fa92195121..71cfb4e4c1 100644
--- a/calendar/gui/e-memos.c
+++ b/calendar/gui/e-memos.c
@@ -1222,3 +1222,18 @@ e_memos_get_calendar_table (EMemos *memos)
priv = memos->priv;
return E_MEMO_TABLE (priv->memos_view);
}
+
+/**
+ * e_memos_get_preview:
+ * @memos: A memos widget.
+ *
+ * Queries the #ECalComponentMemoPreview contained in a memos widget.
+ **/
+GtkWidget *
+e_memos_get_preview (EMemos *memos)
+{
+ g_return_val_if_fail (memos != NULL, NULL);
+ g_return_val_if_fail (E_IS_MEMOS (memos), NULL);
+
+ return memos->priv->preview;
+}