aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/imagebang.c20
-rw-r--r--src/menubutton.c4
2 files changed, 12 insertions, 12 deletions
diff --git a/src/imagebang.c b/src/imagebang.c
index be1d43c..9401736 100644
--- a/src/imagebang.c
+++ b/src/imagebang.c
@@ -42,11 +42,11 @@ static void imagebang_bang(t_imagebang *x)
t_glist* glist = glist_getcanvas(x->glist);
if(x->flashing) {
- sys_vgui(".x%x.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_a);
+ sys_vgui(".x%lx.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_a);
clock_delay(x->clock_brk, 50);
//x->flashed = 1;
} else {
- sys_vgui(".x%x.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_b);
+ sys_vgui(".x%lx.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_b);
x->flashing = 1;
}
@@ -63,7 +63,7 @@ static void imagebang_flash_timeout(t_imagebang *x)
{
t_glist* glist = glist_getcanvas(x->glist);
x->flashing = 0;
- sys_vgui(".x%x.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_a);
+ sys_vgui(".x%lx.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_a);
}
@@ -71,7 +71,7 @@ static void imagebang_brk_timeout(t_imagebang *x)
{
t_glist* glist = glist_getcanvas(x->glist);
x->flashing = 1;
- sys_vgui(".x%x.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_b);
+ sys_vgui(".x%lx.c itemconfigure %ximage -image %x_imagebang \n", glist, x,x->image_b);
}
@@ -111,7 +111,7 @@ static void imagebang_drawme(t_imagebang *x, t_glist *glist, int firsttime) {
DEBUG(post("Rendering: \n %x_imagebang:%s \n %x_imagebang:%s",x->image_a,x->image_a->s_name,x->image_b,x->image_b->s_name);)
- sys_vgui(".x%x.c create image %d %d -anchor nw -image %x_imagebang -disabledimage %x_imagebang -tags %ximage\n",
+ sys_vgui(".x%lx.c create image %d %d -anchor nw -image %x_imagebang -disabledimage %x_imagebang -tags %ximage\n",
glist_getcanvas(glist),
text_xpix(&x->x_obj, glist), text_ypix(&x->x_obj, glist),x->image_a,x->image_b,x);
@@ -120,7 +120,7 @@ static void imagebang_drawme(t_imagebang *x, t_glist *glist, int firsttime) {
} else {
- sys_vgui(".x%x.c coords %ximage %d %d\n",
+ sys_vgui(".x%lx.c coords %ximage %d %d\n",
glist_getcanvas(glist), x,
text_xpix(&x->x_obj, glist), text_ypix(&x->x_obj, glist));
}
@@ -131,7 +131,7 @@ static void imagebang_drawme(t_imagebang *x, t_glist *glist, int firsttime) {
void imagebang_erase(t_imagebang* x,t_glist* glist)
{
int n;
- sys_vgui(".x%x.c delete %ximage\n",
+ sys_vgui(".x%lx.c delete %ximage\n",
glist_getcanvas(glist), x);
}
@@ -162,7 +162,7 @@ static void imagebang_displace(t_gobj *z, t_glist *glist,
t_imagebang *x = (t_imagebang *)z;
x->x_obj.te_xpix += dx;
x->x_obj.te_ypix += dy;
- sys_vgui(".x%x.c coords %xSEL %d %d %d %d\n",
+ sys_vgui(".x%lx.c coords %xSEL %d %d %d %d\n",
glist_getcanvas(glist), x,
text_xpix(&x->x_obj, glist), text_ypix(&x->x_obj, glist),
text_xpix(&x->x_obj, glist) + x->width, text_ypix(&x->x_obj, glist) + x->height);
@@ -175,7 +175,7 @@ static void imagebang_select(t_gobj *z, t_glist *glist, int state)
{
t_imagebang *x = (t_imagebang *)z;
if (state) {
- sys_vgui(".x%x.c create rectangle \
+ sys_vgui(".x%lx.c create rectangle \
%d %d %d %d -tags %xSEL -outline blue\n",
glist_getcanvas(glist),
text_xpix(&x->x_obj, glist), text_ypix(&x->x_obj, glist),
@@ -183,7 +183,7 @@ static void imagebang_select(t_gobj *z, t_glist *glist, int state)
x);
}
else {
- sys_vgui(".x%x.c delete %xSEL\n",
+ sys_vgui(".x%lx.c delete %xSEL\n",
glist_getcanvas(glist), x);
}
diff --git a/src/menubutton.c b/src/menubutton.c
index 5ad264c..05d22dc 100644
--- a/src/menubutton.c
+++ b/src/menubutton.c
@@ -239,7 +239,7 @@ static void menubutton_colors(t_menubutton* x, t_symbol* s, int argc, t_atom* ar
}
if(menubutton_w_is_visible(x)) {
- //sys_vgui(".x%x.c.s%x configure -background \"%s\" -foreground \"%s\"\n", x->x_glist, x, x->bg_color->s_name,x->fg_color->s_name);
+ //sys_vgui(".x%lx.c.s%x configure -background \"%s\" -foreground \"%s\"\n", x->x_glist, x, x->bg_color->s_name,x->fg_color->s_name);
menubutton_w_apply_colors(x);
}
}
@@ -367,7 +367,7 @@ static void menubutton_align( t_menubutton* x, t_float f) {
x->halign = -1;
}
if(menubutton_w_is_visible(x)) {
- //sys_vgui(".x%x.c.s%x configure -background \"%s\" -foreground \"%s\"\n", x->x_glist, x, x->bg_color->s_name,x->fg_color->s_name);
+ //sys_vgui(".x%lx.c.s%x configure -background \"%s\" -foreground \"%s\"\n", x->x_glist, x, x->bg_color->s_name,x->fg_color->s_name);
menubutton_w_set_align(x);
}
}