comparison src/gui_gtk.c @ 12477:68d7bc045dbe v8.0.1118

patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 16 20:54:51 2017 +0200 patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Sep 2017 21:00:06 +0200
parents 9b1077d33c68
children 3ca08bf99396
comparison
equal deleted inserted replaced
12476:2516383741e6 12477:68d7bc045dbe
1158 #endif 1158 #endif
1159 gui_mch_update(); 1159 gui_mch_update();
1160 } 1160 }
1161 } 1161 }
1162 1162
1163 #if defined(FEAT_WINDOWS) || defined(PROTO)
1164 void 1163 void
1165 gui_mch_destroy_scrollbar(scrollbar_T *sb) 1164 gui_mch_destroy_scrollbar(scrollbar_T *sb)
1166 { 1165 {
1167 if (sb->id != NULL) 1166 if (sb->id != NULL)
1168 { 1167 {
1169 gtk_widget_destroy(sb->id); 1168 gtk_widget_destroy(sb->id);
1170 sb->id = NULL; 1169 sb->id = NULL;
1171 } 1170 }
1172 gui_mch_update(); 1171 gui_mch_update();
1173 } 1172 }
1174 #endif
1175 1173
1176 #if defined(FEAT_BROWSE) || defined(PROTO) 1174 #if defined(FEAT_BROWSE) || defined(PROTO)
1177 /* 1175 /*
1178 * Implementation of the file selector related stuff 1176 * Implementation of the file selector related stuff
1179 */ 1177 */