[gimp] app: remove "mark_set" callback
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove "mark_set" callback
- Date: Thu, 18 Feb 2010 18:54:45 +0000 (UTC)
commit becc85683c277386977049dd0b9d207696e9a537
Author: Michael Natterer <mitch gimp org>
Date: Thu Feb 18 19:53:44 2010 +0100
app: remove "mark_set" callback
There is no reason to recreate the layout when the cursor or selection
bound move, so remove the entire callback and all the signal
blocking/unblocking.
app/tools/gimptexttool.c | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index a3ba415..8b1bdb7 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -160,10 +160,6 @@ static gboolean gimp_text_tool_set_drawable (GimpTextTool *text_tool,
static void gimp_text_tool_text_buffer_changed (GtkTextBuffer *text_buffer,
GimpTextTool *text_tool);
-static void gimp_text_tool_text_buffer_mark_set (GtkTextBuffer *text_buffer,
- GtkTextIter *location,
- GtkTextMark *mark,
- GimpTextTool *text_tool);
static gint gimp_text_tool_xy_to_offset (GimpTextTool *text_tool,
gdouble x,
@@ -252,9 +248,6 @@ gimp_text_tool_init (GimpTextTool *text_tool)
g_signal_connect (text_tool->text_buffer, "changed",
G_CALLBACK (gimp_text_tool_text_buffer_changed),
text_tool);
- g_signal_connect (text_tool->text_buffer, "mark-set",
- G_CALLBACK (gimp_text_tool_text_buffer_mark_set),
- text_tool);
text_tool->handle_rectangle_change_complete = TRUE;
@@ -382,10 +375,6 @@ gimp_text_tool_button_press (GimpTool *tool,
if (press_type == GIMP_BUTTON_PRESS_NORMAL)
{
- g_signal_handlers_block_by_func (buffer,
- gimp_text_tool_text_buffer_mark_set,
- text_tool);
-
text_tool->selecting = FALSE;
if (gimp_rectangle_tool_point_in_rectangle (rect_tool,
@@ -581,10 +570,6 @@ gimp_text_tool_button_release (GimpTool *tool,
gimp_text_tool_frame_item (text_tool);
- g_signal_handlers_unblock_by_func (text_tool->text_buffer,
- gimp_text_tool_text_buffer_mark_set,
- text_tool);
-
return;
}
}
@@ -607,10 +592,6 @@ gimp_text_tool_button_release (GimpTool *tool,
release_type, display);
text_tool->handle_rectangle_change_complete = TRUE;
-
- g_signal_handlers_unblock_by_func (text_tool->text_buffer,
- gimp_text_tool_text_buffer_mark_set,
- text_tool);
}
void
@@ -1818,15 +1799,6 @@ gimp_text_tool_text_buffer_changed (GtkTextBuffer *text_buffer,
gimp_text_tool_update_proxy (text_tool);
}
-static void
-gimp_text_tool_text_buffer_mark_set (GtkTextBuffer *text_buffer,
- GtkTextIter *iter,
- GtkTextMark *mark,
- GimpTextTool *text_tool)
-{
- gimp_text_tool_update_layout (text_tool);
-}
-
void
gimp_text_tool_update_proxy (GimpTextTool *text_tool)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]