Mercurial > emacs
comparison src/gtkutil.h @ 109423:ae5ef13849d8
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Sun, 04 Jul 2010 22:11:22 +0000 |
parents | e16f43875a48 |
children | 051595eb9b58 |
comparison
equal
deleted
inserted
replaced
109422:bcedeeedc5fb | 109423:ae5ef13849d8 |
---|---|
120 | 120 |
121 #ifdef HAVE_GTK_FILE_SELECTION_NEW | 121 #ifdef HAVE_GTK_FILE_SELECTION_NEW |
122 extern int use_old_gtk_file_dialog; | 122 extern int use_old_gtk_file_dialog; |
123 #endif | 123 #endif |
124 | 124 |
125 extern widget_value *malloc_widget_value P_ ((void)); | 125 extern widget_value *malloc_widget_value (void); |
126 extern void free_widget_value P_ ((widget_value *)); | 126 extern void free_widget_value (widget_value *); |
127 | 127 |
128 extern int xg_uses_old_file_dialog P_ ((void)); | 128 extern int xg_uses_old_file_dialog (void); |
129 | 129 |
130 extern char *xg_get_file_name P_ ((FRAME_PTR f, | 130 extern char *xg_get_file_name (FRAME_PTR f, |
131 char *prompt, | 131 char *prompt, |
132 char *default_filename, | 132 char *default_filename, |
133 int mustmatch_p, | 133 int mustmatch_p, |
134 int only_dir_p)); | 134 int only_dir_p); |
135 | 135 |
136 extern char *xg_get_font_name P_ ((FRAME_PTR f, char *)); | 136 extern char *xg_get_font_name (FRAME_PTR f, char *); |
137 | 137 |
138 extern GtkWidget *xg_create_widget P_ ((char *type, | 138 extern GtkWidget *xg_create_widget (char *type, |
139 char *name, | 139 char *name, |
140 FRAME_PTR f, | 140 FRAME_PTR f, |
141 widget_value *val, | 141 widget_value *val, |
142 GCallback select_cb, | 142 GCallback select_cb, |
143 GCallback deactivate_cb, | 143 GCallback deactivate_cb, |
144 GCallback hightlight_cb)); | 144 GCallback hightlight_cb); |
145 | 145 |
146 extern void xg_modify_menubar_widgets P_ ((GtkWidget *menubar, | 146 extern void xg_modify_menubar_widgets (GtkWidget *menubar, |
147 FRAME_PTR f, | 147 FRAME_PTR f, |
148 widget_value *val, | 148 widget_value *val, |
149 int deep_p, | 149 int deep_p, |
150 GCallback select_cb, | 150 GCallback select_cb, |
151 GCallback deactivate_cb, | 151 GCallback deactivate_cb, |
152 GCallback hightlight_cb)); | 152 GCallback hightlight_cb); |
153 | 153 |
154 extern int xg_update_frame_menubar P_ ((FRAME_PTR f)); | 154 extern int xg_update_frame_menubar (FRAME_PTR f); |
155 | 155 |
156 extern int xg_have_tear_offs P_ ((void)); | 156 extern int xg_have_tear_offs (void); |
157 | 157 |
158 extern int xg_get_scroll_id_for_window P_ ((Display *dpy, Window wid)); | 158 extern int xg_get_scroll_id_for_window (Display *dpy, Window wid); |
159 | 159 |
160 extern void xg_create_scroll_bar P_ ((FRAME_PTR f, | 160 extern void xg_create_scroll_bar (FRAME_PTR f, |
161 struct scroll_bar *bar, | 161 struct scroll_bar *bar, |
162 GCallback scroll_callback, | 162 GCallback scroll_callback, |
163 GCallback end_callback, | 163 GCallback end_callback, |
164 char *scroll_bar_name)); | 164 char *scroll_bar_name); |
165 extern void xg_remove_scroll_bar P_ ((FRAME_PTR f, int scrollbar_id)); | 165 extern void xg_remove_scroll_bar (FRAME_PTR f, int scrollbar_id); |
166 | 166 |
167 extern void xg_update_scrollbar_pos P_ ((FRAME_PTR f, | 167 extern void xg_update_scrollbar_pos (FRAME_PTR f, |
168 int scrollbar_id, | 168 int scrollbar_id, |
169 int top, | 169 int top, |
170 int left, | 170 int left, |
171 int width, | 171 int width, |
172 int height)); | 172 int height); |
173 | 173 |
174 extern void xg_set_toolkit_scroll_bar_thumb P_ ((struct scroll_bar *bar, | 174 extern void xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, |
175 int portion, | 175 int portion, |
176 int position, | 176 int position, |
177 int whole)); | 177 int whole); |
178 extern int xg_event_is_for_scrollbar P_ ((FRAME_PTR f, XEvent *event)); | 178 extern int xg_event_is_for_scrollbar (FRAME_PTR f, XEvent *event); |
179 | 179 |
180 extern void update_frame_tool_bar P_ ((FRAME_PTR f)); | 180 extern void update_frame_tool_bar (FRAME_PTR f); |
181 extern void free_frame_tool_bar P_ ((FRAME_PTR f)); | 181 extern void free_frame_tool_bar (FRAME_PTR f); |
182 | 182 |
183 extern void xg_frame_resized P_ ((FRAME_PTR f, | 183 extern void xg_frame_resized (FRAME_PTR f, |
184 int pixelwidth, | 184 int pixelwidth, |
185 int pixelheight)); | 185 int pixelheight); |
186 extern void xg_frame_set_char_size P_ ((FRAME_PTR f, int cols, int rows)); | 186 extern void xg_frame_set_char_size (FRAME_PTR f, int cols, int rows); |
187 extern GtkWidget * xg_win_to_widget P_ ((Display *dpy, Window wdesc)); | 187 extern GtkWidget * xg_win_to_widget (Display *dpy, Window wdesc); |
188 | 188 |
189 extern void xg_display_open P_ ((char *display_name, Display **dpy)); | 189 extern void xg_display_open (char *display_name, Display **dpy); |
190 extern void xg_display_close P_ ((Display *dpy)); | 190 extern void xg_display_close (Display *dpy); |
191 extern GdkCursor * xg_create_default_cursor P_ ((Display *dpy)); | 191 extern GdkCursor * xg_create_default_cursor (Display *dpy); |
192 | 192 |
193 extern int xg_create_frame_widgets P_ ((FRAME_PTR f)); | 193 extern int xg_create_frame_widgets (FRAME_PTR f); |
194 extern void x_wm_set_size_hint P_ ((FRAME_PTR f, | 194 extern void x_wm_set_size_hint (FRAME_PTR f, |
195 long flags, | 195 long flags, |
196 int user_position)); | 196 int user_position); |
197 extern void xg_set_background_color P_ ((FRAME_PTR f, unsigned long bg)); | 197 extern void xg_set_background_color (FRAME_PTR f, unsigned long bg); |
198 | 198 |
199 extern void xg_set_frame_icon P_ ((FRAME_PTR f, | 199 extern void xg_set_frame_icon (FRAME_PTR f, |
200 Pixmap icon_pixmap, | 200 Pixmap icon_pixmap, |
201 Pixmap icon_mask)); | 201 Pixmap icon_mask); |
202 | 202 |
203 /* Mark all callback data that are Lisp_object:s during GC. */ | 203 /* Mark all callback data that are Lisp_object:s during GC. */ |
204 extern void xg_mark_data P_ ((void)); | 204 extern void xg_mark_data (void); |
205 | 205 |
206 /* Initialize GTK specific parts. */ | 206 /* Initialize GTK specific parts. */ |
207 extern void xg_initialize P_ ((void)); | 207 extern void xg_initialize (void); |
208 | 208 |
209 /* Setting scrollbar values invokes the callback. Use this variable | 209 /* Setting scrollbar values invokes the callback. Use this variable |
210 to indicate that the callback should do nothing. */ | 210 to indicate that the callback should do nothing. */ |
211 extern int xg_ignore_gtk_scrollbar; | 211 extern int xg_ignore_gtk_scrollbar; |
212 | 212 |