Karsten Hopp fd27d2
To: vim-dev@vim.org
Karsten Hopp fd27d2
Subject: Patch 7.0.014
Karsten Hopp fd27d2
Fcc: outbox
Karsten Hopp fd27d2
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fd27d2
Mime-Version: 1.0
Karsten Hopp fd27d2
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp fd27d2
Content-Transfer-Encoding: 8bit
Karsten Hopp fd27d2
------------
Karsten Hopp fd27d2
Karsten Hopp fd27d2
Patch 7.0.014
Karsten Hopp fd27d2
Problem:    Compiling gui_xmebw.c fails on Dec Alpha Tru64. (Rolfe)
Karsten Hopp fd27d2
Solution:   Disable some code for Motif 1.2 and older.
Karsten Hopp fd27d2
Files:	    src/gui_xmebw.c
Karsten Hopp fd27d2
Karsten Hopp fd27d2
Karsten Hopp fd27d2
*** ../vim-7.0.013/src/gui_xmebw.c	Wed May 10 15:22:49 2006
Karsten Hopp fd27d2
--- src/gui_xmebw.c	Thu May 11 19:09:32 2006
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 480,486 ****
Karsten Hopp fd27d2
  	    || (eb->core.height <= 2 * eb->primitive.highlight_thickness))
Karsten Hopp fd27d2
  	return;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
      {
Karsten Hopp fd27d2
  	XmDisplay	dpy;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
--- 480,486 ----
Karsten Hopp fd27d2
  	    || (eb->core.height <= 2 * eb->primitive.highlight_thickness))
