FW: Strange coloring for GTK build

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FW: Strange coloring for GTK build

Larson, David
I sent this message just as the mail server died. Resending...

-----Original Message-----
From: Larson, David
Sent: Monday, June 11, 2007 12:22 PM
To: vim-dev
Subject: Strange coloring for GTK build

Hi all,

When I compile the sources for the GTK gui some of the colors do not
turn out right. I've attached a screen clipping showing the two builds.
The one on the left is a MOTIF gui, the one on the right is GTK. Notice
the differences for SpecialKey, NonText, Directory, LineNr, WarningMsg,
to name a few and some of the colors are correct, like ErrorMsg and
Search. Also notice that the FireBrick color turns out correctly for
ErrorMsg, but it is blue for WarningMsg, then it is correct again for
SpellBad.

The GTK build info follows:

:version
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun 11 2007 11:56:48)
Included patches: 1
[...]
Big version with GTK2 GUI.  Features included (+) or not (-):
[...]
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I
/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include     -g -O2  -I/usr/X11R6/include
Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.
0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lncurs
es -lacl -lgpm

And here is the Motif build:

:version
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun  7 2007 14:24:37)
Included patches: 1
[...]
Big version with X11-Motif GUI.  Features included (+) or not (-):
[...]
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF
-DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R6/include
 -g -O2  -I/usr/X11R6/include
Linking: gcc -L/usr/X11R6/lib -L/usr/X11R6/lib   -L/usr/local/lib -o vim
-lXext -lXm -lXpm -lncurses -lacl -lgpm

Can anyone help me out?

Thanks!
David

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---


GTKcolor.jpg (402K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FW: Strange coloring for GTK build

Tony Mechelynck

Larson, David wrote:

> I sent this message just as the mail server died. Resending...
>
> -----Original Message-----
> From: Larson, David
> Sent: Monday, June 11, 2007 12:22 PM
> To: vim-dev
> Subject: Strange coloring for GTK build
>
> Hi all,
>
> When I compile the sources for the GTK gui some of the colors do not
> turn out right. I've attached a screen clipping showing the two builds.
> The one on the left is a MOTIF gui, the one on the right is GTK. Notice
> the differences for SpecialKey, NonText, Directory, LineNr, WarningMsg,
> to name a few and some of the colors are correct, like ErrorMsg and
> Search. Also notice that the FireBrick color turns out correctly for
> ErrorMsg, but it is blue for WarningMsg, then it is correct again for
> SpellBad.
>
> The GTK build info follows:
>
> :version
> VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun 11 2007 11:56:48)
> Included patches: 1
> [...]
> Big version with GTK2 GUI.  Features included (+) or not (-):
> [...]
> Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I
> /usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
> -I/usr/include/freetype2 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include     -g -O2  -I/usr/X11R6/include
> Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim
> -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.
> 0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
> -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lncurs
> es -lacl -lgpm
>
> And here is the Motif build:
>
> :version
> VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun  7 2007 14:24:37)
> Included patches: 1
> [...]
> Big version with X11-Motif GUI.  Features included (+) or not (-):
> [...]
> Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF
> -DFUNCPROTO=15 -DNARROWPROTO -I/usr/X11R6/include
>  -g -O2  -I/usr/X11R6/include
> Linking: gcc -L/usr/X11R6/lib -L/usr/X11R6/lib   -L/usr/local/lib -o vim
> -lXext -lXm -lXpm -lncurses -lacl -lgpm
>
> Can anyone help me out?
>
> Thanks!
> David

It would have been easier with the same guifont (face and size); but I notice
most colors are the same.

- Is 'background' set to the same setting? (":set background?")

- I don't know whether Motif and GTK2 get their "symbolic names to RGB"
conversion from the same place. (I would hope that they do, e.g. from
/usr/share/X11/rgb.txt which is the most "neutral" of the several places where
I find rgb.txt on my system.)

On my system I would expect firebrick (all lowercase) to equate to #B22222 --
my rgb.txt doesn't have it in camel-case but is it necessary?

If someone has better insights than mine, please speak out, I feel stumped.


Best regards,
Tony.
--
"In any world menu, Canada must be considered the vichyssoise of
nations -- it's cold, half-French, and difficult to stir."
                -- Stuart Keate

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---