Mercurial > vim
comparison src/gui_gtk_x11.c @ 18078:5ae41d0ea397 v8.1.2034
patch 8.1.2034: dark them of GTK 3 not supported
Commit: https://github.com/vim/vim/commit/50bf7ce0c9f8c3ede2d1a02c734beba9d5a0504e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 15 13:17:00 2019 +0200
patch 8.1.2034: dark them of GTK 3 not supported
Problem: Dark them of GTK 3 not supported.
Solution: Add the "d" flag in 'guioptions'. (Jonathan Conder, closes https://github.com/vim/vim/issues/4934)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Sep 2019 13:30:04 +0200 |
parents | 554240b9574b |
children | 9e6d5a4abb1c |
comparison
equal
deleted
inserted
replaced
18077:9011f5cb5a0c | 18078:5ae41d0ea397 |
---|---|
3128 old_char_width = gui.char_width; | 3128 old_char_width = gui.char_width; |
3129 old_char_height = gui.char_height; | 3129 old_char_height = gui.char_height; |
3130 } | 3130 } |
3131 } | 3131 } |
3132 | 3132 |
3133 #if defined(FEAT_GUI_DARKTHEME) || defined(PROTO) | |
3134 void | |
3135 gui_mch_set_dark_theme(int dark) | |
3136 { | |
3137 # if GTK_CHECK_VERSION(3,0,0) | |
3138 GtkSettings *gtk_settings; | |
3139 | |
3140 gtk_settings = gtk_settings_get_for_screen(gdk_screen_get_default()); | |
3141 g_object_set(gtk_settings, "gtk-application-prefer-dark-theme", (gboolean)dark, NULL); | |
3142 # endif | |
3143 } | |
3144 #endif /* FEAT_GUI_DARKTHEME */ | |
3145 | |
3133 #ifdef FEAT_TOOLBAR | 3146 #ifdef FEAT_TOOLBAR |
3134 | 3147 |
3135 /* | 3148 /* |
3136 * This extra effort wouldn't be necessary if we only used stock icons in the | 3149 * This extra effort wouldn't be necessary if we only used stock icons in the |
3137 * toolbar, as we do for all builtin icons. But user-defined toolbar icons | 3150 * toolbar, as we do for all builtin icons. But user-defined toolbar icons |