Mercurial > vim
changeset 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 | 617557284eb3 |
children | 97a5a7ef2e9c |
files | src/gui_gtk_x11.c src/version.c |
diffstat | 2 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -3212,15 +3212,7 @@ get_item_dimensions(GtkWidget *widget, G GtkAllocation allocation; gtk_widget_get_allocation(widget, &allocation); - -# ifdef FEAT_GUI_GNOME - if (orientation == GTK_ORIENTATION_HORIZONTAL) - return allocation.height; - else - return allocation.width; -# else return allocation.height; -#endif # else # ifdef FEAT_GUI_GNOME if (orientation == GTK_ORIENTATION_HORIZONTAL)