81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.182
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=UTF-8
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.182 (after 7.2.181)
81c2858
Problem:    Compilation problems after previous patch for Motif.  Gvim with
81c2858
	    GTK crashes on startup.
81c2858
Solution:   Add comma.  Init form structure to zeroes.
81c2858
Files:	    src/netbeans.c, src/gui_gtk_f.c
81c2858
81c2858
81c2858
*** ../vim-7.2.181/src/netbeans.c	2009-05-17 16:23:20.000000000 +0200
81c2858
--- src/netbeans.c	2009-05-17 22:34:11.000000000 +0200
81c2858
***************
81c2858
*** 707,713 ****
81c2858
  #else
81c2858
  # ifdef FEAT_GUI_MOTIF
81c2858
      static void
81c2858
! messageFromNetbeans(XtPointer clientData UNUSED
81c2858
  		    int *unused1 UNUSED,
81c2858
  		    XtInputId *unused2 UNUSED)
81c2858
  # endif
81c2858
--- 707,713 ----
81c2858
  #else
81c2858
  # ifdef FEAT_GUI_MOTIF
81c2858
      static void
81c2858
! messageFromNetbeans(XtPointer clientData UNUSED,
81c2858
  		    int *unused1 UNUSED,
81c2858
  		    XtInputId *unused2 UNUSED)
81c2858
  # endif
81c2858
*** ../vim-7.2.181/src/gui_gtk_f.c	2009-05-17 16:23:20.000000000 +0200
81c2858
--- src/gui_gtk_f.c	2009-05-17 23:20:41.000000000 +0200
81c2858
***************
81c2858
*** 229,234 ****
81c2858
--- 229,235 ----
81c2858
      {
81c2858
  	GtkTypeInfo form_info;
81c2858
  
81c2858
+ 	vim_memset(&form_info, 0, sizeof(form_info));
81c2858
  	form_info.type_name = "GtkForm";
81c2858
  	form_info.object_size = sizeof(GtkForm);
81c2858
  	form_info.class_size = sizeof(GtkFormClass);
81c2858
*** ../vim-7.2.181/src/version.c	2009-05-17 16:23:20.000000000 +0200
81c2858
--- src/version.c	2009-05-17 23:21:41.000000000 +0200
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     182,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
We apologise again for the fault in the subtitles.  Those responsible for
81c2858
sacking the people who have just been sacked have been sacked.
81c2858
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///