Karsten Hopp e09cc4
To: vim-dev@vim.org
Karsten Hopp e09cc4
Subject: Patch 7.2.257
Karsten Hopp e09cc4
Fcc: outbox
Karsten Hopp e09cc4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e09cc4
Mime-Version: 1.0
Karsten Hopp e09cc4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e09cc4
Content-Transfer-Encoding: 8bit
Karsten Hopp e09cc4
------------
Karsten Hopp e09cc4
Karsten Hopp e09cc4
Patch 7.2.257
Karsten Hopp e09cc4
Problem:    With GTK 2.17 lots of assertion error messages.
Karsten Hopp e09cc4
Solution:   Remove check for static gravity. (Sebastian Droege)
Karsten Hopp e09cc4
Files:	    src/gui_gtk_f.c
Karsten Hopp e09cc4
Karsten Hopp e09cc4
Karsten Hopp e09cc4
*** ../vim-7.2.256/src/gui_gtk_f.c	2009-05-17 23:25:16.000000000 +0200
Karsten Hopp e09cc4
--- src/gui_gtk_f.c	2009-09-11 15:15:41.000000000 +0200
Karsten Hopp e09cc4
***************
Karsten Hopp e09cc4
*** 860,870 ****
Karsten Hopp e09cc4
  gtk_form_set_static_gravity(GdkWindow *window, gboolean use_static)
Karsten Hopp e09cc4
  {
Karsten Hopp e09cc4
  #ifdef HAVE_GTK2
Karsten Hopp e09cc4
!     gboolean static_gravity_supported;
Karsten Hopp e09cc4
! 
Karsten Hopp e09cc4
!     static_gravity_supported = gdk_window_set_static_gravities(window,
Karsten Hopp e09cc4
! 							       use_static);
Karsten Hopp e09cc4
!     g_return_if_fail(static_gravity_supported);
Karsten Hopp e09cc4
  #else
Karsten Hopp e09cc4
      XSetWindowAttributes xattributes;
Karsten Hopp e09cc4
  
Karsten Hopp e09cc4
--- 860,868 ----
Karsten Hopp e09cc4
  gtk_form_set_static_gravity(GdkWindow *window, gboolean use_static)
Karsten Hopp e09cc4
  {
Karsten Hopp e09cc4
  #ifdef HAVE_GTK2
Karsten Hopp e09cc4
!     /* We don't check if static gravity is actually supported, because it
Karsten Hopp e09cc4
!      * results in an annoying assertion error message. */
Karsten Hopp e09cc4
!     gdk_window_set_static_gravities(window, use_static);
Karsten Hopp e09cc4
  #else
Karsten Hopp e09cc4
      XSetWindowAttributes xattributes;
Karsten Hopp e09cc4
  
Karsten Hopp e09cc4
*** ../vim-7.2.256/src/version.c	2009-09-11 15:46:20.000000000 +0200
Karsten Hopp e09cc4
--- src/version.c	2009-09-11 16:16:52.000000000 +0200
Karsten Hopp e09cc4
***************
Karsten Hopp e09cc4
*** 678,679 ****
Karsten Hopp e09cc4
--- 678,681 ----
Karsten Hopp e09cc4
  {   /* Add new patch number below this line */
Karsten Hopp e09cc4
+ /**/
Karsten Hopp e09cc4
+     257,
Karsten Hopp e09cc4
  /**/
Karsten Hopp e09cc4
Karsten Hopp e09cc4
-- 
Karsten Hopp e09cc4
hundred-and-one symptoms of being an internet addict:
Karsten Hopp e09cc4
231. You sprinkle Carpet Fresh on the rugs and put your vacuum cleaner
Karsten Hopp e09cc4
     in the front doorway permanently so it always looks like you are
Karsten Hopp e09cc4
     actually attempting to do something about that mess that has amassed
Karsten Hopp e09cc4
     since you discovered the Internet.
Karsten Hopp e09cc4
Karsten Hopp e09cc4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e09cc4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e09cc4
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp e09cc4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///