Check for deprecated gtk_handle_box in configure.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Dec 2012 18:44:00 +0000 (19:44 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Dec 2012 18:44:00 +0000 (19:44 +0100)
commit5a1d858bbc5410916d764e7f9c62b4e405fab592
treef9d46c3356448d4647ce13352a30acc1b1e116c7
parentd5e5e7b41166815a843148f2081d19bc14b628b2
Check for deprecated gtk_handle_box in configure.

* configure.ac: Check for GtkHandlebox.

* src/gtkutil.c (TOOLBAR_TOP_WIDGET): New macro.
(xg_pack_tool_bar): Use TOOLBAR_TOP_WIDGET, condition out use of
handlebox_widget.  Set toolbar_in_hbox to false/true, set
toolbar_is_packed to true.
(xg_update_tool_bar_sizes): Use widget returned by TOOLBAR_TOP_WIDGET.
(update_frame_tool_bar): Check toolbar_is_packed for packing.
Show all on TOOLBAR_TOP_WIDGET.
(free_frame_tool_bar): Check toolbar_is_packed.  Use widget returned
by TOOLBAR_TOP_WIDGET.
(xg_change_toolbar_position): Use widget returned by TOOLBAR_TOP_WIDGET.
Check toolbar_is_packed.

* src/xterm.h (struct x_output): Surround handlebox_widget with
#ifdef HAVE_GTK_HANDLE_BOX_NEW.  toolbar_is_packed is new,
toolbar_in_hbox is bool.
ChangeLog
configure.ac
src/ChangeLog
src/gtkutil.c
src/xterm.h