Karsten Hopp fd27d2
  	return;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
      {
Karsten Hopp fd27d2
  	XmDisplay	dpy;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 641,647 ****
Karsten Hopp fd27d2
      GC		tmp_gc = NULL;
Karsten Hopp fd27d2
      Boolean	replaceGC = False;
Karsten Hopp fd27d2
      Boolean	deadjusted = False;
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
      XmDisplay	dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
Karsten Hopp fd27d2
      Boolean	etched_in = dpy->display.enable_etched_in_menu;
Karsten Hopp fd27d2
  #else
Karsten Hopp fd27d2
--- 641,647 ----
Karsten Hopp fd27d2
      GC		tmp_gc = NULL;
Karsten Hopp fd27d2
      Boolean	replaceGC = False;
Karsten Hopp fd27d2
      Boolean	deadjusted = False;
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
      XmDisplay	dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
Karsten Hopp fd27d2
      Boolean	etched_in = dpy->display.enable_etched_in_menu;
Karsten Hopp fd27d2
  #else
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 726,732 ****
Karsten Hopp fd27d2
  	if ((((ShellWidget) XtParent(XtParent(eb)))->shell.popped_up)
Karsten Hopp fd27d2
  		&& _XmGetInDragMode((Widget) eb))
Karsten Hopp fd27d2
  	{
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
  	    XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
Karsten Hopp fd27d2
  	    Boolean etched_in = dpy->display.enable_etched_in_menu;
Karsten Hopp fd27d2
  #else
Karsten Hopp fd27d2
--- 726,732 ----
Karsten Hopp fd27d2
  	if ((((ShellWidget) XtParent(XtParent(eb)))->shell.popped_up)
Karsten Hopp fd27d2
  		&& _XmGetInDragMode((Widget) eb))
Karsten Hopp fd27d2
  	{
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
  	    XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
Karsten Hopp fd27d2
  	    Boolean etched_in = dpy->display.enable_etched_in_menu;
Karsten Hopp fd27d2
  #else
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 810,816 ****
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
      if (Lab_IsMenupane(eb))
Karsten Hopp fd27d2
      {
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
  	XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
Karsten Hopp fd27d2
  	Boolean etched_in = dpy->display.enable_etched_in_menu;
Karsten Hopp fd27d2
  #else
Karsten Hopp fd27d2
--- 810,816 ----
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
      if (Lab_IsMenupane(eb))
Karsten Hopp fd27d2
      {
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
  	XmDisplay dpy = (XmDisplay) XmGetXmDisplay(XtDisplay(wid));
Karsten Hopp fd27d2
  	Boolean etched_in = dpy->display.enable_etched_in_menu;
Karsten Hopp fd27d2
  #else
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 1150,1156 ****
Karsten Hopp fd27d2
  Redisplay(Widget w, XEvent *event, Region region)
Karsten Hopp fd27d2
  {
Karsten Hopp fd27d2
      XmEnhancedButtonWidget  eb = (XmEnhancedButtonWidget) w;
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
      XmDisplay		    dpy;
Karsten Hopp fd27d2
      XtEnum		    default_button_emphasis;
Karsten Hopp fd27d2
  #endif
Karsten Hopp fd27d2
--- 1150,1156 ----
Karsten Hopp fd27d2
  Redisplay(Widget w, XEvent *event, Region region)
Karsten Hopp fd27d2
  {
Karsten Hopp fd27d2
      XmEnhancedButtonWidget  eb = (XmEnhancedButtonWidget) w;
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
      XmDisplay		    dpy;
Karsten Hopp fd27d2
      XtEnum		    default_button_emphasis;
Karsten Hopp fd27d2
  #endif
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 1162,1168 ****
Karsten Hopp fd27d2
      if (!XtIsRealized((Widget)eb))
Karsten Hopp fd27d2
  	return;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
      dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
Karsten Hopp fd27d2
      default_button_emphasis = dpy->display.default_button_emphasis;
Karsten Hopp fd27d2
  #endif
Karsten Hopp fd27d2
--- 1162,1168 ----
Karsten Hopp fd27d2
      if (!XtIsRealized((Widget)eb))
Karsten Hopp fd27d2
  	return;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
      dpy = (XmDisplay)XmGetXmDisplay(XtDisplay(eb));
Karsten Hopp fd27d2
      default_button_emphasis = dpy->display.default_button_emphasis;
Karsten Hopp fd27d2
  #endif
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 1241,1247 ****
Karsten Hopp fd27d2
      {
Karsten Hopp fd27d2
  	int adjust = 0;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
  	/*
Karsten Hopp fd27d2
  	 *  NOTE: PushButton has two types of shadows: primitive-shadow and
Karsten Hopp fd27d2
  	 *  default-button-shadow.  If pushbutton is in a menu only primitive
Karsten Hopp fd27d2
--- 1241,1247 ----
Karsten Hopp fd27d2
      {
Karsten Hopp fd27d2
  	int adjust = 0;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
  	/*
Karsten Hopp fd27d2
  	 *  NOTE: PushButton has two types of shadows: primitive-shadow and
Karsten Hopp fd27d2
  	 *  default-button-shadow.  If pushbutton is in a menu only primitive
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 1289,1295 ****
Karsten Hopp fd27d2
  			  adjust, adjust, rectwidth, rectheight, borderwidth);
Karsten Hopp fd27d2
  	    }
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
  	    switch (default_button_emphasis)
Karsten Hopp fd27d2
  	    {
Karsten Hopp fd27d2
  		case XmINTERNAL_HIGHLIGHT:
Karsten Hopp fd27d2
--- 1289,1295 ----
Karsten Hopp fd27d2
  			  adjust, adjust, rectwidth, rectheight, borderwidth);
Karsten Hopp fd27d2
  	    }
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
  	    switch (default_button_emphasis)
Karsten Hopp fd27d2
  	    {
Karsten Hopp fd27d2
  		case XmINTERNAL_HIGHLIGHT:
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 1365,1371 ****
Karsten Hopp fd27d2
  		    default_button_shadow_thickness =
Karsten Hopp fd27d2
  			       eb->pushbutton.default_button_shadow_thickness;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #ifndef LESSTIF_VERSION
Karsten Hopp fd27d2
  		/*
Karsten Hopp fd27d2
  		 * Compute location of bounding box to contain the
Karsten Hopp fd27d2
  		 * defaultButtonShadow.
Karsten Hopp fd27d2
--- 1365,1371 ----
Karsten Hopp fd27d2
  		    default_button_shadow_thickness =
Karsten Hopp fd27d2
  			       eb->pushbutton.default_button_shadow_thickness;
Karsten Hopp fd27d2
  
Karsten Hopp fd27d2
! #if !defined(LESSTIF_VERSION) && (XmVersion > 1002)
Karsten Hopp fd27d2
  		/*
Karsten Hopp fd27d2
  		 * Compute location of bounding box to contain the
Karsten Hopp fd27d2
  		 * defaultButtonShadow.
Karsten Hopp fd27d2
*** ../vim-7.0.013/src/version.c	Fri May 12 19:10:03 2006
Karsten Hopp fd27d2
--- src/version.c	Fri May 12 19:23:12 2006
Karsten Hopp fd27d2
***************
Karsten Hopp fd27d2
*** 668,669 ****
Karsten Hopp fd27d2
--- 668,671 ----
Karsten Hopp fd27d2
  {   /* Add new patch number below this line */
Karsten Hopp fd27d2
+ /**/
Karsten Hopp fd27d2
+     14,
Karsten Hopp fd27d2
  /**/
Karsten Hopp fd27d2
Karsten Hopp fd27d2
-- 
Karsten Hopp fd27d2
hundred-and-one symptoms of being an internet addict:
Karsten Hopp fd27d2
126. You brag to all of your friends about your date Saturday night...but
Karsten Hopp fd27d2
     you don't tell them it was only in a chat room.
Karsten Hopp fd27d2
Karsten Hopp fd27d2
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fd27d2
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fd27d2
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp fd27d2
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///