comparison src/gtkutil.h @ 52981:54482f5ea7be

Remove tear off capability for GTK popup menus. Since the context in Lisp is not present anymore, we don't know how to invoke the action for a menu item.
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 02 Nov 2003 16:47:32 +0000
parents 695cf19ef79e
children 1218a42792ea
comparison
equal deleted inserted replaced
52980:46bcce3b9533 52981:54482f5ea7be
148 GCallback deactivate_cb, 148 GCallback deactivate_cb,
149 GCallback hightlight_cb)); 149 GCallback hightlight_cb));
150 150
151 extern int xg_update_frame_menubar P_ ((FRAME_PTR f)); 151 extern int xg_update_frame_menubar P_ ((FRAME_PTR f));
152 152
153 extern void xg_keep_popup P_ ((GtkWidget *menu, GtkWidget *submenu)); 153 extern int xg_have_tear_offs P_ ((void));
154 154
155 extern int xg_get_scroll_id_for_window P_ ((Window wid)); 155 extern int xg_get_scroll_id_for_window P_ ((Window wid));
156 156
157 extern void xg_create_scroll_bar P_ ((FRAME_PTR f, 157 extern void xg_create_scroll_bar P_ ((FRAME_PTR f,
158 struct scroll_bar *bar, 158 struct scroll_bar *bar,
199 199
200 /* Setting scrollbar values invokes the callback. Use this variable 200 /* Setting scrollbar values invokes the callback. Use this variable
201 to indicate that the callback should do nothing. */ 201 to indicate that the callback should do nothing. */
202 extern int xg_ignore_gtk_scrollbar; 202 extern int xg_ignore_gtk_scrollbar;
203 203
204 /* If a detach of a menu is done, this is the menu widget that got
205 detached. Must be set to NULL before popping up popup menus.
206 Used with xg_keep_popup to delay deleting popup menus when they
207 have been detached. */
208 extern GtkWidget *xg_did_tearoff;
209
210 #endif /* USE_GTK */ 204 #endif /* USE_GTK */
211 #endif /* GTKUTIL_H */ 205 #endif /* GTKUTIL_H */
212 206
213 /* arch-tag: 0757f3dc-00c7-4cee-9e4c-282cf1d34c72 207 /* arch-tag: 0757f3dc-00c7-4cee-9e4c-282cf1d34c72
214 (do not change this comment) */ 208 (do not change this comment) */