Karsten Hopp 531080
To: vim-dev@vim.org
Karsten Hopp 531080
Subject: Patch 7.1.317
Karsten Hopp 531080
Fcc: outbox
Karsten Hopp 531080
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 531080
Mime-Version: 1.0
Karsten Hopp 531080
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 531080
Content-Transfer-Encoding: 8bit
Karsten Hopp 531080
------------
Karsten Hopp 531080
Karsten Hopp 531080
Patch 7.1.317
Karsten Hopp 531080
Problem:    Compiler warnings in Motif calls.
Karsten Hopp 531080
Solution:   Change zero to NULL. (Dominique Pelle)
Karsten Hopp 531080
Files:	    src/gui_motif.c
Karsten Hopp 531080
Karsten Hopp 531080
Karsten Hopp 531080
*** ../vim-7.1.316/src/gui_motif.c	Tue Jan 22 11:06:06 2008
Karsten Hopp 531080
--- src/gui_motif.c	Sat Jun  7 15:06:33 2008
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 686,693 ****
Karsten Hopp 531080
  
Karsten Hopp 531080
      /* Temporarily set value of XmNmappedWhenManaged
Karsten Hopp 531080
         to stop the dialog from popping up right away */
Karsten Hopp 531080
!     XtVaGetValues(shell, XmNmappedWhenManaged, &mappedWhenManaged, 0);
Karsten Hopp 531080
!     XtVaSetValues(shell, XmNmappedWhenManaged, False, 0);
Karsten Hopp 531080
  
Karsten Hopp 531080
      XtManageChild(dialog_child);
Karsten Hopp 531080
  
Karsten Hopp 531080
--- 686,693 ----
Karsten Hopp 531080
  
Karsten Hopp 531080
      /* Temporarily set value of XmNmappedWhenManaged
Karsten Hopp 531080
         to stop the dialog from popping up right away */
Karsten Hopp 531080
!     XtVaGetValues(shell, XmNmappedWhenManaged, &mappedWhenManaged, NULL);
Karsten Hopp 531080
!     XtVaSetValues(shell, XmNmappedWhenManaged, False, NULL);
Karsten Hopp 531080
  
Karsten Hopp 531080
      XtManageChild(dialog_child);
Karsten Hopp 531080
  
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 723,729 ****
Karsten Hopp 531080
      XtMapWidget(shell);
Karsten Hopp 531080
  
Karsten Hopp 531080
      /* Restore the value of XmNmappedWhenManaged */
Karsten Hopp 531080
!     XtVaSetValues(shell, XmNmappedWhenManaged, mappedWhenManaged, 0);
Karsten Hopp 531080
  }
Karsten Hopp 531080
  
Karsten Hopp 531080
  #if defined(FEAT_MENU) || defined(FEAT_SUN_WORKSHOP) \
Karsten Hopp 531080
--- 723,729 ----
Karsten Hopp 531080
      XtMapWidget(shell);
Karsten Hopp 531080
  
Karsten Hopp 531080
      /* Restore the value of XmNmappedWhenManaged */
Karsten Hopp 531080
!     XtVaSetValues(shell, XmNmappedWhenManaged, mappedWhenManaged, NULL);
Karsten Hopp 531080
  }
Karsten Hopp 531080
  
