changeset 12413:ca7f2685e339 v8.0.1086

patch 8.0.1086: can't build with GTK 3 commit https://github.com/vim/vim/commit/8696bbaf52cca7c1fcbd5000c83406e462b7dbf4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 9 23:00:56 2017 +0200 patch 8.0.1086: can't build with GTK 3 Problem: Can't build with GTK 3. Solution: Rename function argument. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Sep 2017 23:15:04 +0200
parents ddc6ff901e2f
children 46622370ce1e
files src/gui_gtk_x11.c src/version.c
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -4942,11 +4942,11 @@ gui_mch_set_shellsize(int width, int hei
 }
 
     void
-gui_gtk_get_screen_size_of_win(GtkWidget *win, int *width, int *height)
+gui_gtk_get_screen_size_of_win(GtkWidget *wid, int *width, int *height)
 {
 #if GTK_CHECK_VERSION(3,22,0)
-    GdkDisplay *dpy = gtk_widget_get_display(win);
-    GdkWindow *win = gtk_widget_get_window(win);
+    GdkDisplay *dpy = gtk_widget_get_display(wid);
+    GdkWindow *win = gtk_widget_get_window(wid);
     GdkMonitor *monitor = gdk_display_get_monitor_at_window(dpy, win);
     GdkRectangle geometry;
 
@@ -4956,8 +4956,8 @@ gui_gtk_get_screen_size_of_win(GtkWidget
 #else
     GdkScreen* screen;
 
-    if (win != NULL && gtk_widget_has_screen(win))
-	screen = gtk_widget_get_screen(win);
+    if (wid != NULL && gtk_widget_has_screen(wid))
+	screen = gtk_widget_get_screen(wid);
     else
 	screen = gdk_screen_get_default();
     *width = gdk_screen_get_width(screen);
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1086,
+/**/
     1085,
 /**/
     1084,