Thanks. 

Btw, would these changes also "fix" the gui/gtk addon for J6?

Running J6 and J7 side by side on Ubuntu ... J7 works but J6 would throw
|domain error: f
|        cb1=:  f 2
|[-1826] /home/bathala/Applications/j602/addons/gui/gtk/gtk.ijs


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of bill lam
Sent: Wednesday, July 14, 2010 2:02 PM
To: [email protected]
Subject: Re: [Jbeta] [Jgeneral] J/GTK

There is a bug inside gtkglade, plus another if you use linux. I commit change 
to svn but not yet in addons. diff are as follows, please amend your gtk.ijs 
and test again.

I think that Chris himself does not use Glade in gtkide, but he has already 
implemented enough infra-structure for end-users to use Glade if they really 
want to.

gtk needs to be at least 2.12 in order to support gtkbuilder which works with 
glade output.

BTW please post beta related questions to beta instead of chat or general.

diff --git a/gui/gtk/source/api/type.ijs b/gui/gtk/source/api/type.ijs index 
0d9ed4d..b964367 100644
--- a/gui/gtk/source/api/type.ijs
+++ b/gui/gtk/source/api/type.ijs
@@ -8,7 +8,7 @@ NB. =========================================================
 gtk_gettypes=: 3 : 0
 if. IFWIN do. EMPTY return. end.
 t=. [;._2 GTKTYPES
-t=. ((>libgtk),' >') ,"1 t ,"1 (2*IFUNIX) }. ' + x'
+t=. ((>libgtk),' ') ,"1 t ,"1 ' >',"1 (2*IFUNIX) }. ' + x'
 t (15!:0 ::0:)"1 ''   NB. some types absent in older gtk version
 EMPTY
 )
diff --git a/gui/gtk/source/glade/main.ijs b/gui/gtk/source/glade/main.ijs 
index 23b8f84..fa10665 100644
--- a/gui/gtk/source/glade/main.ijs
+++ b/gui/gtk/source/glade/main.ijs
@@ -14,7 +14,7 @@ builder=. gtk_builder_new''
 if. 0=builder do. 0 0 return. end.
 r=. ''
 gerr=: ,-0
-if. L.file do.
+if. L.y do.
   rc=. gtk_builder_add_from_string builder;(>y);_1;gerr  else.
   rc=. gtk_builder_add_from_file builder;y;gerr

Срд, 14 Июл 2010, Alex Rufon писал(а):
> After sending this, I went back and search for "GTK" in my email and 
> found out that I was running an old version of J7. :P
> 
> So I've upgraded using the console and I was able to mess around with the new 
> IDE/GTK and the GUI/GTK tutorials now work! 
> 
> The only thing that failed was when I tried running:
>     load jpath '~addons/gui/gtk/demo/tut7.ijs'
> |control error: gtkglade
> |    'builder window'=: 'window' gtkglade jpath 
> '~addons/gui/gtk/demo/tut7.glade'
> 
> Although there is an error, it looks like Chris is supporting the 
> Glade output and this is good news. :)
> 
> -----Original Message-----
> [---=| TOFU protection by t-prot: 19 lines snipped |=---]

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to