[evolution] Bug 794648 - Undo/Redo doesn't work in component Description
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 794648 - Undo/Redo doesn't work in component Description
- Date: Tue, 3 Apr 2018 10:08:20 +0000 (UTC)
commit 60ad1e7d3a7d3a580fb05d4c5057a39bf11df0b0
Author: Milan Crha <mcrha redhat com>
Date: Tue Apr 3 12:09:53 2018 +0200
Bug 794648 - Undo/Redo doesn't work in component Description
src/calendar/gui/e-comp-editor-property-part.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/calendar/gui/e-comp-editor-property-part.c b/src/calendar/gui/e-comp-editor-property-part.c
index ae6a734..aafe74e 100644
--- a/src/calendar/gui/e-comp-editor-property-part.c
+++ b/src/calendar/gui/e-comp-editor-property-part.c
@@ -552,8 +552,12 @@ e_comp_editor_property_part_string_attach_focus_tracker (ECompEditorPropertyPart
g_return_if_fail (E_IS_FOCUS_TRACKER (focus_tracker));
edit_widget = e_comp_editor_property_part_get_edit_widget (E_COMP_EDITOR_PROPERTY_PART (part_string));
- if (edit_widget)
- e_widget_undo_attach (edit_widget, focus_tracker);
+ if (edit_widget) {
+ if (GTK_IS_SCROLLED_WINDOW (edit_widget))
+ e_widget_undo_attach (gtk_bin_get_child (GTK_BIN (edit_widget)), focus_tracker);
+ else
+ e_widget_undo_attach (edit_widget, focus_tracker);
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]