![]() |
#106 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
As fast test, I've noted a crash with this new lgob-iliad release: Code:
root@ereader:/media/card/Programs/Toolbox$ lua _files/Toolbox.lua | ./_files/xx -p 0.001: ./_files/xx: started (debug=0, forward=1) lua: _files/modules/sysinfo.lua:265: The GObject doesn't have the property sort_column_id! stack traceback: [C]: in function 'set_sort_column_id' _files/modules/sysinfo.lua:265: in function 'ui_init' _files/modules/sysinfo.lua:357: in main chunk [C]: in function 'dofile' _files/Toolbox.lua:60: in function <_files/Toolbox.lua:60> [C]: in function 'main' _files/Toolbox.lua:87: in main chunk [C]: ? 53.046: ./_files/xx: Done Code:
col:set_sort_column_id(i-1) Code:
local col = gtk.TreeViewColumn.new_with_attributes(coldef[1], coldef[2], "text", i-1) EDIT: just discovered that examples/Navigator.lua also has this problem, so the regression comes from lgob-0.11.1. Thanks, Iņigo Last edited by Iņigo; 11-08-2009 at 06:54 PM. |
|
![]() |
![]() |
![]() |
#107 | |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
For this you may need to uninstall the new version first (with the command ipkg remove lua5.1-iliad lgob-iliad): just installing the old version with ipkg will not work because of the lower version number) |
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Can I use pipe in Lua script?
I want to write a lua script which calls a command and redirect the output of that command back to lua script. In C, I use FILE *p = popen(). I wonder if I can do the same thing easily in lua script. Thanx for help.
|
![]() |
![]() |
![]() |
#109 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
|
![]() |
![]() |
![]() |
#110 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Quote:
added: another question: how do I get the size of buf? added 2: I am trying using the length operator #. Last edited by ericshliao; 11-10-2009 at 12:38 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#111 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
gdk_pixbuf_loader_write() not available in lgob?
It's quite strange. I can't call gdk_pixbuf_loader_write using the form:
Code:
local gpldr = gdk.PixbufLoader.new() local success = gdk.PixbufLoader.write(gpldr, file_buf, ret, nil) Code:
local gpldr = gdk.PixbufLoader.new() local success = gpldr:write(file_buf, ret, nil) |
![]() |
![]() |
![]() |
#112 | |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
![]() Quote:
This is (probably) because of the second parameter Code:
defFunction('gdk_pixbuf_loader_write',
{
class = 'GdkPixbufLoader',
since = '0.1',
args = {'GObject* none', 'unhandled none', 'gsize none', 'GError** full'},
ret = 'boolean none'
}
)
Code:
gboolean gdk_pixbuf_loader_write (
GdkPixbufLoader *loader,
const guchar *buf,
gsize count,
GError **error);
Edit: I just got a replay form Lucas: The analyse was correct, it will be fixed soon in a Lgob update. Il update the Iliad package after that... Last edited by hansel; 11-11-2009 at 01:12 PM. |
|
![]() |
![]() |
![]() |
#113 | |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
![]() Quote:
Code:
> a='xxx\0yyy' > print(a) xxx > print(#a) 7 > print(string.len(a)) 7 |
|
![]() |
![]() |
![]() |
#114 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Update: lgob-iliad-0.1.11.ipk
I've just build a new version of lgob-iliad: lgob-iliad-0.1.11.ipk. It can be downloaded at: https://dev.mobileread.com/dist/hans...iad-0.1.11.ipk
It (should) solve the issues with gtk.TreeViewColumn.set_sort_column_id() [see message 106] and gdk.PixbufLoader.write() [see message 111] This build is based on lgob-9.11.2 As always: feedback is welcome... |
![]() |
![]() |
![]() |
#115 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
I just tried lgob9.11.2 on Debian5. When I execute a example, I got the following error message:
Quote:
|
|
![]() |
![]() |
![]() |
#116 |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
|
![]() |
![]() |
![]() |
#117 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
|
![]() |
![]() |
![]() |
#118 | |
JSR FFD2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
Last edited by hansel; 11-15-2009 at 01:06 AM. |
|
![]() |
![]() |
![]() |
#119 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Thanx.
The problem is solved. I found old lgob libs in /usr/lib. After removing them, and doing "make install" again, the problem disappeared. |
![]() |
![]() |
![]() |
#120 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
lgob-iliad0.1.11 is working on my iLiad. I put a experiement djvu viewer here: https://www.mobileread.com/forums/sho...67&postcount=2
|
![]() |
![]() |
![]() |
Tags |
gtk+, iliad, lgob, lua, networking, xml |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pandigital announce the black Novel | Nate the great | News | 0 | 08-18-2010 05:21 PM |
iLiad China iLiad users can get developer package. | ericshliao | iRex Developer's Corner | 35 | 03-20-2010 05:21 AM |
iLiad Announce: Glade4Lua, develop graphical apps for the Iliad | hansel | iRex Developer's Corner | 1 | 10-27-2009 05:00 PM |
Sony to announce colour e-book ? | markiehill | News | 11 | 08-22-2009 12:45 PM |
Proud to announce our new moderator! | Alexander Turcic | Announcements | 5 | 12-08-2003 11:18 PM |