annotate src/ChangeLog.GTK @ 2828:a25c824ed558

[xemacs-hg @ 2005-06-26 18:04:49 by aidan] Rename the ascii-character property, support more keysyms.
author aidan
date Sun, 26 Jun 2005 18:05:05 +0000
parents 0784d089fdc9
children aa729daae5e2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
1 2000-10-03 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
3 * objects-gtk.c (gtk_font_instance_truename): Make sure we get the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
4 fully expanded version of the font.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
5
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
6 * device-gtk.c (convert_font): Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
7
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
8 * gtk-xemacs.c (convert_font): Tell __get_gtk_font_truename to not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
9 expand wildcards.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
10
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
11 * objects-gtk.c (__get_gtk_font_truename): Use the internal
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
12 name-list in a GdkFont structure to find the truename of the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
13 font. This protects us from crashing if we get a FontSet
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
14 instead of a Font.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
15
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
16 (__get_gtk_font_truename): Accept new argument 'expandp' for
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
17 whether to return the FULL font name or the wildcarded version.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
18
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
19 2000-09-21 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
20
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
21 * device-gtk.c (Fgtk_init): Moved calls to gtk_init or gnome_init
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
22 to separate function, and expose it to lisp. It is now possible
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
23 to create GTK applications from batch mode.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
24 (gtk_init_device): Use the new function.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
25
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
26 2000-09-12 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
27
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
28 * gtk-glue.c (gdk_event_to_emacs_event): Special case double
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
29 and triple clicks when converting events to lisp objects.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
30 This allows something like GtkCList to treat double-clicks
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
31 differently in the 'select_row' signal.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
32
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
33 2000-09-11 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
34
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
35 * menubar-gtk.c (menu_create_menubar): Set a special name for
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
36 GtkMenuItems directly in the menubar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
37
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
38 2000-09-10 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
39
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
40 * gtk-xemacs.c (gtk_xemacs_size_request): Deal with frame
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
41 being NULL.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
42
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
43 * gtk-xemacs.c (gtk_xemacs_size_allocate): Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
44
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
45 2000-09-09 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
46
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
47 * sound.c (init_native_sound): Enable sound for GTK devices.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
48
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
49 * device-gtk.c (gtk_init_device): Attempt to load a default
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
50 gtkrc file from the data directory. This way we can enable
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
51 the default face font handling in gtk-faces.el but not screw
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
52 the majority of users with a proportional font by default.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
53
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
54 * device-gtk.c (gtk_init_device): Attempt to load
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
55 ~/.xemacs/gtk-options.el when GTK devices are created. This
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
56 allows for setting a persistent geometry without requiring GNOME.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
57
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
58 * gtk-xemacs.c (gtk_xemacs_style_set): Deal with NULL frame.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
59
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
60 * device-gtk.c (gtk_init_device): Make app_shell a GtkXEmacs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
61 widget so that style information is retrieved correctly.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
62
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
63 * menubar-gtk.c (gtk_xemacs_menubar_get_type): New subclass of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
64 GtkMenuBar that always requests the same width as the text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
65 widget. This fixes the spurious frame resizes when there were too
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
66 many menu items to display in the desired width.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
67 (create_menubar_widget): Use the new subclass.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
68
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
69 2000-09-08 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
70
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
71 * device-gtk.c (Fgtk_keysym_on_keyboard_p): Ported function from
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
72 the X side of things.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
73
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
74 * device-gtk.c (gtk_mark_device): Make sure that we mark the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
75 keysym hashtable or things go boom.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
76
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
77 2000-09-07 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
78
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
79 * menubar-gtk.c (gtk_update_frame_menubars): Don't actually
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
80 update the menubars if the menu is up. This fixes the weird
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
81 problem where if you had a menu up and 'message' was called
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
82 (this happens a lot with the 'customize' menu), the menu would
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
83 disappear. This is because XEmacs is fairly lame about when
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
84 it updates the menus - the message logging code eventually
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
85 does a (save-excursion (set-buffer " *Message Log*") ...).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
86 The set-buffer caused magic variable current-menubar to be
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
87 evaluated, which calls gtk_update_frame_menubars, which would
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
88 nuke the menus. Gack.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
89
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
90 2000-09-06 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
91
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
92 * event-gtk.c (gtk_event_to_emacs_event): Reworked how we handle
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
93 removing the shift modifier of normal keys (a & A, etc) to be more
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
94 like MS-windows. This makes everything work pretty happily with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
95 query-replace and apropos now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
96
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
97 2000-09-05 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
98
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
99 * select-gtk.c (emacs_gtk_selection_received): Signal a fake
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
100 event here so that the event loop will wake up. Should fix
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
101 the strange pause seen when pasting.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
102
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
103 * select-gtk.c (Fgtk_get_clipboard): Signal an error if no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
104 selections are available. This is more meaningful than 'insert'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
105 throwing an error when it gets 'nil'.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
106
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
107 * select-gtk.c (emacs_gtk_selection_received): Don't bother
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
108 checking whether the data returned as the selection is a string.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
109 If it is not, we convert it to binary data anyway. This fixes the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
110 bug where you could not paste between two separate XEmacs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
111 instances w/mule enabled (it sends selections as COMPOUND_TEXT).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
112
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
113 * device-gtk.c (Fgtk_style_info): Return the default font name as
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
114 part of the style info.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
115
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
116 * menubar-gtk.c (__generic_button_callback): make sure that we
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
117 provide a channel for our menu events. This fixes things like
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
118 get-dialog-box-response that rely on event-channel !nilp
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
119
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
120 2000-09-05 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
121
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
122 * glyphs-gtk.c (__downcase): Actually return the downcased string!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
123 Thanks to Michael Altenhofen <Michael.Altenhofen@sap.com> for
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
124 spotting this.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
125
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
126 2000-09-05 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
127
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
128 * menubar-gtk.c (gtk_popup_menu): Make sure we call
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
129 __activate_menu correctly if the menu is dynamic. This fixes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
130 popup menus with :filter effects.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
131
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
132 2000-09-01 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
133
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
134 * gpmevent.c, gpmevent.h: Updated to the latest XEmacs 21.2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
135 version of gpmevent.c. This means that GPM support works
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
136 with GTK now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
137
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
138 * console-tty.c, console-tty.h: Removed old GPM support.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
139
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
140 * device-tty.c, emacs.c, event-Xt.c: Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
141
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
142 * event-unixoid.c, frame-tty.c: Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
143
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
144 2000-08-30 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
145
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
146 * gtk-xemacs.c (smash_scrollbar_specifiers): Don't bother looking
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
147 for nextstep themed scrollbars - didn't work anyway.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
148
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
149 * glade.c (Fglade_xml_textdomain): deal with old versions of Glade
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
150 that use 'textdomain' instead of 'txtdomain' in the structure.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
151
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
152 * menubar-gtk.c (gtk_popup_menu): use gtk_widget_show instead of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
153 gtk_widget_show_all so that the magic `space-saver' menu item does
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
154 not get shown on popups.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
155
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
156 2000-08-27 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
157
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
158 * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Fiddle
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
159 with scrollbar_values -> GtkAdjustment conversion and scrolling up
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
160 with the arrows works correctly now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
161
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
162 * event-gtk.c (gtk_event_to_emacs_event): Fixed the shifted key
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
163 lossage (pc-select works now).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
164
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
165 2000-08-11 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
166
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
167 * scrollbar-gtk.c (scrollbar_cb): Need to make sure we look at the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
168 appropriate scrollbar instances from the mirror. Was looking only
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
169 at the vertical scrollbar instance. Don't know if this has
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
170 anything to do with the weird scrolling behaviour, but it is worth
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
171 a shot.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
172
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
173 2000-07-26 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
174
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
175 * menubar-gtk.c (run_menubar_hook): New function that runs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
176 activate-menubar-hook if the menu shell it was invoked by is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
177 currently inactive.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
178 (create_menubar_widget): Hook up the button-press-event to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
179 run_menubar_hook to cater to broken packages.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
180
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
181 2000-07-22 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
182
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
183 * frame-gtk.c (gtk_popup_frame): When the window is supposed to be
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
184 initially unmapped, we need to make sure we realize the text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
185 widget (to avoid lossage in redisplay assuming there is a valid
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
186 window), but NOT show it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
187
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
188 2000-07-12 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
189
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
190 * menubar-gtk.c (__kill_stupid_gtk_timer): New function to kill
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
191 the timer on a GtkMenuItem widget. This timer and its callback
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
192 appear to be what was causing heavily filtered menus (like
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
193 customize and other things under 'options') to crash. The GTK
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
194 code installs a timer when the user is moving the mouse around to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
195 scan menus. Submenus are only popped up when this timer expires.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
196 But if the filters are constantly running and creating/destroying
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
197 submenus, then you can blow up when they unconditionally check
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
198 GTK_WIDGET_FLAGS(menu_item->submenu), when submenu is NULL.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
199
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
200 2000-07-11 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
201
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
202 * device-gtk.c (gtk_init_device): Can now pass the entire argv
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
203 array that is in gtk-initial-argv-list, since gtk-init filters out
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
204 unknown options that may cause GTK to puke for us. This means
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
205 that GNOME session management works now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
206
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
207 * frame-gtk.c (gnome_parse_geometry): Ripped this out of the GNOME
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
208 libraries to parse geometry settings, in case the user did not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
209 compile with GNOME.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
210 (gtk_initialize_frame_size): If gtk_initial_geometry is !NILP,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
211 then try to parse it and use that. If the geometry cannot be
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
212 parsed, fall back to using 80x30.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
213
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
214 * device-gtk.c (Vgtk_initial_geometry): New variable exposed to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
215 lisp holding the desired geometry of initial frames.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
216
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
217 2000-07-09 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
218
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
219 * ui-gtk.c (Fgtk_call_function): Outlined possible `enhancement'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
220 if someone calls gtk-call-function with too few arguments. After
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
221 I implemented it I realized it was probably a bad idea, so I
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
222 commented it out. Maybe for the future...
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
223
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
224 * menubar-gtk.c (menu_convert): Can now pass in a GtkWidget to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
225 reuse. It detaches submenus, cleans up any GCPROs on it, and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
226 attaches a new submenu. All done in an effort to stop the menubar
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
227 flickering.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
228 (menu_create_menubar): No longer willy-nilly deletes all of the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
229 items in the top-level menubar. We now check to see if the widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
230 already existing at the desired position has the same label as
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
231 this menu. If it does, we pass it in to menu_convert. This
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
232 drastically reduces the flickering menu problem that most people
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
233 have been seeing (try speedbar now).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
234
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
235 2000-07-04 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
236
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
237 * event-gtk.c (gtk_event_to_emacs_event): If FRAME is NULL, then
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
238 default to the selected frame on Vdefault_gtk_device. This will
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
239 only happen when being called from gtk-glue.c
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
240
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
241 * ui-gtk.c (gtk_type_to_lisp): Properly convert GTK_TYPE_GDK_EVENT
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
242 objects to lisp events.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
243
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
244 * event-gtk.c (gtk_event_to_emacs_event): Made this non-static so
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
245 that gtk-glue.c can use it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
246
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
247 * gtk-glue.c (gdk_event_to_emacs_event): New function to convert a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
248 GDK event into something sensible for lisp. Just uses
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
249 gtk_event_to_emacs_event() from event-gtk.c to avoid code
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
250 duplication. Not perfect (the channel is set to the selected
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
251 frame, not the GtkObject it actually happened on).
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
252
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
253 * event-gtk.c (gtk_event_to_emacs_event): Finally fixed the weird
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
254 selection problem where if you released the mouse button over the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
255 root window, XEmacs would get confused and still think the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
256 selection was going on.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
257
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
258 * ui-gtk.c (Fgtk_describe_type): New function to return the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
259 signals and magic properties of an object given its name or type
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
260 identifier.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
261
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
262 2000-07-03 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
263
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
264 * ui-byhand.c (Fgtk_ctree_recurse): New function gtk-ctree-recurse
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
265 that encompasses gtk_ctree_post_recursive,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
266 gtk_ctree_pre_recursive, gtk_ctree_post_recursive_to_depth, and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
267 gtk_ctree_pre_recursive_to_depth. All hail lisp bindings with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
268 variable number of arguments.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
269 (Fgtk_ctree_recurse): Allow nil for the node.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
270
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
271 * ui-gtk.c (emacs_gtk_boxed_equality): New function for comparing
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
272 two GtkBoxed objects. This is needed because there is no way to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
273 store a `user_data' or equivalent on them, so we cannot resurrect
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
274 it like a GtkObject so we always get the same Lisp_Object. This
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
275 allows callbacks to use `equal' on two GtkBoxed types and get sane
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
276 results.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
277 (emacs_gtk_boxed_hash): New function for hashing GtkBoxed
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
278 objects.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
279
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
280 2000-07-01 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
281
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
282 * glade.c: New file to implement glue code for libglade.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
283
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
284 2000-06-30 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
285
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
286 * ui-gtk.c (lisp_to_gtk_type): Know how to deal with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
287 GTK_TYPE_GDK_GC.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
288
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
289 * gtk-glue.c: Need to defien a GTK type for GdkGC so that we can
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
290 import all the GDK drawing primitives.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
291 (face_to_gc): New function to convert a face object to a GC.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
292
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
293 2000-06-27 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
294
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
295 * ui-gtk.c (Fgtk_import_variable_internal): Renamed to -internal.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
296
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
297 2000-06-25 Vladimir Vukicevic <vladimir@helixcode.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
298
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
299 * frame-gtk.c (gtk_set_initial_frame_size): Added in a call to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
300 gtk_window_set_policy so that you can resize the window down below
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
301 the minimum size of the menubar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
302
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
303 2000-06-23 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
304
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
305 * emacs.c (Fkill_emacs): Make sure we clean up the .saves* files
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
306 on normal exit.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
307
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
308 2000-06-13 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
309
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
310 * menubar-gtk.c (__activate_filtermenu): Put in some of the same
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
311 protections for filter menus that the normal menus have for widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
312 deletion and selected menu items, etc.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
313
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
314 2000-06-12 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
315
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
316 * scrollbar-gtk.c (gtk_create_scrollbar_instance): hide a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
317 scrollbar widget until we are absolutely sure we need to see it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
318 Fixes the problem we were seeing with mouse-avoidance-mode causing
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
319 severe scrollbar breakage.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
320 (update_one_widget_scrollbar_pointer): Move the call to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
321 gtk_widget_realize() here instead of in the upper code. Isolates
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
322 the dependency-on-having-a-window logic.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
323
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
324 * gtk-xemacs.c (smash_scrollbar_specifiers): When setting the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
325 scrollbar specifiers, need to take the x/y thickness of the border
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
326 into account. Horizontal scrollbar placement is much much nicer
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
327 now. Some themes would cause them to get positioned partially on
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
328 top of the modeline.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
329
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
330 2000-06-08 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
331
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
332 * console.c (select_console_1): Duh, forgot to put in an 'else'
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
333 statement, so Vwindow_system was getting set to Qnil all the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
334 time. *sigh*.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
335
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
336 2000-06-02 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
337
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
338 * glyphs-gtk.c (gtk_xpm_instantiate): Do not allow pixmaps to be
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
339 instantiated as pointers under GTK. The pixmap and cursor
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
340 routines under GDK do not expose enough information to let use do
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
341 the same magic that glyphs-x.c does. *sigh*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
342
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
343 * ui-byhand.c (Fgtk_toolbar_insert_item): Hand-rolled function.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
344 (Fgtk_toolbar_prepend_item): Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
345 (generic_toolbar_insert_item): Utility function to take care of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
346 all the common code for the Fgtk_toolbar_*_item functions.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
347
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
348 2000-06-01 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
349
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
350 * gtk-glue.c (face_to_style): DOH! You should only load it if
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
351 IMAGE_INSTANCEP, not !IMAGE_INSTANCEP you doofus.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
352
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
353 * ui-byhand.c (Fgtk_toolbar_append_item): Hand-rolled function.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
354
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
355 * ui-gtk.c (Fgtk_import_function_internal): No longer need to use
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
356 dll_function() to get the marshallers. They are now stored in a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
357 hashtable. Lookups should be a bit quicker, and it will work on
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
358 platforms where you cannot do a dll_open (NULL) to look at your
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
359 own symbol table.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
360
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
361 2000-05-31 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
362
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
363 * select-gtk.c (emacs_gtk_selection_handle): Better MULE string
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
364 handling.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
365
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
366 * gtk-xemacs.c (gtk_xemacs_realize): Make sure we set the style on
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
367 the widget from the realize function. Otherwise for some themes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
368 the color slots are not allocated yet, and we end up with icky
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
369 looking colors for things like the modeline/toolbar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
370
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
371 * select-gtk.c (Fgtk_get_clipboard): If we cannot get the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
372 selection from anyone, return the last selection we received.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
373 This make us work more like the X selection behaviour with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
374 cutbuffers enabled.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
375
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
376 2000-05-30 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
377
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
378 * ui-byhand.c: Removed definitions of gtk-clist-prepend,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
379 gtk-clist-append, and gtk-clist-insert.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
380
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
381 * ui-gtk.c (lisp_to_gtk_type): Use it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
382
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
383 * gtk-glue.c (face_to_style): Routine to convert from faces to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
384 GtkStyle
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
385
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
386 * menubar-gtk.c (gtk_popup_menu): Honor popup_up_p here.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
387 (popdown_menu_cb): and here.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
388
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
389 2000-05-29 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
390
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
391 * frame-gtk.c (gtk_popup_frame): Do not show the widgets if we
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
392 were told to be initially unmapped.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
393 (gtk_init_frame_1): Remember whether we were told to be initially
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
394 unmapped. Balloon help looks a little better now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
395
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
396 2000-05-28 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
397
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
398 * redisplay-gtk.c (gtk_output_string): Fixed multi-dimensional
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
399 text run drawing. gdk_draw_text does too much, by dividing the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
400 length by 2. So we fake them out my multiplying the length by the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
401 dimension of the text. This will do the right thing for
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
402 single-dimension runs as well of course.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
403
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
404 2000-05-26 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
405
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
406 * ui-gtk.c (get_enumeration): Utility function that does its best
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
407 to import unknown enumeration types.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
408
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
409 * glyphs-gtk.c (resource_symbol_to_type): Fixed pointer
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
410 instantiation.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
411
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
412 * gtk-xemacs.c (FROB_FACE): Make sure to pass the device to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
413 Fmake_image_instance or the initial background pixmaps would not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
414 show up.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
415
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
416 2000-05-25 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
417
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
418 * device-gtk.c (gtk_init_device): Call gnome_init if available.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
419
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
420 * menubar-gtk.c (create_menubar_widget): Use gnome_app_set_menus
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
421 instead of dealing with all the handlebox/menu crap ourselves.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
422
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
423 * frame-gtk.c (gtk_create_widgets): Use GnomeApp if it is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
424 available. Looks much sexier. :)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
425
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
426 * glyphs-gtk.c (gtk_resource_instantiate): New image instantiator
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
427 gtk-resource, similar to the mswindows-resource stuff. This
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
428 allows you to get to the stock cursors defined in GDK. May
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
429 eventually allow you access to things like stock gnome pixmaps,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
430 not sure.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
431
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
432 * frame-gtk.c (gtk_set_frame_pointer): Actually handle setting the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
433 frame cursor.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
434
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
435 * redisplay-gtk.c (gdk_draw_bitmap): New function to output a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
436 bitmap using XCopyPlane instead of XCopyArea.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
437 (gtk_output_gdk_pixmap): Use it when PIXMAP_DEPTH == 0. This
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
438 means bitmaps look correct now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
439
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
440 2000-05-24 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
441
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
442 * ui-gtk.c (flags_to_list): New function to convert a GtkFlags
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
443 argument to a list of symbols.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
444 (gtk_type_to_lisp): Use it for converting from a flag.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
445
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
446 2000-05-23 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
447
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
448 * frame-gtk.c (gtk_set_frame_position): Do not use
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
449 gtk_window_reposition - this apparently does not exist in some
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
450 versions of GTK 1.2
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
451
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
452 * gtk-glue.c (xemacs_gtklist_to_list): Don't call g_list_foreach
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
453 on a NULL list, just in case.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
454
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
455 * redisplay-gtk.c (gtk_text_width_single_run): Use gdk_text_width
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
456 instead of gdk_text_measure. Proportional fonts appear to work
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
457 now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
458
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
459 * objects-gtk.c (gtk_initialize_font_instance): Use X specific
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
460 crap lifted from objects-x.c to figure out proportionality of a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
461 font, and better location of the default character.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
463 2000-05-22 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
464
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
465 * ui-gtk.c (enum_to_symbol): Routine to convert an enum to a lisp
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
466 symbol. We now return this instead of an integer for GtkFlags or
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
467 GtkEnum types.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
468 (lisp_to_flag): Routine to convert from a symbol or list of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
469 symbols to a GtkEnum or GtkFlags type.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
470 (lisp_to_gtk_type): Use it exclusively. No more sending integers
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
471 to functions.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
472 (import_gtk_enumeration_internal): Do not import the GTK_FOO_BAR
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
473 flags/enums into the lisp namespace. We now store mappings from
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
474 symbol names (both the 'real' and nickname fields) to the actual
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
475 internal values. Much more lispy way of doing things.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
476
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
477 * menubar-gtk.c (__maybe_destroy): If we delete the menu item that
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
478 was 'active' when the menu was cancelled, GTK gets upset because
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
479 it tries to remove the focus rectangle from a (now) dead widget.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
480 This widget will eventually get killed because it will not be
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
481 `precious' the next time the window is shown, because it is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
482 unselectable.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
483
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
484 * frame-gtk.c (delete_event_cb): Signal a fake event to make the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
485 event loop wake up and notice we've been destroyed.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
486
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
487 2000-05-20 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
488
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
489 * ui-gtk.c (object_putprop): Allow `put'ing of arbitrary slots on
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
490 gtk objects. This will be useful for tacking lisp shit onto
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
491 composite widgets, etc.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
492 (object_getprop): Ditto for `get'ing.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
493
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
494 * frame-gtk.c (gtk_set_initial_frame_size): Don't delay when
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
495 changing the frame size, or creating initially unmapped frames is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
496 screwed up. This showed up when trying to use the cheesy XEmacs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
497 file selector dialog implemented using frames.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
498
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
499 * ui-byhand.c: Removed a lot of functions that can now be imported
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
500 directly by gtk-import-function using the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
501 Gtk(Array|List)Of(String|Object) types.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
502
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
503 * ui-gtk.c (type_to_marshaller_type): Deal with new array/list
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
504 types.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
505 (Fgtk_call_function): Need to free array and list storage after
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
506 calling functions.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
507 (lisp_to_gtk_type): Deal with the new list and array types when
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
508 converting to GTK types.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
509
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
510 * gtk-glue.c: New file to deal with lists of strings or
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
511 GtkObjects. Defines new types GtkArrayOf, GtkListOf,
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
512 GtkArrayOfString, GtkListOfString, and GtkListOfObject.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
513 (xemacs_list_to_array): Convert from a lisp list to a GtkArrayOf
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
514 of items.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
515 (xemacs_list_to_list): Convert from a lisp list to a GtkListOf of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
516 items.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
517
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
518 * dialog.c (Fpopup_dialog_box): Don't crap out if the car of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
519 dbox_desc is not a string... this allows us to follow ben's
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
520 system/native dialog box specification.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
521
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
522 2000-05-19 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
523
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
524 * ui-gtk.c (lisp_to_gtk_type): Can now convert to GDK colors. Can
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
525 deal with color specifiers or instances.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
526 (lisp_to_gtk_type): Can now convert to GDK fonts. Can deal with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
527 face names, actual faces, font specifiers, or font instances.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
528
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
529 2000-05-18 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
530
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
531 * gtk-xemacs.c (smash_scrollbar_specifiers): Function that
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
532 attempts to set the scrollbar width/height correctly, but does not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
533 do a very good job. Commented out for now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
534
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
535 * redisplay-gtk.c (gtk_output_vertical_divider): Got rid of lots
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
536 of useless code, since we ended up just calling gtk_output_shadows
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
537 anyway.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
538 (gtk_output_vertical_divider): Make sure we fill the rectangle
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
539 completely, otherwise the transparent background shows thru.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
540
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
541 * menubar-gtk.c: Don't nuke menus all the time... should speed up
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
542 submenu traversal a bit, and save on the GtkMenuItem creation.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
543
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
544 * device-gtk.c (Fgtk_style_info): Return a list of all the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
545 pixmaps, not just GTK_STATE_NORMAL.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
546
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
547 * menubar-gtk.c (menu_descriptor_to_widget_1): Better menu labels
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
548 with keybindings.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
549
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
550 * frame-gtk.c (gtk_set_frame_size): This function actually works
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
551 now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
552 (gtk_set_initial_frame_size): Better default sizing method.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
553
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
554 * event-gtk.c (init_event_gtk_late): Push an error trap handler so
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
555 that XEmacs won't abort at the drop of a hat on X errors. We
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
556 could get X specific here and override the default GDK XError and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
557 XIOError handlers to be more like those in device-x.c. Not sure
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
558 if that is worth it or not - you would at least get information
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
559 that an error occurred.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
560
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
561 * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Don't
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
562 always call gtk_widget_set_usize because that causes the widget to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
563 redraw itself, which can cause some annoying flicker.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
564 (gtk_update_scrollbar_instance_status): Don't always move it
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
565 either, because that can cause the GtkFixed container to get a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
566 resize event.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
567 (update_one_widget_scrollbar_pointer): Try to set the cursor
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
568
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
569 2000-05-17 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
570
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
571 * device-gtk.c (Fgtk_style_info): Back to taking only 1 argument -
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
572 the device.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
573 (Fgtk_style_info): Now returns ALL of the information about
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
574 colors. Returns a list of colors instead of just the one
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
575 associated with GTK_STATE_NORMAL.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
576
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
577 2000-05-16 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
578
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
579 * gtk-xemacs.c (smash_face_fallbacks): New function to reset the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
580 gtk-specific fallbacks on various face specifiers. This means
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
581 that if the user has not changed the face, when a theme or style
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
582 is changed, the faces will automatically change as well.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
583 (gtk_xemacs_style_set): Call it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
584
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
585 * toolbar-gtk.c (get_toolbar_gc): Swap the fg/bg of the toolbar
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
586 face when getting the GC. It looks better this way.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
587
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
588 * gtk-xemacs.c (gtk_xemacs_style_set): Override the style-set
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
589 method so that we can nuke the pixmaps again.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
590 (__nuke_background_items): Moved the voodoo out into its own
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
591 function so that it can be called from both style_set and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
592 realize.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
593
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
594 * console-gtk.h (struct gtk_frame): Removed hardcoded GCs ala X.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
595
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
596 * toolbar-gtk.c (get_toolbar_gc): New function that dynamically
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
597 creates a GC from the `toolbar' face.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
598 (gtk_draw_blank_toolbar_button): Use it instead of the hardcoded
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
599 GC.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
600 (gtk_output_toolbar_button): Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
601 (gtk_output_toolbar): Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
602
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
603 * event-gtk.c (gtk_check_for_quit_char): Quit handling actually
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
604 works now. Feh!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
605
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
606 * device-gtk.c (gtk_device_init_x_specific_cruft): New function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
607 that gets the socket we are listening to the X server on so that
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
608 the SIGIO lossage works correctly for GTK devices.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
609 (gtk_init_device): Call it at device creation time.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
610
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
611 2000-05-15 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
612
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
613 * ui-gtk.c (__internal_callback_marshal): We now correctly handle
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
614 the 'data' argument. This is an arbitrary lisp object passed to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
615 the callback routine as its last argument.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
616
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
617 2000-05-14 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
618
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
619 * event-gtk.c (gtk_event_to_emacs_event): Needed to reinstate the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
620 magic to NOT differentiate betwen ! and shift-!. *sigh*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
621
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
622 * ui-gtk.c (lisp_to_gtk_type): Allow 'nil' for string types so
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
623 that we can pass NULL to gtk-frame-new.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
624
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
625 2000-05-13 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
626
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
627 * gtk-xemacs.c (gtk_xemacs_size_request): Needed to override the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
628 size_request method to get frame sizing correct. Whoo hoo!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
629 (gtk_xemacs_realize): Don't set the background on the GtkXEmacs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
630 window - this reduces the flicker even more.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
631
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
632 * device-gtk.c (gtk_init_device): Don't use shared memory under
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
633 FreeBSD - it is apparently flaky as hell and causes lots of themes
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
634 to crash and burn quite prettily.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
635
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
636 * gtk-xemacs.c (gtk_xemacs_realize): Added new widget method that
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
637 makes sure to nuke the background pixmap of the XEmacs text area
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
638 and its parent (the GtkWindow it is contained in). This fixes the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
639 flashing you would see with themes/styles that define a background
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
640 pixmap.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
641
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
642 2000-05-12 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
643
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
644 * menubar-gtk.c (gtk_update_frame_menubar_internal): Duh, should
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
645 actually pay attention to menubar_will_be_visible instead of just
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
646 calling gtk_widget_show_all in both branches. :)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
647
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
648 2000-05-11 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
649
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
650 * menubar-gtk.c (vars_of_menubar_gtk): New variable
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
651 menubar-dockable-p that controls whether to use the GtkHandleBox
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
652 or not.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
653
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
654 * select-gtk.c: Implemented all of the selection callbacks for GTK
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
655
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
656 * frame-gtk.c (resize_event_cb): Force a redisplay when the frame
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
657 is resized.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
658
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
659 * event-gtk.c (gtk_event_to_emacs_event): When we are doing our
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
660 hackery to make sure we don't see button events inside the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
661 scrollbar, make sure we correctly forward events that did not
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
662 happen over ANY widget, otherwise selection gets royally screwed
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
663 and thinks you still have the mouse button down.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
664
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
665 * redisplay-gtk.c (gtk_output_string): Don't bother calling
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
666 gdk_draw_text_wc - I misunderstood what XDrawString16 did -
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
667 gdk_draw_text encapsulates this nicely for us.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
668
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
669 2000-05-10 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
670
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
671 * menubar-gtk.c: Changed how the menubar is created and managed.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
672 We no longer create and destroy it at will. Only one GtkMenuBar
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
673 is ever created, and the children are just added/removed from it.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
674 Much less flickering when switching buffers - cleaner in general.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
675 (create_menubar_widget): Wheee - menubars are now detachable.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
676
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
677 * ui-gtk.c (Fgtk_import_function_internal): Don't drop everything
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
678 down to its fundamental type just yet - we need to know specifics
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
679 about boxed types.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
680 (object_putprop): Duh, actually SET the property.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
681 (Fgtk_fundamental_type): New function that does the obvious.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
682 (Fgtk_object_type): New function that does the obvious.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
683 (lisp_to_gtk_type): Implement glyph handling! GtkPixmap works!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
684
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
685 * ui-byhand.c (Fgtk_pixmap_get): Implemented by hand. *sigh*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
686
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
687 * dialog-gtk.c: Call into lisp to do dialog boxes.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
688
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
689 2000-05-08 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
690
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
691 * make-src-depend (PrintPatternDeps): Make sure we generate the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
692 xx-gtk.* dependencies.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
693
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
694 * depend: Regenerated
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
695
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
696 * make-src-depend: Handle inclusion of .c files.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
697
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
698 * Makefile.in.in (extra_doc_files): Need to include ui-byhand.c
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
699 here as well.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
700
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
701 * ui-gtk.c (type_to_marshaller_type): Don't abort if we don't know
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
702 about the marshaller. Just return Qnil and let the caller figure
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
703 it out.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
704 (Fgtk_import_function_internal): Deal with new return value of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
705 Qnil for error signalling from type_to_marshaller_type().
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
706 (lisp_to_gtk_type): Half-assed implementation of dealing with
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
707 callbacks.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
708 (gtk_type_to_lisp): Ditto.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
709
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
710 * ui-byhand.c: New file that hand-codes some annoying functions in
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
711 Gtk. *sigh*
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
712
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
713 * emacs-widget-accessors.c (Fgtk_adjustment_lower): New
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
714 auto-generated file that spits out all the widget slot accessor
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
715 functions.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
716
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
717 * ui-gtk.c (Fgtk_signal_connect_internal): Holy shit, signals work!
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
718 (lisp_to_gtk_type): Allow ints to be passed in as arguments to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
719 functions that expect floats, otherwise you have to write stupid
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
720 code like 9.0 instead of just passing in '9'.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
721
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
722 2000-05-07 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
723
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
724 * ui-gtk.c (gtk_type_to_lisp): Return Qnil if we get a NULL
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
725 pointer/object/boxed.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
726 (lisp_to_gtk_type): Allow Qnil to be passed in to mean a NULL
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
727 pointer/object/boxed.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
728
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
729 * event-gtk.c (gtk_event_to_emacs_event): Make sure a button press
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
730 focuses on the text widget, otherwise if someone packs a widget
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
731 into the container from lisp, we end up not getting keyboard focus
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
732 quite a bit. Eek.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
733
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
734 * frame-gtk.c (gtk_create_widgets): Set the name of the xemacs
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
735 shell so we can control sylte issues from .gtkrc
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
736 (gtk_set_initial_frame_size): Set the default size of the frame
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
737 correctly.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
738 (gtk_create_widgets): Expose the frame shell and container widgets
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
739 to lisp.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
740
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
741 * emacs-marshals.c: Added a whole shitload of marshallers - don't
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
742 edit this file by hand if you need to add one. Check out
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
743 ../lisp/ui/gtk-marshal.el for a script that auto-generates them
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
744 for you.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
745
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
746 2000-05-05 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
747
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
748 * ui-gtk.c (describe_gtk_arg): Debugging function to spit out
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
749 human-readable version a GtkArg.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
750 (lisp_to_gtk_type): Made this function much more sane.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
751 (Fgtk_call_function): New function to allow calling generic
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
752 functions from DLLs in lisp.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
753 (CONVERT_RETVAL): New macro (ugh) to convert a pointer that the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
754 return value filled in back into a valid GtkArg.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
755 (Fgtk_call_function): This actually works now! Scary stuff.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
756
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
757 2000-05-04 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
758
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
759 * ui-gtk.c (Fgtk_import_type): New function to import a GtkType
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
760 into the XEmacs namespace. For starters this only fully imports
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
761 enumerations and flags. Importing a GtkObject or subclass results
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
762 in getting a list back of possible signals and argument lists.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
763
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
764 * scrollbar-gtk.c (gtk_create_scrollbar_instance): Fixed some
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
765 compiler warnings.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
766 (scrollbar_cb): Aha! Thanks to the magic of reading the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
767 gtkrange.c source code, we now have better behaving scrollbars.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
768 Clicking in the trough/end arrows now works correctly instead of
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
769 the semi-hackish way it did earlier today.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
770
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
771 * ui-gtk.c (Fgtk_define_enumeration): New function that can
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
772
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
773 * scrollbar-gtk.c (scrollbar_cb): Combined the horizontal and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
774 vertical scrolling callbacks. Differentiate between them by
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
775 user_data.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
776 (scrollbar_cb): Don't bother trying to figure out whether this is
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
777 a line-by-line or page-wide scrolling operation. Just go by what
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
778 is in the value of the adjustment and issue a scrollbar_*_drag
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
779 event. This is not 100% correct, but it at least gets it
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
780 working. Doing it 'right' might not be possible with standard Gtk
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
781 scrollbars.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
782 (scrollbar_drag_hack_cb): New function to set
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
783 vertical_drag_in_progress and inhibit_slider_change when we might
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
784 be starting a drag in the scrollbar.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
785 (gtk_update_scrollbar_instance_status): Better setting of the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
786 adjustment variables. Scrolling by pages (clicking in the trough)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
787 works now. Line-by-line seems to work too.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
788
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
789 2000-05-03 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
790
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
791 * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Got the
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
792 thumb sizing correct finally. Thanks to scrollbar-msw.c for
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
793 showing how to do it sanely - scrollbar-x.c is a mess.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
794
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
795 * window.c (specifier_vars_of_window): Added GTK specific fallback
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
796 for Vvertical_divider_line_width.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
797
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
798 * toolbar.c (specifier_vars_of_toolbar): Handle specifier
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
799 fallbacks for GTK toolbars.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
800
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
801 * gui-gtk.c (button_item_to_widget): Compiles under Gtk at least -
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
802 more than likely completely broken.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
803
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
804 * glyphs-gtk.c (write_lisp_string_to_temp_file): Resurrected this
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
805 blasphemous function to deal with XPMs.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
806 (gtk_xpm_instantiate): Now writes the XPM to a temp file, since
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
807 GTK cannot deal with XPMs from memory. Lame, but not fixable for
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
808 gtk 1.2 - maybe for 1.4.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
809 (gtk_xpm_instantiate): Transparency works now.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
810
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
811 * gccache-gtk.c (gc_cache_lookup): Made non-hash based code
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
812 compile. It is not used, but what the hell.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
813
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
814 * faces.c (complex_vars_of_faces): Do GTK specific mucking about
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
815 with face property fallbacks (fonts and colors)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
816
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
817 * events.c (event_equal): Added special case for GTK.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
818 (event_hash): Added special case for GTK.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
819 (format_event_object): Added special case for GTK events.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
820
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
821 * event-gtk.c (event_name): Use gtk_event_name helper function
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
822 here.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
823 (handle_focus_event_1): Got rid of gtk-redisplay-hack variable and
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
824 usage.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
825
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
826 * device.c (delete_device_internal): Delete 'popup' frames under
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
827 Gtk as well as X. Should this happen for HAVE_MSWINDOWS as well?
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
828
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
829 * console.c (select_console_1): Make sure we set Vwindow_system
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
830 like all the others.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
831
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
832 * frame-gtk.c (gtk_update_frame_external_traits): Added comments
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
833 about why I didn't implement some portions of this function.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
834
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
835 * redisplay-gtk.c (gtk_output_string): Fixed the bizarre redisplay
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
836 problem where all the default text would be drawn twice - once
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
837 with the normal background colour, and once with the text-cursor
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
838 background. This was caused by a stupid typo and using the wrong
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
839 GdkGC in the second call to gdk_draw_text_image... basically no
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
840 clipping was being done on the image, so the whole thing was
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
841 redrawn.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
842 (gtk_output_string): Call gdk_draw_text if we have a background
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
843 pixmap, otherwise things look REALLY weird.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
844 (gtk_clear_region): Had a misplaced brace that caused the non-text
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
845 area of a frame not to get the correct background.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
846
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
847 2000-05-02 William M. Perry <wmperry@aventail.com>
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
848
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
849 * glyphs-gtk.c (gtk_xpm_instantiate): Need to write pixmaps to a
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
850 temp file and then read with gdk_pixmap_create_from_xpm () - there
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
851 is no way to read from a memory buffer (yet - I might write one
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
852 for Gtk 1.4)
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
853
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
854 * glyphs.c: Don't include xpm.h when building with Gtk.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
855 (pixmap_to_lisp_data): Alternate implementation for Gtk.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
856
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
857 * device-gtk.c (gtk_init_device): Call gdk_imlib_init if
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
858 available, otherwise the 'Pixmap' theme engine doesn't work.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
859 Losers.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
860
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
861 * glyphs-gtk.c (gtk_xpm_instantiate): Now at least tries to
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
862 instantiate XPM images.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
863 (init_image_instance_from_gdk_pixmap): Utility function to create
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
864 a glyph from an existing GdkPixmap.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
865
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
866 * device-gtk.c (Fgtk_style_info): Attempt to expose the background
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
867 pixmaps from a Gtk style.
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents:
diff changeset
868