diff options
author | Milan Crha <mcrha@redhat.com> | 2014-01-11 00:18:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-01-11 00:18:49 +0800 |
commit | 63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c (patch) | |
tree | 4af77bd941992bb173dac1e4480f51fb30fb5b1a /calendar/gui/dialogs/memo-page.c | |
parent | 04ed82b0530ca7fa34008876b056378dff6b76fb (diff) | |
download | gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.gz gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.bz2 gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.lz gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.xz gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.tar.zst gsoc2013-evolution-63a1f0eab3e15e0d64e24bd5a2659a61347cfe9c.zip |
Bug #333184 - Add Undo support to component editors
Diffstat (limited to 'calendar/gui/dialogs/memo-page.c')
-rw-r--r-- | calendar/gui/dialogs/memo-page.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index 43b07c4afb..12126a6fc0 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -374,6 +374,10 @@ memo_page_fill_widgets (CompEditorPage *page, sensitize_widgets (mpage); + e_widget_undo_reset (priv->summary_entry); + e_widget_undo_reset (priv->categories); + e_widget_undo_reset (priv->memo_content); + return TRUE; } @@ -1213,11 +1217,13 @@ memo_page_construct (MemoPage *mpage) CompEditor *editor; CompEditorFlags flags; ESourceRegistry *registry; + EFocusTracker *focus_tracker; EClientCache *client_cache; priv = mpage->priv; editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (mpage)); + focus_tracker = comp_editor_get_focus_tracker (editor); flags = comp_editor_get_flags (editor); shell = comp_editor_get_shell (editor); @@ -1241,6 +1247,9 @@ memo_page_construct (MemoPage *mpage) } e_spell_text_view_attach (GTK_TEXT_VIEW (priv->memo_content)); + e_widget_undo_attach (priv->summary_entry, focus_tracker); + e_widget_undo_attach (priv->categories, focus_tracker); + e_widget_undo_attach (priv->memo_content, focus_tracker); if (flags & COMP_EDITOR_IS_SHARED) { GtkComboBox *combo_box; |