summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-06-26 07:35:31 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-06-26 07:35:31 +0000
commit45388a1590802749411334a35071c756b22f702f (patch)
tree13d6c364fe8c271dad637f7beb86702f15d67f40 /src/widgets/toolbox.cpp
parentfix effect to work after the lxml conversion (diff)
downloadinkscape-45388a1590802749411334a35071c756b22f702f.tar.gz
inkscape-45388a1590802749411334a35071c756b22f702f.zip
Complete fix of cast causing compile error on x86-64 (see commit no. 15178)
(bzr r3107)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 67338cbcf..d3018b0d9 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -2145,7 +2145,7 @@ static void sp_3dbox_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainAction
"toggle_vp_x",
Inkscape::ICON_SIZE_DECORATION );
gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
- g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_3dbox_toggle_vp_changed), (gpointer) 0);
+ g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_3dbox_toggle_vp_changed), GUINT_TO_POINTER(0));
if (SP3DBoxContext::current_perspective) {
toggled = SP3DBoxContext::current_perspective->get_vanishing_point(Box3D::X)->is_finite();
}
@@ -2160,7 +2160,7 @@ static void sp_3dbox_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainAction
"toggle_vp_y",
Inkscape::ICON_SIZE_DECORATION );
gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
- g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_3dbox_toggle_vp_changed), (gpointer) 1);
+ g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_3dbox_toggle_vp_changed), GUINT_TO_POINTER(1));
if (SP3DBoxContext::current_perspective) {
toggled = SP3DBoxContext::current_perspective->get_vanishing_point(Box3D::Y)->is_finite();
}
@@ -2175,7 +2175,7 @@ static void sp_3dbox_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainAction
"toggle_vp_z",
Inkscape::ICON_SIZE_DECORATION );
gtk_action_group_add_action( mainActions, GTK_ACTION( act ) );
- g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_3dbox_toggle_vp_changed), (gpointer) 2);
+ g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(sp_3dbox_toggle_vp_changed), GUINT_TO_POINTER(2));
if (SP3DBoxContext::current_perspective) {
toggled = SP3DBoxContext::current_perspective->get_vanishing_point(Box3D::Z)->is_finite();
}