Re: A guide and a few questions
- From: Guillaume Cottenceau <gc mandrakesoft com>
- To: Janne Morén <jan moren lucs lu se>
- Cc: gtk-perl <gtk-perl-list gnome org>
- Subject: Re: A guide and a few questions
- Date: 18 Nov 2002 15:45:54 +0100
Janne Morén <jan moren lucs lu se> writes:
I've been lurking on this list for a couple of weeks as I'm pretty
interested in the project and I figured this is a good way to learn to
use the stuff from the ground up.
First, I've written a (very) short text detailing how to install the
snapshot - while it is quite easy and straightforward, it should save a
few people a little time to have a list of required modules and so on.
The text is attached.
I think it can make no harm to commit that as our first draft for
an INSTALL file :).
Second, while I appreciate the very rough nature of the module so far, I
get an error in one of the examples that is stranger than expected. If I
run the 'chart.pl' example in misc-examples, I get:
FATAL: gtk object type is unknown (name is BluecurveStyle) at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Gtk2/Widget.pm
line 103
What makes me a little confused is why my selected gtk2-theme
(Bluecurve) is suddenly mixed in the error? I just sort of wonder if
this is expected at this stage of the module, or if this is a
redhat-specific problem? Just thought you might want to know about it.
Chances are that none of us actually tested with a gtk2 theme :).
Can you try with the following patch applied?
--- Gtk2/src/_Helpers.c 15 Nov 2002 11:38:43 -0000 1.20
+++ Gtk2/src/_Helpers.c 18 Nov 2002 14:44:35 -0000
@@ -102,8 +102,14 @@
class = (char *) g_malloc(strlen(name)*2 + 4); /* 4 is the glib case */
for (i = 0; (i < nb_levels) && (res == -1); i++)
res = build_class_name(name, class, 0, 0, levels[i]);
- if (res == -1)
+ if (res == -1) {
+ /* themes include a derivative object of GtkStyle, e.g. BluecurveStyle or the like */
+ int l = strlen(name);
+ if (l > 5 && !strcmp(name + strlen(name) - 5, "Style"))
+ return g_strdup("Gtk2::Style");
+
croak("FATAL: gtk object type is unknown (name is %s)", name);
+ }
}
return class;
}
--
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]