トップ «前の日記(2013年06月25日) 最新 次の日記(2013年07月26日)» 編集

Masa's blog

検索キーワード:

2013年07月10日 How to fix about blackout of XIM input mode indicator([あ]) of kinput2 with gtk+-2.24.x [長年日記]

_ How to fix about blackout of XIM input mode indicator([あ]) of kinput2 with gtk+-2.24.x

I re-built buggy im-xim.so :P

$ tar xvvf gtk+-2.24.10.tar.xz
$ cd gtk+-2.24.10/
$ patch <../gtk+-2.24.10.diff

gtk+-2.24.10.diff

*** modules/input/gtkimcontextxim.c.ORG	2013-07-10 14:19:05.820082738 +0900
--- modules/input/gtkimcontextxim.c	2013-07-10 14:20:01.192120239 +0900
***************
*** 1776,1791 ****

    cr = gdk_cairo_create (widget->window);

!   gdk_cairo_set_source_color (cr, &widget->style->base[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
                     0, 0,
                     widget->allocation.width, widget->allocation.height);
    cairo_fill (cr);

!   gdk_cairo_set_source_color (cr, &widget->style->text[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
!                    0, 0,
!                    widget->allocation.width - 1, widget->allocation.height - 1);
    cairo_fill (cr);

    return FALSE;
--- 1776,1791 ----

    cr = gdk_cairo_create (widget->window);

!   gdk_cairo_set_source_color (cr, &widget->style->text[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
                     0, 0,
                     widget->allocation.width, widget->allocation.height);
    cairo_fill (cr);

!   gdk_cairo_set_source_color (cr, &widget->style->base[GTK_STATE_NORMAL]);
    cairo_rectangle (cr,
!                    0 + 1, 0 + 1,
!                    widget->allocation.width - 1 - 1, widget->allocation.height - 1 - 1);
    cairo_fill (cr);

    return FALSE;

Let's config & build!

$ ./configure   \
	--prefix=/usr   \
	--sysconfdir=/etc   \
	--mandir=/usr/man   \
	--with-xinput=yes   \
	--enable-xkb   \
	--enable-introspection
$ make

Don't care following error :P

Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html
Working on: /home/m-ito/tmp/gtk+-2.24.10/docs/tutorial/gtk-tut.sgml
mv: cannot stat 'gtk-tut': No such file or directory
mkdir: cannot create directory 'html/images': No such file or directory
cp: target 'html/images' is not a directory
make[3]: *** [html] Error 1
make[3]: Leaving directory `/home/m-ito/tmp/gtk+-2.24.10/docs/tutorial'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/m-ito/tmp/gtk+-2.24.10/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/m-ito/tmp/gtk+-2.24.10'
make: *** [all] Error 2

Updated /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so

# cp /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so /usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so.ORG
# install -s modules/input/.libs/im-xim.so /usr/lib/gtk-2.0/2.10.0/immodules/
# ldconfig

and everything gose fine :D