[gimp] app: remove gimp_text_tool_update_proxy()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove gimp_text_tool_update_proxy()
- Date: Sat, 20 Feb 2010 18:32:16 +0000 (UTC)
commit 487336fc091b69cfdffb3c75e0e1b912ba2b540c
Author: Michael Natterer <mitch gimp org>
Date: Sat Feb 20 19:31:27 2010 +0100
app: remove gimp_text_tool_update_proxy()
and move its code into gimp_text_tool_buffer_changed() which was its
only caller.
app/tools/gimptexttool.c | 18 ++++++------------
app/tools/gimptexttool.h | 1 -
2 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 78e3712..3ffe11b 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -158,7 +158,7 @@ static gboolean gimp_text_tool_set_drawable (GimpTextTool *text_tool,
GimpDrawable *drawable,
gboolean confirm);
-static void gimp_text_tool_text_buffer_changed (GtkTextBuffer *text_buffer,
+static void gimp_text_tool_buffer_changed (GtkTextBuffer *text_buffer,
GimpTextTool *text_tool);
static gint gimp_text_tool_xy_to_offset (GimpTextTool *text_tool,
@@ -247,7 +247,7 @@ gimp_text_tool_init (GimpTextTool *text_tool)
gtk_text_buffer_set_text (text_tool->text_buffer, "", -1);
g_signal_connect (text_tool->text_buffer, "changed",
- G_CALLBACK (gimp_text_tool_text_buffer_changed),
+ G_CALLBACK (gimp_text_tool_buffer_changed),
text_tool);
text_tool->handle_rectangle_change_complete = TRUE;
@@ -1221,13 +1221,13 @@ gimp_text_tool_text_notify (GimpText *text,
if (strcmp (pspec->name, "text") == 0)
{
g_signal_handlers_block_by_func (text_tool->text_buffer,
- gimp_text_tool_text_buffer_changed,
+ gimp_text_tool_buffer_changed,
text_tool);
gtk_text_buffer_set_text (text_tool->text_buffer, text->text, -1);
g_signal_handlers_unblock_by_func (text_tool->text_buffer,
- gimp_text_tool_text_buffer_changed,
+ gimp_text_tool_buffer_changed,
text_tool);
/* force change of cursor and selection display */
@@ -1671,14 +1671,8 @@ gimp_text_tool_set_drawable (GimpTextTool *text_tool,
}
static void
-gimp_text_tool_text_buffer_changed (GtkTextBuffer *text_buffer,
- GimpTextTool *text_tool)
-{
- gimp_text_tool_update_proxy (text_tool);
-}
-
-void
-gimp_text_tool_update_proxy (GimpTextTool *text_tool)
+gimp_text_tool_buffer_changed (GtkTextBuffer *text_buffer,
+ GimpTextTool *text_tool)
{
if (text_tool->text)
{
diff --git a/app/tools/gimptexttool.h b/app/tools/gimptexttool.h
index ef9c39f..1f37286 100644
--- a/app/tools/gimptexttool.h
+++ b/app/tools/gimptexttool.h
@@ -114,7 +114,6 @@ void gimp_text_tool_create_vectors_warped (GimpTextTool *text_tool);
/* only for the text editor */
void gimp_text_tool_update_layout (GimpTextTool *text_tool);
-void gimp_text_tool_update_proxy (GimpTextTool *text_tool);
#endif /* __GIMP_TEXT_TOOL_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]