Mercurial > hg > xemacs-beta
annotate src/console-gtk.h @ 5663:0df4d95bd98a
Fetch its bytecode before unfolding a compiled function, byte-optimize.el
lisp/ChangeLog addition:
2012-05-12 Aidan Kehoe <kehoea@parhasard.net>
* byte-optimize.el (byte-compile-unfold-lambda):
Fetch the bytecode before unfolding a compiled function, its body
may have been compiled lazily thanks to
byte-compile-dynamic. Thank you Mats Lidell and the package
smoketest!
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 12 May 2012 15:03:24 +0100 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
462 | 1 /* Define X specific console, device, and frame object for XEmacs. |
2 Copyright (C) 1989, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. | |
3 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois. | |
1318 | 4 Copyright (C) 2002, 2003 Ben Wing. |
462 | 5 |
6 This file is part of XEmacs. | |
7 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
8 XEmacs is free software: you can redistribute it and/or modify it |
462 | 9 under the terms of the GNU General Public License as published by the |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
10 Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
11 option) any later version. |
462 | 12 |
13 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
5074
diff
changeset
|
19 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. */ |
462 | 20 |
21 /* Synched up with: Not in FSF. */ | |
22 | |
23 | |
24 /* Authorship: | |
25 | |
26 Ultimately based on FSF, then later on JWZ work for Lemacs. | |
27 Rewritten over time by Ben Wing and Chuck Thompson (original | |
28 multi-device work by Chuck Thompson). | |
29 */ | |
30 | |
31 #ifndef _XEMACS_CONSOLE_GTK_H_ | |
32 #define _XEMACS_CONSOLE_GTK_H_ | |
33 | |
34 #ifdef HAVE_GTK | |
35 | |
36 #include "console.h" | |
4908
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
37 #include "sysgtk.h" |
462 | 38 |
39 /* Variables associated with the X display frame this emacs is using. */ | |
40 | |
41 extern Lisp_Object Vx_gc_pointer_shape; | |
42 extern Lisp_Object Vx_scrollbar_pointer_shape; | |
43 | |
44 /* Number of pixels below each line. */ | |
45 extern int gtk_interline_space; | |
46 | |
47 extern int gtk_selection_timeout; | |
48 | |
2168 | 49 struct frame *gtk_widget_to_frame (GtkWidget *); |
462 | 50 struct frame *gtk_any_window_to_frame (struct device *d, GdkWindow *); |
51 struct frame *gtk_window_to_frame (struct device *d, GdkWindow *); | |
52 struct frame *gtk_any_widget_or_parent_to_frame (struct device *d, GtkWidget *widget); | |
53 struct frame *decode_gtk_frame (Lisp_Object); | |
54 struct device *gtk_any_window_to_device (GdkWindow *); | |
55 struct device *decode_gtk_device (Lisp_Object); | |
56 void gtk_handle_property_notify (GdkEventProperty *event); | |
57 | |
58 void signal_special_gtk_user_event (Lisp_Object channel, Lisp_Object function, | |
59 Lisp_Object object); | |
60 void gtk_output_string (struct window *w, struct display_line *dl, | |
867 | 61 Ichar_dynarr *buf, int xpos, int xoffset, |
462 | 62 int start_pixpos, int width, face_index findex, |
63 int cursor, int cursor_start, int cursor_width, | |
64 int cursor_height); | |
5074
8af6a32b170d
Modify XLIKE_get_gc's prototype
Didier Verna <didier@lrde.epita.fr>
parents:
4908
diff
changeset
|
65 GdkGC *gtk_get_gc (struct frame *f, |
8af6a32b170d
Modify XLIKE_get_gc's prototype
Didier Verna <didier@lrde.epita.fr>
parents:
4908
diff
changeset
|
66 Lisp_Object font, Lisp_Object fg, Lisp_Object bg, |
714 | 67 Lisp_Object bg_pmap, Lisp_Object lwidth); |
462 | 68 |
69 int gtk_initialize_frame_menubar (struct frame *f); | |
70 void gtk_init_modifier_mapping (struct device *d); | |
71 | |
72 void Initialize_Locale (void); | |
73 | |
74 extern Lisp_Object Vgtk_initial_argv_list; /* #### ugh! */ | |
75 | |
76 const char *gtk_event_name (GdkEventType event_type); | |
778 | 77 |
78 void reinit_console_type_create_gtk (void); | |
79 | |
80 void emacs_gtk_selection_handle (GtkWidget *, | |
81 GtkSelectionData *selection_data, | |
82 guint info, | |
83 guint time_stamp, | |
84 gpointer data); | |
85 void emacs_gtk_selection_clear_event_handle (GtkWidget *widget, | |
86 GdkEventSelection *event, | |
87 gpointer data); | |
88 void emacs_gtk_selection_received (GtkWidget *widget, | |
89 GtkSelectionData *selection_data, | |
90 gpointer user_data); | |
91 | |
1346 | 92 typedef unsigned int GUI_ID; |
93 extern GUI_ID new_gui_id (void); | |
94 | |
95 extern void gcpro_popup_callbacks (GUI_ID id, Lisp_Object data); | |
96 extern void ungcpro_popup_callbacks (GUI_ID id); | |
97 extern Lisp_Object get_gcpro_popup_callbacks (GUI_ID id); | |
98 | |
4908
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
99 int gtk_event_to_emacs_event (struct frame *frame, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
100 GdkEvent *gdk_event, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
101 struct Lisp_Event *emacs_event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
102 |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
103 gint emacs_gtk_key_event_handler(GtkWidget *widget, GdkEventKey *event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
104 gint emacs_gtk_button_event_handler(GtkWidget *widget, GdkEventButton *event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
105 gint emacs_gtk_motion_event_handler (GtkWidget *widget, GdkEventMotion *event); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
106 |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
107 gboolean emacs_shell_event_handler (GtkWidget *wid /* unused */, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
108 GdkEvent *event, |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
109 gpointer closure); |
b3ce27ca7647
various fixes related to gtk, redisplay-xlike-inc.c
Ben Wing <ben@xemacs.org>
parents:
2168
diff
changeset
|
110 |
462 | 111 #endif /* HAVE_GTK */ |
112 #endif /* _XEMACS_DEVICE_X_H_ */ |