mirror of https://github.com/GNOME/gimp.git
don't emit signals by name if we know the signal ID.
2007-01-24 Sven Neumann <sven@gimp.org> * app/tools/gimprectangletool.c: don't emit signals by name if we know the signal ID. svn path=/trunk/; revision=21776
This commit is contained in:
parent
33b382698f
commit
d8983fcc8d
|
@ -1,3 +1,8 @@
|
|||
2007-01-24 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimprectangletool.c: don't emit signals by name if we
|
||||
know the signal ID.
|
||||
|
||||
2007-01-24 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimprectangletool.c: reverted previous change.
|
||||
|
|
|
@ -640,7 +640,8 @@ gimp_rectangle_tool_button_release (GimpTool *tool,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_signal_emit_by_name (rectangle, "rectangle-changed", NULL);
|
||||
g_signal_emit (rectangle,
|
||||
gimp_rectangle_tool_signals[RECTANGLE_CHANGED], 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1332,7 +1333,8 @@ gimp_rectangle_tool_key_press (GimpTool *tool,
|
|||
|
||||
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
|
||||
|
||||
g_signal_emit_by_name (rectangle, "rectangle-changed", NULL);
|
||||
g_signal_emit (rectangle,
|
||||
gimp_rectangle_tool_signals[RECTANGLE_CHANGED], 0);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -1843,7 +1845,7 @@ gimp_rectangle_tool_synthesize_motion (GimpTool *tool,
|
|||
|
||||
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
|
||||
|
||||
g_signal_emit_by_name (tool, "rectangle-changed", NULL);
|
||||
g_signal_emit (tool, gimp_rectangle_tool_signals[RECTANGLE_CHANGED], 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue