gnokii-users
[Top][All Lists]
Advanced

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

Re: xgnokii xkeyb


From: Daniele Forsi
Subject: Re: xgnokii xkeyb
Date: Tue, 31 Jan 2006 00:11:26 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Pawel Kot wrote:

xkeyb module

it doesn't work and this reminded me of the non working keyboard in xring module

> Maybe GTK2 transition stopped it to work?

it looks like you're right, according to the tutorial
"Normally, Fixed widgets don't have their own X window. Since this is different from the behaviour of Fixed widgets in earlier releases of GTK, the function gtk_fixed_set_has_window() allows the creation of Fixed widgets with their own window. It has to be called before realizing the widget."

http://www.gtk.org/tutorial/x1279.html

With the following patches both xkeyb and xring would work for me, but I'm NOT going to commit them because I don't know if it's the right way to do.

Index: xgnokii/xgnokii_xkeyb.c
===================================================================
RCS file: /sources/gnokii/gnokii/xgnokii/xgnokii_xkeyb.c,v
retrieving revision 1.17
diff -u -p -0 -r1.17 xgnokii_xkeyb.c
--- xgnokii/xgnokii_xkeyb.c     10 Aug 2005 07:33:43 -0000      1.17
+++ xgnokii/xgnokii_xkeyb.c     30 Jan 2006 22:58:43 -0000
@@ -285,0 +286 @@ void GUI_CreateXkeybWindow(void)
+       gtk_fixed_set_has_window(GTK_FIXED(pixArea), TRUE);

Index: xgnokii/xgnokii_xring.c
===================================================================
RCS file: /sources/gnokii/gnokii/xgnokii/xgnokii_xring.c,v
retrieving revision 1.8
diff -u -p -0 -r1.8 xgnokii_xring.c
--- xgnokii/xgnokii_xring.c     15 Jan 2006 15:13:27 -0000      1.8
+++ xgnokii/xgnokii_xring.c     30 Jan 2006 23:01:36 -0000
@@ -931,0 +932 @@ void GUI_CreateXringWindow(void)
+       gtk_fixed_set_has_window(GTK_FIXED(gi.f), TRUE);

--
Daniele




reply via email to

[Prev in Thread] Current Thread [Next in Thread]