Re: gtkrc.$localevalue patch




Changwoo Ryu <cwryu@adam.kaist.ac.kr> writes:

> Hello, gnome hackers.  
> 
> The patch below is the implementation of Owen Taylor's proposal, for
> gnome library.
> 
> For example, my usual $LANG value is `ko_KR.euc'.  With this patch
> applied, all gnome programs in my system will try to read gtkrc files
> in this order:
> 
> $gnomedatadir/gtkrc.ko_KR.euc
> $gnomedatadir/gtkrc.ko_KR
> $gnomedatadir/gtkrc.ko
> $gnomedatadir/gtkrc
> $gnomedatadir/$apprc.ko_KR.euc
> $gnomedatadir/$apprc.ko_KR
> $gnomedatadir/$apprc.ko
> $gnomedatadir/$apprc
> ~/.gnome/gtkrc.ko_KR.euc
> <...>
> 
> There has been much discussion about this...  The advantage is, that
> we can distribute gtkrc files needed by some locales.
> 
> Please comment..  Is this patch OK?  

Well, this logic has already been implemented in GTK+ - 
it is used for the RC files in the default locations:

 $sysconfdir/gtk/gtkrc
 ~/.gtkrc
 
and additionally, for any RC files added with
gtk_rc_add_default_file(). So, GNOME could
just use gtk_rc_add_default_file().

(On a related topic, should we "deprecate" ~/.gnome/gtkrc
 now that all GTK+ programs look at ~/.gtkrc by 
 default?)

                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]