|
|
| GTK vs. GTK2 |
|
Niunio
Member #1,975
March 2002
|
I'm learning how to program GTK+. It's really nice but today I was discovered I'm using version 1 instead of version 2. So I've changed the examples I wrote to use GTK2 but I got strange errors. The simplest example I wrote (just create an empty window) runs but it shows this error X Error: BadDevice, invalid or uninitialized input device 168 Major opcode: 145 Minor opcode: 3 Resource id: 0x0 Failed to open device X Error: BadDevice, invalid or uninitialized input device 168 Major opcode: 145 Minor opcode: 3 Resource id: 0x0 Failed to open device /home/guillermo/.gtk_qt_engine_rc:447: error: unexpected identifier `ons', expected keyword - e.g. `RTL' Some more complex examples (using class wrappers I wrote myself) throw an "Access violation" exception. I've installed GIMP 2.2 and runs without problems... Did I do something wrong? Didn't I installed the packages correctly (libgtk2.0-0 2.8.18-0ubuntu2 and related)? Note: I'm using latest Kubuntu with xserver-org 7.0.0 and the examples were written in Pascal (Free Pascal 2.0). ----------------- |
|
Kitty Cat
Member #2,815
October 2002
|
Quote: gtk_qt_engine That's a buggy POS GTK engine. I'd recommend switching to Qt, but in case you can't/won't, try installing QtCurve and selecting that as your GTK theme. It's fairly new so it might not be in your package manager's repository, but it works quite well for me. Beyond that, I couldn't guess what the problem is. -- |
|
Niunio
Member #1,975
March 2002
|
I see. I'll try to update it. But about the "X error: BadDevice, invalid or uninitialized input device 168 etcetera", I find this error using synaptic. May be I should install Gnome even if I don't use it? [edit]I've find that Xorg adds a new input device for pens and tablets (the device 168). That's the problem with the "X error: ...". This thread talks about it. [edit again] Need your help again. Now my GTK+2 applications compile and run right... but the 'clicked' event workes using Keyboard (cursor keys to change the focus and enter to activate them) but it doesn't work using mouse. The 'enter' and 'leave' events work but 'pressed', 'released' and 'clicked' don't work. Other GTK+2 applications (as The GIMP) worked perfectly. What would be wrong? ----------------- |
|
|