]> git.eshelyaron.com Git - emacs.git/commit
Don't redraw tool bar for Gtk+ unless out of date.
authorJan Djärv <jan.h.d@swipnet.se>
Mon, 13 Aug 2012 19:12:26 +0000 (21:12 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Mon, 13 Aug 2012 19:12:26 +0000 (21:12 +0200)
commitca06f160f428224a98cbd6e3ea0dac89b99119ef
tree506600b9abcb0993a82fc81c8016ca458d7b9ec9
parentaa7c6dbeba48522d892cbf011c40a9fef0c369f7
Don't redraw tool bar for Gtk+ unless out of date.

* gtkutil.c (xg_frame_tb_info): New struct.
(TB_INFO_KEY): New define.
(xg_free_frame_widgets): Free xg_frame_tb_info for frame if present.
(xg_mark_data): Mark Lisp_Objects in xg_frame_tb_info.
(xg_create_tool_bar): Allocate and initialize a xg_frame_tb_info
if not present.
(update_frame_tool_bar): Return early if data in xg_frame_tb_info
is up to date. Otherwise store new data.
(free_frame_tool_bar): Free xg_frame_tb_info if present.
src/ChangeLog
src/gtkutil.c