comparison src/gui_gtk_x11.c @ 10773:bda1d67f83f3 v8.0.0276

patch 8.0.0276: unnecessary #ifdefs commit https://github.com/vim/vim/commit/3954e3c4b5d2bfda4c481c076fbc39ab06be7639 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 1 11:50:09 2017 +0100 patch 8.0.0276: unnecessary #ifdefs Problem: Checking for FEAT_GUI_GNOME inside GTK 3 code is unnecessary. Solution: Remove the #ifdef. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Feb 2017 12:00:04 +0100
parents a8ce0dbbb1d0
children 687833a3fadc
comparison
equal deleted inserted replaced
10772:617557284eb3 10773:bda1d67f83f3
3210 { 3210 {
3211 # if GTK_CHECK_VERSION(3,0,0) 3211 # if GTK_CHECK_VERSION(3,0,0)
3212 GtkAllocation allocation; 3212 GtkAllocation allocation;
3213 3213
3214 gtk_widget_get_allocation(widget, &allocation); 3214 gtk_widget_get_allocation(widget, &allocation);
3215
3216 # ifdef FEAT_GUI_GNOME
3217 if (orientation == GTK_ORIENTATION_HORIZONTAL)
3218 return allocation.height;
3219 else
3220 return allocation.width;
3221 # else
3222 return allocation.height; 3215 return allocation.height;
3223 #endif
3224 # else 3216 # else
3225 # ifdef FEAT_GUI_GNOME 3217 # ifdef FEAT_GUI_GNOME
3226 if (orientation == GTK_ORIENTATION_HORIZONTAL) 3218 if (orientation == GTK_ORIENTATION_HORIZONTAL)
3227 return widget->allocation.height; 3219 return widget->allocation.height;
3228 else 3220 else