[gimp] app: don't call update_layout() from buffer_changed()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't call update_layout() from buffer_changed()
- Date: Sat, 20 Feb 2010 21:50:24 +0000 (UTC)
commit 75f7e25e3a78db3933225ebcbc9c1b2c4c9c47a2
Author: Michael Natterer <mitch gimp org>
Date: Sat Feb 20 22:48:51 2010 +0100
app: don't call update_layout() from buffer_changed()
because the layout gets updated anyway when the model changes, and the
buffer is not the model, its changes are applied to the model.
app/tools/gimptexttool.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index e115df7..90077df 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -1362,6 +1362,7 @@ gimp_text_tool_apply (GimpTextTool *text_tool)
gimp_text_tool_frame_item (text_tool);
gimp_image_flush (image);
+
gimp_text_tool_update_layout (text_tool);
}
@@ -1673,8 +1674,6 @@ gimp_text_tool_buffer_changed (GtkTextBuffer *text_buffer,
{
gimp_text_tool_create_layer (text_tool, NULL);
}
-
- gimp_text_tool_update_layout (text_tool);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]