projects
/
chise
/
xemacs-chise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.2.36 "Notos"
[chise/xemacs-chise.git]
/
src
/
toolbar-x.c
diff --git
a/src/toolbar-x.c
b/src/toolbar-x.c
index
735d63c
..
64f2b6c
100644
(file)
--- a/
src/toolbar-x.c
+++ b/
src/toolbar-x.c
@@
-23,6
+23,8
@@
Boston, MA 02111-1307, USA. */
/* Synched up with: Not in FSF. */
/* Synched up with: Not in FSF. */
+/* This file Mule-ized (more like Mule-verified) by Ben Wing, 7-8-00. */
+
#include <config.h>
#include "lisp.h"
#include <config.h>
#include "lisp.h"
@@
-77,7
+79,8
@@
x_draw_blank_toolbar_button (struct frame *f, int x, int y, int width,
/* Draw the outline. */
x_output_shadows (f, sx, sy, swidth, sheight, top_shadow_gc,
/* Draw the outline. */
x_output_shadows (f, sx, sy, swidth, sheight, top_shadow_gc,
- bottom_shadow_gc, background_gc, shadow_thickness);
+ bottom_shadow_gc, background_gc, shadow_thickness,
+ EDGE_ALL);
/* Blank the middle. */
XFillRectangle (dpy, x_win, background_gc, sx + shadow_thickness,
/* Blank the middle. */
XFillRectangle (dpy, x_win, background_gc, sx + shadow_thickness,
@@
-108,7
+111,7
@@
x_output_toolbar_button (struct frame *f, Lisp_Object button)
GC top_shadow_gc, bottom_shadow_gc, background_gc;
Lisp_Object instance, frame, window, glyph;
struct toolbar_button *tb = XTOOLBAR_BUTTON (button);
GC top_shadow_gc, bottom_shadow_gc, background_gc;
Lisp_Object instance, frame, window, glyph;
struct toolbar_button *tb = XTOOLBAR_BUTTON (button);
- struct Lisp_Image_Instance *p;
+ Lisp_Image_Instance *p;
struct window *w;
int vertical = tb->vertical;
int border_width = tb->border_width;
struct window *w;
int vertical = tb->vertical;
int border_width = tb->border_width;
@@
-158,7
+161,8
@@
x_output_toolbar_button (struct frame *f, Lisp_Object button)
x_output_shadows (f, tb->x + x_adj, tb->y + y_adj,
tb->width + width_adj, tb->height + height_adj,
top_shadow_gc,
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);
+ bottom_shadow_gc, background_gc, shadow_thickness,
+ EDGE_ALL);
/* Clear the pixmap area. */
XFillRectangle (dpy, x_win, background_gc, tb->x + x_adj + shadow_thickness,
/* Clear the pixmap area. */
XFillRectangle (dpy, x_win, background_gc, tb->x + x_adj + shadow_thickness,
@@
-211,8
+215,8
@@
x_output_toolbar_button (struct frame *f, Lisp_Object button)
}
x_output_x_pixmap (f, XIMAGE_INSTANCE (instance), tb->x + x_offset,
}
x_output_x_pixmap (f, XIMAGE_INSTANCE (instance), tb->x + x_offset,
- tb->y + y_offset, 0, 0, 0, 0, width, height,
- 0, 0, 0, background_gc);
+ tb->y + y_offset, 0, 0, width, height,
+ 0, 0, background_gc);
}
else if (IMAGE_INSTANCE_TYPE (p) == IMAGE_TEXT)
{
}
else if (IMAGE_INSTANCE_TYPE (p) == IMAGE_TEXT)
{
@@
-294,9
+298,9
@@
x_get_button_size (struct frame *f, Lisp_Object window,
return XINT (f->toolbar_size[pos]);
if (vert)
return XINT (f->toolbar_size[pos]);
if (vert)
- size = glyph_height (glyph, Vdefault_face, 0, window);
+ size = glyph_height (glyph, window);
else
else
- size = glyph_width (glyph, Vdefault_face, 0, window);
+ size = glyph_width (glyph, window);
}
if (!size)
}
if (!size)
@@
-504,9
+508,9
@@
x_output_toolbar (struct frame *f, enum toolbar_pos pos)
Lisp_Object frame;
XSETFRAME (frame, f);
Lisp_Object frame;
XSETFRAME (frame, f);
- DEVMETH (d, clear_region, (frame,
- DEFAULT_INDEX, FRAME_PIXWIDTH (f) - 1, y, 1,
- bar_height));
+ redisplay_clear_region (frame,
+ DEFAULT_INDEX, FRAME_PIXWIDTH (f) - 1, y, 1,
+ bar_height);
}
SET_TOOLBAR_WAS_VISIBLE_FLAG (f, pos, 1);
}
SET_TOOLBAR_WAS_VISIBLE_FLAG (f, pos, 1);
@@
-542,7
+546,7
@@
x_clear_toolbar (struct frame *f, enum toolbar_pos pos, int thickness_change)
SET_TOOLBAR_WAS_VISIBLE_FLAG (f, pos, 0);
SET_TOOLBAR_WAS_VISIBLE_FLAG (f, pos, 0);
- DEVMETH (d, clear_region, (frame, DEFAULT_INDEX, x, y, width, height));
+ redisplay_clear_region (frame, DEFAULT_INDEX, x, y, width, height);
XFlush (DEVICE_X_DISPLAY (d));
}
XFlush (DEVICE_X_DISPLAY (d));
}