Re: [gnotepad-users] Fix patch for 1.3.0
Brought to you by:
ackahn
|
From: Yoichi A. <ya...@ms...> - 2000-06-19 14:11:43
|
Dear Andy,
I didn't show my gtkrc setup on the last message, sorry.
My theme file contains these lines,
-------------------------------------------------------------------------------
style "default"
{
font = "-b&h-lucida-bold-r-normal-sans-12-*-*-*-p-*-iso8859-1"
bg[NORMAL] = { 0.80, 0.80, 0.80 }
fg[NORMAL] = { 0.40, 0.40, 0.60 }
bg[PRELIGHT] = { 0.80, 0.80, 1.00 }
fg[PRELIGHT] = { 0.40, 0.40, 0.60 }
bg[ACTIVE] = { 0.80, 0.80, 0.80 }
fg[ACTIVE] = { 0.40, 0.40, 0.60 }
bg[SELECTED] = { 0.60, 0.60, 0.80 }
fg[SELECTED] = { 0.00, 0.00, 0.00 }
engine "metal"
{
}
}
...
-------------------------------------------------------------------------------
and my ~/.gnp/appgtkrc is like this below:
-------------------------------------------------------------------------------
style "text"
{
font = "-misc-fixed-medium-r-normal-*-14-*-*-*-c-*-iso8859-1"
base[NORMAL] = { 1.0, 1.0, 1.0 }
bg[NORMAL] = { 1.0, 1.0, 1.0 }
text[NORMAL] = { 0.0, 0.0, 0.0 }
fg[NORMAL] = { 0.0, 0.0, 0.0 }
base[SELECTED] = { 0.0, 0.0, 0.6 }
bg[SELECTED] = { 0.0, 0.0, 0.6 }
text[SELECTED] = { 1.0, 1.0, 1.0 }
fg[SELECTED] = { 1.0, 1.0, 1.0 }
}
widget_class "*GtkText" style "text"
-------------------------------------------------------------------------------
"Sample Output" shows lucida on the startup.
Message-ID <200...@or...>
Subject: Re: [gnotepad-users] Fix patch for 1.3.0
Andy Kahn <ac...@ne...> wrote:
> That's odd; this doesn't happen on my end.
I found another solution. It is copying ~.gnp/appgtkrc to
~/.gtkrc.mine. "Sample Output" seems to read this file...
> Upon looking at the code, I can see why the problem might occur (even
> though it doesn't on my system). However, I think the solution is to
> set the text widget style a little earlier, since if it isn't compiled
> with libglade, the style should be set before inserting any new text.
>
> Here's a slightly modified patch:
(Snip)
> Let me know how this works for you.
This works well! Please merge it to next release.
---
Yoichi ASAI <ya...@gn...>
http://www.gnome.gr.jp/~yatt/
|