comparison src/redisplay-gtk.c @ 2286:04bc9d2f42c7

[xemacs-hg @ 2004-09-20 19:18:55 by james] Mark all unused parameters as unused. Also eliminate some unneeded local variables.
author james
date Mon, 20 Sep 2004 19:20:08 +0000
parents 91d4c8c65a0f
children ecf1ebac70d8
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
234 Given a string and a face, return the string's length in pixels when 234 Given a string and a face, return the string's length in pixels when
235 displayed in the font associated with the face. 235 displayed in the font associated with the face.
236 */ 236 */
237 237
238 static int 238 static int
239 gtk_text_width (struct frame *f, struct face_cachel *cachel, CONST Ichar *str, 239 gtk_text_width (struct frame *UNUSED (f), struct face_cachel *cachel,
240 Charcount len) 240 CONST Ichar *str, Charcount len)
241 { 241 {
242 int width_so_far = 0; 242 int width_so_far = 0;
243 unsigned char *text_storage = (unsigned char *) ALLOCA (2 * len); 243 unsigned char *text_storage = (unsigned char *) ALLOCA (2 * len);
244 struct textual_run *runs = alloca_array (struct textual_run, len); 244 struct textual_run *runs = alloca_array (struct textual_run, len);
245 int nruns; 245 int nruns;
1116 struct display_glyph_area *dga, 1116 struct display_glyph_area *dga,
1117 face_index findex, 1117 face_index findex,
1118 int cursor_start, 1118 int cursor_start,
1119 int cursor_width, 1119 int cursor_width,
1120 int cursor_height, 1120 int cursor_height,
1121 int bg_pixmap) 1121 int UNUSED (bg_pixmap))
1122 { 1122 {
1123 struct frame *f = XFRAME (w->frame); 1123 struct frame *f = XFRAME (w->frame);
1124 struct device *d = XDEVICE (f->device); 1124 struct device *d = XDEVICE (f->device);
1125 struct Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance); 1125 struct Lisp_Image_Instance *p = XIMAGE_INSTANCE (image_instance);
1126 Lisp_Object window; 1126 Lisp_Object window;
1470 1470
1471 Clear the area in the box defined by the given parameters using the 1471 Clear the area in the box defined by the given parameters using the
1472 given face. 1472 given face.
1473 ****************************************************************************/ 1473 ****************************************************************************/
1474 static void 1474 static void
1475 gtk_clear_region (Lisp_Object locale, struct device* d, struct frame* f, face_index findex, 1475 gtk_clear_region (Lisp_Object UNUSED (locale), struct device* d,
1476 int x, int y, 1476 struct frame* f, face_index UNUSED (findex), int x, int y,
1477 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor, 1477 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor,
1478 Lisp_Object background_pixmap) 1478 Lisp_Object background_pixmap)
1479 { 1479 {
1480 GdkWindow *x_win; 1480 GdkWindow *x_win;
1481 GdkGC *gc = NULL; 1481 GdkGC *gc = NULL;
1681 1681
1682 return 1; 1682 return 1;
1683 } 1683 }
1684 1684
1685 static void 1685 static void
1686 gtk_bevel_area (struct window *w, face_index findex, 1686 gtk_bevel_area (struct window *w, face_index UNUSED (findex),
1687 int x, int y, int width, int height, 1687 int x, int y, int width, int height,
1688 int shadow_thickness, int edges, enum edge_style style) 1688 int shadow_thickness, int UNUSED (edges),
1689 enum edge_style UNUSED (style))
1689 { 1690 {
1690 struct frame *f = XFRAME (w->frame); 1691 struct frame *f = XFRAME (w->frame);
1691 1692
1692 gtk_output_shadows (f, x, y, width, height, shadow_thickness); 1693 gtk_output_shadows (f, x, y, width, height, shadow_thickness);
1693 } 1694 }
1694 1695
1695 1696
1696 1697
1697 /* Make audible bell. */ 1698 /* Make audible bell. */
1698 static void 1699 static void
1699 gtk_ring_bell (struct device *d, int volume, int pitch, int duration) 1700 gtk_ring_bell (struct device *UNUSED (d), int volume, int UNUSED (pitch),
1701 int UNUSED (duration))
1700 { 1702 {
1701 /* Gdk does not allow us to control the duration / pitch / volume */ 1703 /* Gdk does not allow us to control the duration / pitch / volume */
1702 if (volume > 0) 1704 if (volume > 0)
1703 { 1705 {
1704 gdk_beep (); 1706 gdk_beep ();