Mercurial > hg > xemacs-beta
diff src/toolbar-x.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | 11054d720c21 |
line wrap: on
line diff
--- a/src/toolbar-x.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/toolbar-x.c Mon Aug 13 11:20:41 2007 +0200 @@ -77,8 +77,7 @@ /* Draw the outline. */ x_output_shadows (f, sx, sy, swidth, sheight, top_shadow_gc, - bottom_shadow_gc, background_gc, shadow_thickness, - EDGE_ALL); + bottom_shadow_gc, background_gc, shadow_thickness); /* Blank the middle. */ XFillRectangle (dpy, x_win, background_gc, sx + shadow_thickness, @@ -109,7 +108,7 @@ GC top_shadow_gc, bottom_shadow_gc, background_gc; Lisp_Object instance, frame, window, glyph; struct toolbar_button *tb = XTOOLBAR_BUTTON (button); - Lisp_Image_Instance *p; + struct Lisp_Image_Instance *p; struct window *w; int vertical = tb->vertical; int border_width = tb->border_width; @@ -159,8 +158,7 @@ x_output_shadows (f, tb->x + x_adj, tb->y + y_adj, tb->width + width_adj, tb->height + height_adj, top_shadow_gc, - bottom_shadow_gc, background_gc, shadow_thickness, - EDGE_ALL); + bottom_shadow_gc, background_gc, shadow_thickness); /* Clear the pixmap area. */ XFillRectangle (dpy, x_win, background_gc, tb->x + x_adj + shadow_thickness, @@ -213,8 +211,8 @@ } x_output_x_pixmap (f, XIMAGE_INSTANCE (instance), tb->x + x_offset, - tb->y + y_offset, 0, 0, width, height, - 0, 0, background_gc); + tb->y + y_offset, 0, 0, 0, 0, width, height, + 0, 0, 0, background_gc); } else if (IMAGE_INSTANCE_TYPE (p) == IMAGE_TEXT) { @@ -296,9 +294,9 @@ return XINT (f->toolbar_size[pos]); if (vert) - size = glyph_height (glyph, window); + size = glyph_height (glyph, Vdefault_face, 0, window); else - size = glyph_width (glyph, window); + size = glyph_width (glyph, Vdefault_face, 0, window); } if (!size)