GTK+ and XIM and Russian?



Check out http://bugs.debian.org/46429 for the back story; I have
no idea what's going on.

Basically, someone's trying to run gvim, which complains:

"Your GTK+ does not support XIM"

Evidently gvim is testing if gdk_im_ready() returns true.

How can GTK+ get to be compiled without XIM support? ./configure
--help says:

[ben@gilgamesh:~/src/gtk-1.2/gtk+-1.2.5]% ./configure --help | grep xim  9:52AM
  --enable-xim            support XIM [default=yes]
  --disable-xim-inst      does not use xim instantiate callback

When I build the GTK+ Debian packages, I definitely don't use --disable-xim:

build: build-stamp
build-stamp:
        dh_testdir
        ./configure --prefix=/usr --with-xinput=xfree --sysconfdir=/etc --localstatedir=/var
        $(MAKE)
        touch build-stamp

So what's going on? Can anyone debug this person's problems?




This does sound like an error in GTK though.. vim checks if
gdk_im_ready() returns true, and apparently that doesn't happen
with the settings this guy has.

Wichert.



  • From: Serge Gavrilov <serge SG3816 spb edu>
  • To: Wichert Akkerman <wichert cs leidenuniv nl>
  • Subject: Re: Bug#46429: vim: Your GTK+ does not support XIM
  • Date: Tue, 5 Oct 1999 11:35:56 +0400
On Mon, Oct 04, 1999 at 10:12:58PM +0200, Wichert Akkerman wrote:
> Previously Serge Gavrilov wrote:
> > This is because of locale settings.
> 
> Even with a changed locale it works for me:
> 
> [tornado;~]-1> env LANG=ru_RU.KOI8-R gvim
> 
> Gdk-WARNING **: Missing charsets in FontSet creation
> 
> 
> Gdk-WARNING **:     KOI8-R
> 
> [tornado;~]-2> 
> 
> 
> Perhaps there is some error in your X setup?
> 
> Wichert.
> 
> -- 
> ==============================================================================
> This combination of bytes forms a message written to you by Wichert Akkerman.
> E-Mail: wichert@cs.leidenuniv.nl
> WWW: http://www.wi.leidenuniv.nl/~wichert/

This warning caused the absence of correct /etc/gtk/gtkrc.ru.
You need something like this:

style "default" {
       fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-*,\
                  -cronyx-helvetica-medium-r-normal--12-*-*-*-*-*-koi8-r"
}
class "GtkWidget" style "default"

(and you need to have these fonts).

-- 
Serge Gavrilov 
Institute for Problems in Mechanical Engineering, Laboratory of Hydroelasticity,
St.Petersburg, Russia     |      URL: http://www.ipme.ru/ipme/labs/he/serge.htm


PGP signature




-- 
Brought to you by the letters A and G and the number 17.
"A yonker is a young man."
Debian GNU/Linux maintainer of Gimp and GTK+ -- http://www.debian.org/


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