[evolution/gnome-3-28] 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/gnome-3-28] Bug 794648 - Undo/Redo doesn't work in component Description
- Date: Tue, 3 Apr 2018 10:10:16 +0000 (UTC)
commit 3ae62a6432a90573e6f48cc441ae90d2f30633a2
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 07b7c5b..ab4f0de 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]