You may also put a + in the cd signature for windows.

Срд, 09 Июн 2010, bill lam писал(а):
> Ric,
> 
> As you already noticed, glade was considered but it has not yet
> materialized into any concrete scripts inside addons. Here is a very
> simple demo.  This demo does not process any event yet.  Amend the
> pathname F and load 't1.ijs' to test. You may try some other forms
> created from glade3 to test. 
> 
> ---------- t1.ijs ----------
> 
> require 'gui/gtk'
> coinsert 'jgtk'
> 
> gtk_builder_connect_signals=: ((>libgtk), ' gtk_builder_connect_signals > n x 
> x')&cd
> 
> F=: '/home/bill/tmp/t1.xml'
> smoutput 'file size: ',":$1!:1 <F
> 
> 3 : 0''
> if. -.IFGTK do. gtkinit'' end.
> builder=: gtk_builder_new''
> smoutput 'builder: ',":builder
> gtk_builder_add_from_file builder;F;,0
> 
> window=: gtk_builder_get_object builder;'window1'
> smoutput 'window: ',":window
> 
> gtk_builder_connect_signals builder;0
> g_object_unref builder
> gtk_widget_show window
> if. -.IFGTK do. gtk_main'' end.
> )
> 
> ---------- t1.xml ----------
> <?xml version="1.0"?>
> <!--Generated with glade3 3.4.5 on Mon Jan 19 15:15:50 2009 -->
> <interface>
>   <object class="GtkWindow" id="window1">
>     <child>
>       <object class="GtkButton" id="button1">
>         <property name="visible">True</property>
>         <property name="can_focus">True</property>
>         <property name="receives_default">True</property>
>         <property name="label" translatable="yes">button</property>
>       </object>
>     </child>
>   </object>
> </interface>

-- 
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

Reply via email to