diff options
| author | John Bintz <me@johnbintz.com> | 2006-12-10 19:17:15 +0000 |
|---|---|---|
| committer | johncoswell <johncoswell@users.sourceforge.net> | 2006-12-10 19:17:15 +0000 |
| commit | 7a536bebe7088f881fe2d0d477ea4a59a3682f16 (patch) | |
| tree | 66925327770f91151bd2f74c8a1fb4eae0a2e873 /src/knot.cpp | |
| parent | improvements to trace dialog: siox button moved above preview frame, and cred... (diff) | |
| download | inkscape-7a536bebe7088f881fe2d0d477ea4a59a3682f16.tar.gz inkscape-7a536bebe7088f881fe2d0d477ea4a59a3682f16.zip | |
Reorder event handling code to prevent reference count problems, fixes bug #1604391
(bzr r2084)
Diffstat (limited to 'src/knot.cpp')
| -rw-r--r-- | src/knot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/knot.cpp b/src/knot.cpp index a8d694779..d65b64299 100644 --- a/src/knot.cpp +++ b/src/knot.cpp @@ -287,19 +287,19 @@ static int sp_knot_handler(SPCanvasItem *item, GdkEvent *event, SPKnot *knot) g_assert(knot != NULL); g_assert(SP_IS_KNOT(knot)); - g_object_ref(knot); - tolerance = prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100); + /* Run client universal event handler, if present */ gboolean consumed = FALSE; - /* Run client universal event handler, if present */ - g_signal_emit(knot, knot_signals[EVENT], 0, event, &consumed); if (consumed) { return TRUE; } + g_object_ref(knot); + tolerance = prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100); + switch (event->type) { case GDK_2BUTTON_PRESS: if (event->button.button == 1) { |
