diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-08-25 07:03:19 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-08-25 07:03:19 +0000 |
| commit | 5d6f51f32ca2356b0d6155015457a83e60b314e8 (patch) | |
| tree | 835131f8041d12103ea82dc6b23917443f61cd42 /src/seltrans.cpp | |
| parent | I peeled back my changes because of some deep error. (diff) | |
| download | inkscape-5d6f51f32ca2356b0d6155015457a83e60b314e8.tar.gz inkscape-5d6f51f32ca2356b0d6155015457a83e60b314e8.zip | |
peeled back the gboolean code as it hit on some complexity theory principles...
need to rethink and incrementally change gbooleans to bools
(bzr r1637)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 31e69f7ad..675cb672e 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -53,11 +53,11 @@ static void sp_sel_trans_handle_grab(SPKnot *knot, guint state, gpointer data); static void sp_sel_trans_handle_ungrab(SPKnot *knot, guint state, gpointer data); static void sp_sel_trans_handle_click(SPKnot *knot, guint state, gpointer data); static void sp_sel_trans_handle_new_event(SPKnot *knot, NR::Point *position, guint32 state, gpointer data); -static bool sp_sel_trans_handle_request(SPKnot *knot, NR::Point *p, guint state, bool *data); +static gboolean sp_sel_trans_handle_request(SPKnot *knot, NR::Point *p, guint state, gboolean *data); extern GdkPixbuf *handles[]; -static bool sp_seltrans_handle_event(SPKnot *knot, GdkEvent *event, gpointer) +static gboolean sp_seltrans_handle_event(SPKnot *knot, GdkEvent *event, gpointer) { switch (event->type) { case GDK_MOTION_NOTIFY: @@ -609,7 +609,7 @@ static void sp_sel_trans_handle_new_event(SPKnot *knot, NR::Point *position, gui ); } -static bool sp_sel_trans_handle_request(SPKnot *knot, NR::Point *position, guint state, bool *data) +static gboolean sp_sel_trans_handle_request(SPKnot *knot, NR::Point *position, guint state, gboolean *data) { return SP_SELECT_CONTEXT(knot->desktop->event_context)->_seltrans->handleRequest( knot, position, state, *(SPSelTransHandle const *) data @@ -688,7 +688,7 @@ void Inkscape::SelTrans::handleNewEvent(SPKnot *knot, NR::Point *position, guint } -bool Inkscape::SelTrans::handleRequest(SPKnot *knot, NR::Point *position, guint state, SPSelTransHandle const &handle) +gboolean Inkscape::SelTrans::handleRequest(SPKnot *knot, NR::Point *position, guint state, SPSelTransHandle const &handle) { if (!SP_KNOT_IS_GRABBED(knot)) { return TRUE; @@ -752,37 +752,37 @@ static double sign(double const x) : 1 ); } -bool sp_sel_trans_scale_request(Inkscape::SelTrans *seltrans, +gboolean sp_sel_trans_scale_request(Inkscape::SelTrans *seltrans, SPSelTransHandle const &, NR::Point &pt, guint state) { return seltrans->scaleRequest(pt, state); } -bool sp_sel_trans_stretch_request(Inkscape::SelTrans *seltrans, +gboolean sp_sel_trans_stretch_request(Inkscape::SelTrans *seltrans, SPSelTransHandle const &handle, NR::Point &pt, guint state) { return seltrans->stretchRequest(handle, pt, state); } -bool sp_sel_trans_skew_request(Inkscape::SelTrans *seltrans, +gboolean sp_sel_trans_skew_request(Inkscape::SelTrans *seltrans, SPSelTransHandle const &handle, NR::Point &pt, guint state) { return seltrans->skewRequest(handle, pt, state); } -bool sp_sel_trans_rotate_request(Inkscape::SelTrans *seltrans, +gboolean sp_sel_trans_rotate_request(Inkscape::SelTrans *seltrans, SPSelTransHandle const &, NR::Point &pt, guint state) { return seltrans->rotateRequest(pt, state); } -bool sp_sel_trans_center_request(Inkscape::SelTrans *seltrans, +gboolean sp_sel_trans_center_request(Inkscape::SelTrans *seltrans, SPSelTransHandle const &, NR::Point &pt, guint state) { return seltrans->centerRequest(pt, state); } -bool Inkscape::SelTrans::scaleRequest(NR::Point &pt, guint state) +gboolean Inkscape::SelTrans::scaleRequest(NR::Point &pt, guint state) { using NR::X; using NR::Y; @@ -890,7 +890,7 @@ bool Inkscape::SelTrans::scaleRequest(NR::Point &pt, guint state) return TRUE; } -bool Inkscape::SelTrans::stretchRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state) +gboolean Inkscape::SelTrans::stretchRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state) { using NR::X; using NR::Y; @@ -1002,7 +1002,7 @@ bool Inkscape::SelTrans::stretchRequest(SPSelTransHandle const &handle, NR::Poin return TRUE; } -bool Inkscape::SelTrans::skewRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state) +gboolean Inkscape::SelTrans::skewRequest(SPSelTransHandle const &handle, NR::Point &pt, guint state) { using NR::X; using NR::Y; @@ -1092,7 +1092,7 @@ bool Inkscape::SelTrans::skewRequest(SPSelTransHandle const &handle, NR::Point & return TRUE; } -bool Inkscape::SelTrans::rotateRequest(NR::Point &pt, guint state) +gboolean Inkscape::SelTrans::rotateRequest(NR::Point &pt, guint state) { int snaps = prefs_get_int_attribute("options.rotationsnapsperpi", "value", 12); @@ -1140,7 +1140,7 @@ bool Inkscape::SelTrans::rotateRequest(NR::Point &pt, guint state) return TRUE; } -bool Inkscape::SelTrans::centerRequest(NR::Point &pt, guint state) +gboolean Inkscape::SelTrans::centerRequest(NR::Point &pt, guint state) { using NR::X; using NR::Y; |
