[Glade-users] Gdk-ERROR in Gnome Application Window
- From: dean schumacher usa alcatel com (Dean Schumacher)
- Subject: [Glade-users] Gdk-ERROR in Gnome Application Window
- Date: Fri, 16 Feb 2001 17:31:22 -0600
Damon Chaplin wrote:
Dean Schumacher wrote:
I've added Gnome support to Glade, but I'm having a problem
with it. If I select "Gnome Application Window" from the Palette,
and then click anywhere on the standard toolbar that's provided,
the Glade interface aborts with the following message:
Gdk-ERROR **: BadMatch (invalid parameter attributes)
serial 10274 error_code 8 request_code 70 minor_code 0
Has anyone seen this and know what causes it or how to fix it?
Oh dear. I thought we'd fixed these sort of problems.
It looks like the wrong visual/colormap is being used somewhere.
This is difficult for me to track down, since it doesn't happen on
Linux boxes. (I assume this is your Solaris box.)
I think the problem occurs because Linux boxes use the same visual
(i.e. color depth) for all the screen, whereas some systems like
Solaris often use different visuals in different windows. But if
you accidentally try to draw in the wrong type of visual you get
a 'BadMatch'.
You could try adding this to glade/main.c, just before the call to
glade_init():
gtk_widget_push_visual (gdk_imlib_get_visual ());
That would hopefully make all the Glade windows try to use the same
visual. (The one that imlib wants to use for drawing graphics.)
I'm guessing a bit, though.
Damon
Yes, it is a Solaris box. I tried your suggestion above, but
unfortunately, that just made it worse. Now it aborts with a
"BadMatch" error at startup and doesn't even bring up the Glade
application.
Our plan is to use Glade on a Linux box to develop our GUI, then
copy the XML files over to Solaris, where our application is to be
developed. We'll use libglade on Solaris to display the GUI windows
and our application source code will be in C++.
The assumption is that the XML files will be portable, and that
we can call the GTK+ and libglade C library functions from C++.
Do you see any problem with this approach?
Thanks for your help.
Regards,
--
Dean Schumacher Email: dean schumacher usa alcatel com
Software Engineering Tools Phone: 972.519.3252
Alcatel USA
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]