Mercurial > emacs
view lwlib/lwlib-Xaw.h @ 112043:dffe14ef6b65
Reduce GTK tool-bar switching delay by avoiding selective show/hide of widgets.
* src/gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
image or label in the container.
(xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
(xg_show_toolbar_item): Function deleted.
(xg_tool_item_stale_p): New function.
(update_frame_tool_bar): Calculate tool-bar style once per call.
Instead of hiding text labels, omit them. Don't use
xg_show_toolbar_item; create new GtkToolItems from scratch if
necessary, instead of trying to re-use them. This avoids an
annoying animation when changing tool-bars.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 01 Jan 2011 01:02:36 -0500 |
parents | e16f43875a48 |
children | ef719132ddfa |
line wrap: on
line source
#ifndef LWLIB_XAW_H #define LWLIB_XAW_H #include "lwlib-int.h" extern widget_creation_entry xaw_creation_table []; Widget xaw_create_dialog (widget_instance*); Boolean lw_xaw_widget_p (Widget); void xaw_update_one_widget (widget_instance *, Widget, widget_value *, Boolean); void xaw_update_one_value (widget_instance *, Widget, widget_value *); void xaw_destroy_instance (widget_instance *); void xaw_popup_menu (Widget, XEvent *); void xaw_pop_instance (widget_instance *, Boolean); #endif /* LWLIB_XAW_H */ /* arch-tag: 7c0fb4de-afd9-4112-9214-24b663cc1870 (do not change this comment) */