Mercurial > hg > xemacs-beta
view src/glyphs-gtk.h @ 558:ed498ef2108b
[xemacs-hg @ 2001-05-23 09:59:33 by ben]
xemacs.mak: call `ver' to get the exact os version and put it in the
installation; suggestion from adrian.
behavior-defs.el: Add scroll-in-place, jka-compr, efs, fix up some things.
pop.c: Remove BROKEN_CYGWIN.
etc\sample.init.el: Rewrite to be much more careful about loading features --
now it decays gracefully even in the complete absence of packages.
Also avoid doing obnoxious things when loading efs.
configure.in: add some support for eventually turning on file coding by
default. Fix numerous places where AC_MSG_WARN had quotes
around its arg, which is bad. Replace with []. Same for
AC_MSG_ERROR.
s\cygwin32.h, s\mingw32.h: remove support for way old beta versions of cygwin.
don't put -Wno-sign-compare in the system switches; this
isn't a system issue. define BROKEN_SIGIO for cygwin to
get C-g support.
device-msw.c: signal an error rather than crash with an unavailable network
printer (from Mike Alexander).
event-msw.c: cleanup headers. fix (hopefully) an error with data corruption
when sending to a network connection.
fileio.c: Fix evil code that attempts
to handle the ~user prefix by (a) always assuming we're referencing
ourselves and not even verifying the user -- hence any file with
a tilde as its first char is invalid! (b) if there wasn't a slash
following the filename, the pointer was set *past* the end of
file and we started reading from uninitialized memory. Now we
simply treat these as files, always.
optionally for 21.4 (doc fix):
lread.c: cambia de pas_de_lache_ici -- al minimo usa la palabra certa.
frame.c: fix warnings.
emacs.c, nt.c, ntproc.c, process-nt.c, realpath.c, unexnt.c: rename MAX_PATH
to standard PATH_MAX.
process-nt.c, realpath.c: cleanup headers.
process-unix.c, sysdep.c, systime.h, syswindows.h: kill BROKEN_CYGWIN and
support for way old beta versions of cygwin.
sysfile.h: use _MAX_PATH (Windows) preferentially for PATH_MAX if defined.
include io.h on Cygwin (we need get_osfhandle()). include
sys/fcntl.h always, since we were including it in various
header files anyway.
unexcw.c: fix up style to conform to standard. remove duplicate definition
of PERROR.
buffer.c: comment change.
database.c, debug.h, device-tty.c, dired-msw.c, glyphs-msw.c: header
cleanups (remove places that directly include a system
header file, because we have our own layer to do this more cleanly
and portably); indentation fixes.
author | ben |
---|---|
date | Wed, 23 May 2001 09:59:48 +0000 |
parents | 0784d089fdc9 |
children | 16489ca72b3d |
line wrap: on
line source
/* Gtk-specific glyphs and related. Copyright (C) 1993, 1994 Free Software Foundation, Inc. Copyright (C) 1995 Board of Trustees, University of Illinois. Copyright (C) 1995, 1996 Ben Wing Copyright (C) 1995 Sun Microsystems, Inc. This file is part of XEmacs. XEmacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. XEmacs is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with XEmacs; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Synched up with: Not in FSF. */ /* Gtk version by William Perry */ #ifndef _XEMACS_GLYPHS_GTK_H_ #define _XEMACS_GLYPHS_GTK_H_ #include "glyphs.h" #ifdef HAVE_GTK #include <gtk/gtk.h> /**************************************************************************** * Image-Instance Object * ****************************************************************************/ struct gtk_image_instance_data { GdkPixmap **pixmaps; GdkPixmap *mask; GdkCursor *cursor; /* If depth>0, then that means that other colors were allocated when this pixmap was loaded. These are they; we need to free them when finalizing the image instance. */ GdkColormap *colormap; unsigned long *pixels; int npixels; /* Should we hang on to the extra info from the XpmAttributes, like the textual color table and the comments? Is that useful? */ }; struct gtk_subwindow_data { union { struct { GtkWidget *parent_window; GtkWidget *clip_window; } sub; struct { GtkWidget *clip_window; Lisp_Object widget; guint x_offset; guint y_offset; gboolean added_to_fixed; } wid; } data; }; void init_image_instance_from_gdk_pixmap (struct Lisp_Image_Instance *ii, struct device *device, GdkPixmap *gdk_pixmap, int dest_mask, Lisp_Object instantiator); #define GTK_IMAGE_INSTANCE_DATA(i) ((struct gtk_image_instance_data *) (i)->data) #define IMAGE_INSTANCE_GTK_PIXMAP(i) (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps[0]) #define IMAGE_INSTANCE_GTK_PIXMAP_SLICE(i,slice) \ (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps[slice]) #define IMAGE_INSTANCE_GTK_PIXMAP_SLICES(i) \ (GTK_IMAGE_INSTANCE_DATA (i)->pixmaps) #define IMAGE_INSTANCE_GTK_MASK(i) (GTK_IMAGE_INSTANCE_DATA (i)->mask) #define IMAGE_INSTANCE_GTK_CURSOR(i) (GTK_IMAGE_INSTANCE_DATA (i)->cursor) #define IMAGE_INSTANCE_GTK_COLORMAP(i) (GTK_IMAGE_INSTANCE_DATA (i)->colormap) #define IMAGE_INSTANCE_GTK_PIXELS(i) (GTK_IMAGE_INSTANCE_DATA (i)->pixels) #define IMAGE_INSTANCE_GTK_NPIXELS(i) (GTK_IMAGE_INSTANCE_DATA (i)->npixels) #define XIMAGE_INSTANCE_GTK_PIXMAP(i) \ IMAGE_INSTANCE_GTK_PIXMAP (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_PIXMAP_SLICE(i) \ IMAGE_INSTANCE_GTK_PIXMAP_SLICE (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_PIXMAP_SLICES(i) \ IMAGE_INSTANCE_GTK_PIXMAP_SLICES (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_MASK(i) \ IMAGE_INSTANCE_GTK_MASK (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_CURSOR(i) \ IMAGE_INSTANCE_GTK_CURSOR (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_PIXELS(i) \ IMAGE_INSTANCE_GTK_PIXELS (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_NPIXELS(i) \ IMAGE_INSTANCE_GTK_NPIXELS (XIMAGE_INSTANCE (i)) /* Subwindow / widget stuff */ #define GTK_SUBWINDOW_INSTANCE_DATA(i) ((struct gtk_subwindow_data *) (i)->data) #define IMAGE_INSTANCE_GTK_SUBWINDOW_PARENT(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.sub.parent_window) #define IMAGE_INSTANCE_GTK_CLIPWINDOW(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.sub.clip_window) #define IMAGE_INSTANCE_GTK_WIDGET_XOFFSET(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.wid.x_offset) #define IMAGE_INSTANCE_GTK_WIDGET_YOFFSET(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.wid.y_offset) #define IMAGE_INSTANCE_GTK_WIDGET_LWID(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.wid.id) #define IMAGE_INSTANCE_GTK_CLIPWIDGET(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.wid.clip_window) #define IMAGE_INSTANCE_GTK_ALREADY_PUT(i) \ (GTK_SUBWINDOW_INSTANCE_DATA (i)->data.wid.added_to_fixed) #define IMAGE_INSTANCE_GTK_SUBWINDOW_ID(i) \ ((GdkWindow *) & IMAGE_INSTANCE_SUBWINDOW_ID (i)) #define IMAGE_INSTANCE_GTK_WIDGET_ID(i) \ ((GtkWidget *) & IMAGE_INSTANCE_SUBWINDOW_ID (i)) #define XIMAGE_INSTANCE_GTK_SUBWINDOW_PARENT(i) \ IMAGE_INSTANCE_GTK_SUBWINDOW_PARENT (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_SUBWINDOW_DISPLAY(i) \ IMAGE_INSTANCE_GTK_SUBWINDOW_DISPLAY (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_WIDGET_XOFFSET(i) \ IMAGE_INSTANCE_GTK_WIDGET_XOFFSET (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_WIDGET_YOFFSET(i) \ IMAGE_INSTANCE_GTK_WIDGET_YOFFSET (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_WIDGET_LWID(i) \ IMAGE_INSTANCE_GTK_WIDGET_LWID (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_CLIPWIDGET(i) \ IMAGE_INSTANCE_GTK_CLIPWIDGET (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_CLIPWINDOW(i) \ IMAGE_INSTANCE_GTK_CLIPWINDOW (XIMAGE_INSTANCE (i)) #define XIMAGE_INSTANCE_GTK_WIDGET_ID(i) \ IMAGE_INSTANCE_GTK_WIDGET_ID (XIMAGE_INSTANCE (i)) #define DOMAIN_GTK_WIDGET(domain) \ ((IMAGE_INSTANCEP (domain) && \ GTK_SUBWINDOW_INSTANCE_DATA (XIMAGE_INSTANCE (domain))) ? \ XIMAGE_INSTANCE_GTK_WIDGET_ID (domain) : \ FRAME_GTK_CONTAINER_WIDGET (f) (DOMAIN_XFRAME (domain))) #endif /* HAVE_GTK */ #endif /* _XEMACS_GLYPHS_GTK_H_ */