From 0b34fc745864c8d4572c556d43fbfb30c607a310 Mon Sep 17 00:00:00 2001 From: gustav_b Date: Fri, 6 Oct 2006 22:13:54 +0000 Subject: Implement singleton behaviour for undo history dialog. Make sure event log gets created on SPDesktop::change_document. (bzr r1772) --- src/event-log.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/event-log.cpp') diff --git a/src/event-log.cpp b/src/event-log.cpp index 751616d30..08fb45f9b 100644 --- a/src/event-log.cpp +++ b/src/event-log.cpp @@ -77,7 +77,7 @@ EventLog::notifyUndoEvent(Event* log) Gtk::TreePath curr_path = _event_list_store->get_path(_curr_event); _event_list_view->expand_to_path(curr_path); _event_list_selection->select(curr_path); - _event_list_view->scroll_to_row(curr_path); + _event_list_view->scroll_to_row(curr_path); (*_callback_connections)[CALLB_EXPAND].block(false); (*_callback_connections)[CALLB_SELECTION_CHANGE].block(false); @@ -135,7 +135,7 @@ EventLog::notifyRedoEvent(Event* log) _event_list_view->expand_to_path(curr_path); _event_list_selection->select(curr_path); - _event_list_view->scroll_to_row(curr_path); + _event_list_view->scroll_to_row(curr_path); (*_callback_connections)[CALLB_EXPAND].block(false); (*_callback_connections)[CALLB_SELECTION_CHANGE].block(false); @@ -219,7 +219,7 @@ EventLog::notifyUndoCommitEvent(Event* log) _event_list_view->expand_to_path(curr_path); _event_list_selection->select(curr_path); - _event_list_view->scroll_to_row(curr_path); + _event_list_view->scroll_to_row(curr_path); (*_callback_connections)[CALLB_EXPAND].block(false); (*_callback_connections)[CALLB_SELECTION_CHANGE].block(false); -- cgit v1.2.3