summaryrefslogtreecommitdiff
path: root/src/xwidget.c
diff options
context:
space:
mode:
authorJoakim Verona <joakim@verona.se>2015-01-21 23:11:01 +0100
committerJoakim Verona <joakim@verona.se>2015-01-21 23:11:01 +0100
commit069f101ecf15ee9c589d1e172743412eac38318f (patch)
tree59169fe0e525602766b54bd52ef111e0e7a9dcc3 /src/xwidget.c
parent9e2161615517d16337ab8f56cb836659e0b2dcce (diff)
downloademacs-069f101ecf15ee9c589d1e172743412eac38318f.tar.gz
Cleanup
Diffstat (limited to 'src/xwidget.c')
-rw-r--r--src/xwidget.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/xwidget.c b/src/xwidget.c
index 780bc2105dc..747e803acc9 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -1055,9 +1055,6 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
//the widget can also move inside the clipping area, which happens later
moved = (xv->x + xv->clip_left != x+clip_left)
|| ((xv->y + xv->clip_top)!= (y+clip_top));
- if(moved) printf ("lxwidget moved: id:%d (%d,%d)->(%d,%d) y+clip_top:%d\n", xww, xv->x, xv->y, x, y, y + clip_top);
- else
- printf ("lxwidget DIDNT move: id:%d (%d,%d)->(%d,%d) y+clip_top:%d\n", xww, xv->x, xv->y, x, y, y + clip_top);
xv->x = x;
xv->y = y;
if (moved) //has it moved?
@@ -1079,8 +1076,6 @@ x_draw_xwidget_glyph_string (struct glyph_string *s)
|| (xv->clip_left != clip_left)){
gtk_widget_set_size_request (xv->widgetwindow, clip_right + clip_left, clip_bottom + clip_top);
gtk_fixed_move(GTK_FIXED(xv->widgetwindow), xv->widget, -clip_left, -clip_top);
- printf("reclip %d %d -> %d %d clip_top:%d clip_left:%d\n",xv->clip_right, xv->clip_bottom, clip_right, clip_bottom, clip_top , clip_left);
-
xv->clip_right = clip_right; xv->clip_bottom = clip_bottom; xv->clip_top = clip_top;xv->clip_left = clip_left;
}
@@ -1744,23 +1739,6 @@ lookup_xwidget (Lisp_Object spec)
value = xwidget_spec_value (spec, QCxwidget, &found1);
xw = XXWIDGET(value);
- /* value = xwidget_spec_value (spec, QCtype, &found); */
- /* xw->type = SYMBOLP (value) ? value : Qbutton; //default to button */
- /* value = xwidget_spec_value (spec, QCtitle, &found2); */
- /* xw->title = STRINGP (value) ? (char *) SDATA (value) : "?"; //funky cast FIXME TODO */
-
- /* value = xwidget_spec_value (spec, QCheight, NULL); */
- /* xw->height = INTEGERP (value) ? XFASTINT (value) : 50; */
- /* value = xwidget_spec_value (spec, QCwidth, NULL); */
- /* xw->width = INTEGERP (value) ? XFASTINT (value) : 50; */
-
- /* value = xwidget_spec_value (spec, QCplist, NULL); */
- /* xw->plist = value; */
- /* coordinates are not known here */
- printf ("lookup_xwidget xwidget_id:%d type:%d found:%d %d %d title:'%s' (%d,%d)\n", xw,
- xw->type, found, found1, found2, xw->title, xw->height, xw->width);
-
- //assert_valid_xwidget_id (id, "lookup_xwidget");
return xw;
}