From 7d1f87e5fe8f470b9e734264d803a5c3a51f05d4 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 1 Apr 2006 03:01:26 +0000 Subject: [PATCH] turns out, all these synthesize_events were not necessary at all - they just fired fake events that i never needed --- src/arc-context.cpp | 2 -- src/rect-context.cpp | 2 -- src/spiral-context.cpp | 2 -- src/star-context.cpp | 2 -- src/widgets/toolbox.cpp | 5 ----- 5 files changed, 13 deletions(-) diff --git a/src/arc-context.cpp b/src/arc-context.cpp index 48e153638..10e38ee9a 100644 --- a/src/arc-context.cpp +++ b/src/arc-context.cpp @@ -177,7 +177,6 @@ void sp_arc_context_selection_changed(Inkscape::Selection * selection, gpointer ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener(shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events(shape_repr, &ec_shape_repr_events, ec); } } } @@ -200,7 +199,6 @@ static void sp_arc_context_setup(SPEventContext *ec) ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener(shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events(shape_repr, &ec_shape_repr_events, ec); } } diff --git a/src/rect-context.cpp b/src/rect-context.cpp index 1d6266795..053229a41 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -181,7 +181,6 @@ void sp_rect_context_selection_changed(Inkscape::Selection *selection, gpointer ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener(shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events(shape_repr, &ec_shape_repr_events, ec); } } } @@ -202,7 +201,6 @@ static void sp_rect_context_setup(SPEventContext *ec) ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener(shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events(shape_repr, &ec_shape_repr_events, ec); } } diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp index 15bf513dc..ea0ba9b64 100644 --- a/src/spiral-context.cpp +++ b/src/spiral-context.cpp @@ -183,7 +183,6 @@ sp_spiral_context_selection_changed(Inkscape::Selection *selection, gpointer dat ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener(shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events(shape_repr, &ec_shape_repr_events, ec); } } } @@ -210,7 +209,6 @@ sp_spiral_context_setup(SPEventContext *ec) ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener(shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events(shape_repr, &ec_shape_repr_events, ec); } } diff --git a/src/star-context.cpp b/src/star-context.cpp index f796f77a9..9d5d16684 100644 --- a/src/star-context.cpp +++ b/src/star-context.cpp @@ -187,7 +187,6 @@ sp_star_context_selection_changed (Inkscape::Selection * selection, gpointer dat ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener (shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events (shape_repr, &ec_shape_repr_events, ec); } } } @@ -216,7 +215,6 @@ sp_star_context_setup (SPEventContext *ec) ec->shape_repr = shape_repr; Inkscape::GC::anchor(shape_repr); sp_repr_add_listener (shape_repr, &ec_shape_repr_events, ec); - sp_repr_synthesize_events (shape_repr, &ec_shape_repr_events, ec); } } diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 6a3a33183..5eacf74b4 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -1086,7 +1086,6 @@ sp_star_toolbox_selection_changed(Inkscape::Selection *selection, GtkObject *tbl g_object_set_data(G_OBJECT(tbl), "repr", repr); Inkscape::GC::anchor(repr); sp_repr_add_listener(repr, &star_tb_repr_events, tbl); - sp_repr_synthesize_events(repr, &star_tb_repr_events, tbl); } } else { // FIXME: implement averaging of all parameters for multiple selected stars @@ -1480,7 +1479,6 @@ sp_rect_toolbox_selection_changed(Inkscape::Selection *selection, GtkObject *tbl g_object_set_data(G_OBJECT(tbl), "item", item); Inkscape::GC::anchor(repr); sp_repr_add_listener(repr, &rect_tb_repr_events, tbl); - sp_repr_synthesize_events(repr, &rect_tb_repr_events, tbl); } } else { // FIXME: implement averaging of all parameters for multiple selected @@ -1749,7 +1747,6 @@ sp_spiral_toolbox_selection_changed(Inkscape::Selection *selection, GtkObject *t g_object_set_data(G_OBJECT(tbl), "repr", repr); Inkscape::GC::anchor(repr); sp_repr_add_listener(repr, &spiral_tb_repr_events, tbl); - sp_repr_synthesize_events(repr, &spiral_tb_repr_events, tbl); } } else { // FIXME: implement averaging of all parameters for multiple selected @@ -2333,7 +2330,6 @@ sp_arc_toolbox_selection_changed(Inkscape::Selection *selection, GtkObject *tbl) g_object_set_data(G_OBJECT(tbl), "repr", repr); Inkscape::GC::anchor(repr); sp_repr_add_listener(repr, &arc_tb_repr_events, tbl); - sp_repr_synthesize_events(repr, &arc_tb_repr_events, tbl); } } else { // FIXME: implement averaging of all parameters for multiple selected @@ -3144,7 +3140,6 @@ sp_connector_toolbox_new(SPDesktop *desktop) g_object_set_data(G_OBJECT(tbl), "repr", repr); Inkscape::GC::anchor(repr); sp_repr_add_listener(repr, &connector_tb_repr_events, tbl); - sp_repr_synthesize_events(repr, &connector_tb_repr_events, tbl); } return tbl; -- 2.30.2