Karsten Hopp 531080
  #if defined(FEAT_MENU) || defined(FEAT_SUN_WORKSHOP) \
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 1993,1999 ****
Karsten Hopp 531080
      {
Karsten Hopp 531080
  	if (XtClass(w) == xmRowColumnWidgetClass)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
! 	    XtVaGetValues(w, XmNrowColumnType, &rowColType, 0);
Karsten Hopp 531080
  	    isMenu = (rowColType != (unsigned char)XmWORK_AREA);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
  	else
Karsten Hopp 531080
--- 1993,1999 ----
Karsten Hopp 531080
      {
Karsten Hopp 531080
  	if (XtClass(w) == xmRowColumnWidgetClass)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
! 	    XtVaGetValues(w, XmNrowColumnType, &rowColType, NULL);
Karsten Hopp 531080
  	    isMenu = (rowColType != (unsigned char)XmWORK_AREA);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
  	else
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 2001,2014 ****
Karsten Hopp 531080
  	if (!isMenu)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    XtVaGetValues(w, XmNchildren, &children, XmNnumChildren,
Karsten Hopp 531080
! 			  &numChildren, 0);
Karsten Hopp 531080
  	    for (i = 0; i < numChildren; i++)
Karsten Hopp 531080
  		do_mnemonic(children[i], keycode);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
      }
Karsten Hopp 531080
      else
Karsten Hopp 531080
      {
Karsten Hopp 531080
! 	XtVaGetValues(w, XmNmnemonic, &mnemonic, 0);
Karsten Hopp 531080
  	if (mnemonic != '\0')
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    mneString[0] = mnemonic;
Karsten Hopp 531080
--- 2001,2014 ----
Karsten Hopp 531080
  	if (!isMenu)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    XtVaGetValues(w, XmNchildren, &children, XmNnumChildren,
Karsten Hopp 531080
! 			  &numChildren, NULL);
Karsten Hopp 531080
  	    for (i = 0; i < numChildren; i++)
Karsten Hopp 531080
  		do_mnemonic(children[i], keycode);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
      }
Karsten Hopp 531080
      else
Karsten Hopp 531080
      {
Karsten Hopp 531080
! 	XtVaGetValues(w, XmNmnemonic, &mnemonic, NULL);
Karsten Hopp 531080
  	if (mnemonic != '\0')
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    mneString[0] = mnemonic;
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 2019,2025 ****
Karsten Hopp 531080
  		if (XtClass(w) == xmLabelWidgetClass
Karsten Hopp 531080
  			|| XtClass(w) == xmLabelGadgetClass)
Karsten Hopp 531080
  		{
Karsten Hopp 531080
! 		    XtVaGetValues(w, XmNuserData, &userData, 0);
Karsten Hopp 531080
  		    if (userData != NULL && XtIsWidget(userData))
Karsten Hopp 531080
  			XmProcessTraversal(userData, XmTRAVERSE_CURRENT);
Karsten Hopp 531080
  		}
Karsten Hopp 531080
--- 2019,2025 ----
Karsten Hopp 531080
  		if (XtClass(w) == xmLabelWidgetClass
Karsten Hopp 531080
  			|| XtClass(w) == xmLabelGadgetClass)
Karsten Hopp 531080
  		{
Karsten Hopp 531080
! 		    XtVaGetValues(w, XmNuserData, &userData, NULL);
Karsten Hopp 531080
  		    if (userData != NULL && XtIsWidget(userData))
Karsten Hopp 531080
  			XmProcessTraversal(userData, XmTRAVERSE_CURRENT);
Karsten Hopp 531080
  		}
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 2073,2079 ****
Karsten Hopp 531080
      {
Karsten Hopp 531080
  	if (XtClass(w) == xmRowColumnWidgetClass)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
! 	    XtVaGetValues(w, XmNrowColumnType, &rowColType, 0);
Karsten Hopp 531080
  	    isMenu = (rowColType != (unsigned char)XmWORK_AREA);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
  	else
Karsten Hopp 531080
--- 2073,2079 ----
Karsten Hopp 531080
      {
Karsten Hopp 531080
  	if (XtClass(w) == xmRowColumnWidgetClass)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
! 	    XtVaGetValues(w, XmNrowColumnType, &rowColType, NULL);
Karsten Hopp 531080
  	    isMenu = (rowColType != (unsigned char)XmWORK_AREA);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
  	else
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 2081,2094 ****
Karsten Hopp 531080
  	if (!isMenu)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    XtVaGetValues(w, XmNchildren, &children, XmNnumChildren,
Karsten Hopp 531080
! 							     &numChildren, 0);
Karsten Hopp 531080
  	    for (i = 0; i < numChildren; i++)
Karsten Hopp 531080
  		add_mnemonic_grabs(dialog, children[i]);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
      }
Karsten Hopp 531080
      else
Karsten Hopp 531080
      {
Karsten Hopp 531080
! 	XtVaGetValues(w, XmNmnemonic, &mnemonic, 0);
Karsten Hopp 531080
  	if (mnemonic != '\0')
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    mneString[0] = mnemonic;
Karsten Hopp 531080
--- 2081,2094 ----
Karsten Hopp 531080
  	if (!isMenu)
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    XtVaGetValues(w, XmNchildren, &children, XmNnumChildren,
Karsten Hopp 531080
! 							  &numChildren, NULL);
Karsten Hopp 531080
  	    for (i = 0; i < numChildren; i++)
Karsten Hopp 531080
  		add_mnemonic_grabs(dialog, children[i]);
Karsten Hopp 531080
  	}
Karsten Hopp 531080
      }
Karsten Hopp 531080
      else
Karsten Hopp 531080
      {
Karsten Hopp 531080
! 	XtVaGetValues(w, XmNmnemonic, &mnemonic, NULL);
Karsten Hopp 531080
  	if (mnemonic != '\0')
Karsten Hopp 531080
  	{
Karsten Hopp 531080
  	    mneString[0] = mnemonic;
Karsten Hopp 531080
*** ../vim-7.1.316/src/version.c	Fri Jun 20 11:10:53 2008
Karsten Hopp 531080
--- src/version.c	Fri Jun 20 11:38:25 2008
Karsten Hopp 531080
***************
Karsten Hopp 531080
*** 668,669 ****
Karsten Hopp 531080
--- 673,676 ----
Karsten Hopp 531080
  {   /* Add new patch number below this line */
Karsten Hopp 531080
+ /**/
Karsten Hopp 531080
+     317,
Karsten Hopp 531080
  /**/
Karsten Hopp 531080
Karsten Hopp 531080
-- 
Karsten Hopp 531080
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 531080
43. You tell the kids they can't use the computer because "Daddy's got work to
Karsten Hopp 531080
    do" and you don't even have a job.
Karsten Hopp 531080
Karsten Hopp 531080
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 531080
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 531080
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 531080
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///