From: Bram Moolenaar Date: Sat, 9 Sep 2017 21:00:56 +0000 (+0200) Subject: patch 8.0.1086: can't build with GTK 3 X-Git-Tag: v8.0.1086 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8696bbaf52cca7c1fcbd5000c83406e462b7dbf4;p=vim patch 8.0.1086: can't build with GTK 3 Problem: Can't build with GTK 3. Solution: Rename function argument. (Kazunobu Kuriyama) --- diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 510986549..9225375a1 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -4942,11 +4942,11 @@ gui_mch_set_shellsize(int width, int height, } 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 *win, int *width, int *height) #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); diff --git a/src/version.c b/src/version.c index cb5963424..d20af56f2 100644 --- a/src/version.c +++ b/src/version.c @@ -769,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1086, /**/ 1085, /**/