On Tue, 13 Sep 2011, lith wrote:

$ strace -e trace=file gvim +q | grep themes/ | sed 1q
access("/home/bhaskell/.themes/Raleigh/gtk-2.0/gtkrc", F_OK) = -1 ENOENT
(No such file or directory)

I use a custom theme based on Ambiance theme. When I run the above command (with |& since strace prints the output on stderr)

Oops, lopped that off in editing.


I get

access("/home/tom/.themes/Ambiance/gtk-2.0/gtkrc", F_OK) = -1 ENOENT (No such file or directory)

When I put this file and put the above code snippet there, the background has changed but scroll bars and the like are displayed in gtk's default theme.

Any ideas what I am doing wrong? I run ubuntu 10.04, gnome 2.30.2, gvim 7.3-280.

Hmm. I didn't notice that it reverted to the default theme since for me it was no different than before.

After googling a bit more, a much better place for the customization is to move my suggestion directly into the file: $HOME/.gtkrc-2.0 (creating it if needed).

==> ~/.gtkrc-2.0 <==
style "vim-background" {
    bg[NORMAL] = "#f00"
}
widget "vim-main-window.*.GtkForm" style "vim-background"
====================

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to