Skip to content

Commit a8c5796

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 3df2134 + 0b5c93a commit a8c5796

File tree

19 files changed

+207
-150
lines changed

19 files changed

+207
-150
lines changed

src/Make_mvc.mak

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@ MSVCRT_VER = ($(MSVCVER) / 10 - 50)
285285
# Base name of the msvcrXX.dll
286286
!if $(MSVCRT_VER) <= 60
287287
MSVCRT_NAME = msvcrt
288-
!else
288+
!elseif $(MSVCRT_VER) <= 130
289289
MSVCRT_NAME = msvcr$(MSVCRT_VER)
290+
!else
291+
MSVCRT_NAME = vcruntime$(MSVCRT_VER)
290292
!endif
291293

292294
!if $(MSVC_MAJOR) == 6

src/gui_gtk_x11.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,9 +3171,9 @@ delete_event_cb(GtkWidget *widget UNUSED,
31713171
static int
31723172
get_item_dimensions(GtkWidget *widget, GtkOrientation orientation)
31733173
{
3174+
# ifdef FEAT_GUI_GNOME
31743175
GtkOrientation item_orientation = GTK_ORIENTATION_HORIZONTAL;
31753176

3176-
# ifdef FEAT_GUI_GNOME
31773177
if (using_gnome && widget != NULL)
31783178
{
31793179
GtkWidget *parent;
@@ -3192,7 +3192,10 @@ get_item_dimensions(GtkWidget *widget, GtkOrientation orientation)
31923192
item_orientation = bonobo_dock_item_get_orientation(dockitem);
31933193
}
31943194
}
3195+
# else
3196+
# define item_orientation GTK_ORIENTATION_HORIZONTAL
31953197
# endif
3198+
31963199
# if GTK_CHECK_VERSION(3,0,0)
31973200
if (widget != NULL
31983201
&& item_orientation == orientation
@@ -3209,16 +3212,16 @@ get_item_dimensions(GtkWidget *widget, GtkOrientation orientation)
32093212
GtkAllocation allocation;
32103213

32113214
gtk_widget_get_allocation(widget, &allocation);
3212-
3213-
if (orientation == GTK_ORIENTATION_HORIZONTAL)
3214-
return allocation.height;
3215-
else
3216-
return allocation.width;
3215+
return allocation.height;
32173216
# else
3217+
# ifdef FEAT_GUI_GNOME
32183218
if (orientation == GTK_ORIENTATION_HORIZONTAL)
32193219
return widget->allocation.height;
32203220
else
32213221
return widget->allocation.width;
3222+
# else
3223+
return widget->allocation.height;
3224+
# endif
32223225
# endif
32233226
}
32243227
return 0;

0 commit comments

Comments
 (0)