Patrick,

Thank you for testing. I guess the problem is the api
gtk_widget_set_can_focus
was introduced in gtk 2.18, but the version of gtk binary from your distro
is older than than. Please open the jgl2.ijs, find the line
     gtk_widget_set_can_focus canvas,1
and change it to 
     gtk_widget_set_can_focus ::0: canvas,1

I'll also commit the change into svn.

if you are using ubuntu/debian, the way to check is to type in shell,
$ sudo aptitude show libgtk2.0-bin

Срд, 09 Мар 2011, J. Patrick Harrington писал(а):
> Bill,
> 
>     I'm not sure I follow what you are telling me. All the packages and
> addons are installed and up to date. Here is what happens in a fresh
> session after starting jgkt. In the J gtk window:
> 
>     load'plot'
>     'surface' plot +/~ 1 o. i: 6j99
> |domain error: gtk_widget_set_can_focus
> |       gtk_widget_set_can_focus canvas,1
>     'surface' plot +/~ 1 o. i: 6j99
> |rank error: l
> |       glqwh__l y[[l=.locGL2_jgl2_
>     JVERSION
> Engine: j701/2011-01-10/11:25
> Library: 7.01.047
> Platform: Linux 32
> Installer: j701a_linux32.sh
> InstallPath: /juno/jph/j701
>     load'pacman'
>     'update'jpkg ''
> Updating server catalog...
> Local JAL information was last updated: 09 Mar 2011 14:15:30
> All available packages are installed and up to date.
>     'install'jpkg'all'
> 
>     load'plot'
>     'surface' plot +/~ 1 o. i: 6j99
> |rank error: l
> |       glqwh__l y[[l=.locGL2_jgl2_A
> 
> After the second and third call to plot, a blank plot window is 
> produced. Also, the following message appears in the terminal 
> window where I started jgtk:
> 
> (<unknown>:5060): Gtk-CRITICAL **: gtk_window_present_with_time: assertion 
> `GTK_IS_WINDOW (window)' failed
> 
> Any further ideas to find out what's happening? I'd really like to get
> plot back so I don't have to drop back to j602.
> 
>                                                             Patrick
> 
> On Wed, 9 Mar 2011, bill lam wrote:
> > I tried you script and it needs to load numeric and trig first
> >
> > plot depends a lot of other addons, so JVERSION alone cannot give enough
> > information.  please run
> > load'pacman'
> > 'update'jpkg''
> > 'showinstall'jpkg''
> >
> > and check.  Or run
> > 'install'jpkg'all'
> >
> > if you really cannot figure out which packages are to be required.
> > After plot can run succesfully, use pacman to remove unneeded packages.
> >
> > ???, 08 ??? 2011, J. Patrick Harrington ?????(?):
> >> 
> >> Back on my linux box today, I ran packman again and
> >> installed all the latest updates. I think I have all
> >> packages & addons installed. Yet "plot" still fails.
> >> This is from a fresh jgtk window:
> >>
> >>     xv=. 4*int01 400  NB. 400 points from 0 to 4
> >>     yv=. sin xv
> >>     load'plot'
> >>     plot xv;yv
> >> |domain error: gtk_widget_set_can_focus
> >> |       gtk_widget_set_can_focus canvas,1
> >>     pd xv;yv
> >>     pd 'show'
> >> |rank error: l
> >> |       glqwh__l y[[l=.locGL2_jgl2_
> >>
> >>     JVERSION
> >> Engine: j701/2011-01-10/11:25
> >> Library: 7.01.047
> >> Platform: Linux 32
> >> Installer: j701a_linux32.sh
> >> InstallPath: /juno/jph/j701
> >>
> >>     What might be going on here? When I load
> >> viewmat, it runs fine. j701 gtk was working
> >> fine on this system until I ran pacman yesterday,
> >> now suddenly I can't plot anything.
> >>
> >>                           Patrick
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >
> > -- 
> > 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

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