Vala and Genie programming
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
Nico am starting a new thread for your Geany (text editor) Vala-Genie (programming language) program here :
http://www.murga-linux.com/puppy/viewto ... 260#339260
http://www.murga-linux.com/puppy/viewto ... 260#339260
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
I edited the bk_scripts a bit and got a 75 kb nicoedit binary and 35kb pet. Working great so far, but haven't tried it with genie yet. Uploaded for your pleasure. (without the french it is only 32k)
you can get the same results by not deleting the .c file in bk_compile and using:
gcc -Os -ffunction-sections -fdata-sections -momit-leaf-frame-pointer -fomit-frame-pointer -mpreferred-stack-boundary=2 -fmerge-all-constants -march=i386 -mtune=i386 -Wl,-O,-Os,--gc-sections,-s `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0` `pkg-config --cflags cairo --libs cairo` `pkg-config --cflags glib-2.0 --libs glib-2.0` `pkg-config --cflags pango --libs pango` `pkg-config --cflags gtksourceview-2.0 --libs gtksourceview-2.0` -I/usr/include/gee-1.0 -I/usr/include -I. -lgee -w -std=c99 nicoedit.c -o nicoedit
you can get the same results by not deleting the .c file in bk_compile and using:
gcc -Os -ffunction-sections -fdata-sections -momit-leaf-frame-pointer -fomit-frame-pointer -mpreferred-stack-boundary=2 -fmerge-all-constants -march=i386 -mtune=i386 -Wl,-O,-Os,--gc-sections,-s `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0` `pkg-config --cflags cairo --libs cairo` `pkg-config --cflags glib-2.0 --libs glib-2.0` `pkg-config --cflags pango --libs pango` `pkg-config --cflags gtksourceview-2.0 --libs gtksourceview-2.0` -I/usr/include/gee-1.0 -I/usr/include -I. -lgee -w -std=c99 nicoedit.c -o nicoedit
- Attachments
-
- nicoedit.pet
- (34.73 KiB) Downloaded 800 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
Wow just tried the latest nico edit and boy its came a long way.
One thing I would like to see in it is tabs, and when drag a new document to the gui it opens the file in a new tab, eg drag 5 files and have 5 tabs.
after that it could be a geany replacement and not just a leafpad replacement, very close, nice size also right now I'm using teagtk the pet is around 140kb and has highlight, line numbers, and drag and drop for tabs. Really thats all I use, I don't need fancy compiling in a editor etc. Geany just getting too bloated.
Oh I see you can export as pdf, hmmm maybe consider images? If you could add images and move them around, It would make a perfect pdf ebook creator. Just some ideas
Anyways keep up the excellent work:) very impressive.
ttuuxxx
One thing I would like to see in it is tabs, and when drag a new document to the gui it opens the file in a new tab, eg drag 5 files and have 5 tabs.
after that it could be a geany replacement and not just a leafpad replacement, very close, nice size also right now I'm using teagtk the pet is around 140kb and has highlight, line numbers, and drag and drop for tabs. Really thats all I use, I don't need fancy compiling in a editor etc. Geany just getting too bloated.
Oh I see you can export as pdf, hmmm maybe consider images? If you could add images and move them around, It would make a perfect pdf ebook creator. Just some ideas
Anyways keep up the excellent work:) very impressive.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Ttuuxxx,
Regarding tabs, I was thinking that too, but then I started playing with the History menu, and that works surprisingly well.
The problem with tabs is I often have several documents open, so have to scroll the tabs, which makes the whole thing somewhat inefficient.
However with the History menu I can flip between documents. However, what spoils that is it doesn't remember the last position. If it did, that would make it very easy to work with a large number of documents.
So, Nicolas, if you read this, my number one request is for the History menu to remember the last position of the window and the cursor position of each previously-opened file!
Regarding tabs, I was thinking that too, but then I started playing with the History menu, and that works surprisingly well.
The problem with tabs is I often have several documents open, so have to scroll the tabs, which makes the whole thing somewhat inefficient.
However with the History menu I can flip between documents. However, what spoils that is it doesn't remember the last position. If it did, that would make it very easy to work with a large number of documents.
So, Nicolas, if you read this, my number one request is for the History menu to remember the last position of the window and the cursor position of each previously-opened file!
[url]https://bkhome.org/news/[/url]
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
Hi Barry I don't know if you ever tried Teagtk, but it does have a nice menu under file, Like recent documents, bookmarks, sessions, templates, etc and like I mentioned its really small compared to Geany about 1/4 the size. and once you setup the basic configures like I did in my last package its pretty good.
The sources 468kb
http://sourceforge.net/projects/tea-edi ... 2/download
The last package I made up, its good if you want to custom configs in root/choices
http://www.murga-linux.com/puppy/viewto ... h&id=21761
Playing around with the history is a good alternative way of getting around the tab issue, but for a person like myself I think the most tabs I ever need open at once is about 4, Firefox is different sometimes I have like 50 tabs open at once, lol
I would be happy to replace Geany with nicoedit if it had tabs.
ttuuxxx
The sources 468kb
http://sourceforge.net/projects/tea-edi ... 2/download
The last package I made up, its good if you want to custom configs in root/choices
http://www.murga-linux.com/puppy/viewto ... h&id=21761
Playing around with the history is a good alternative way of getting around the tab issue, but for a person like myself I think the most tabs I ever need open at once is about 4, Firefox is different sometimes I have like 50 tabs open at once, lol
I would be happy to replace Geany with nicoedit if it had tabs.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
I would like to use id3lib (http://id3lib.sourceforge.net/) in a vala program I'm planing to make. It's a c++ library that can be called from plain old C so it should work without much trouble. The problem is, I have no idea how to make the vapi file. Everything I found via google (which wasn't much) was for glib libraries and used glib only autogeneration. Any hints?
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
I seem to recall there was some discussion on the Vala mail-list recently, someone asked that same question. Find the archive of the Vala mail-list ...I don't know the url offhand.ITAmember wrote:I would like to use id3lib (http://id3lib.sourceforge.net/) in a vala program I'm planing to make. It's a c++ library that can be called from plain old C so it should work without much trouble. The problem is, I have no idea how to make the vapi file. Everything I found via google (which wasn't much) was for glib libraries and used glib only autogeneration. Any hints?
[url]https://bkhome.org/news/[/url]
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Ah, yes, there is another thing that prevents me from making NicoEdit 2.1 the main text editor in 4.3 -- no line-wrapping!
So, I have to leave Geany as the main text editor. NicoEdit 2.1 will be the secondary editor (Leafpad replacement) in 4.3final.
Line-wrapping is essential for a useful text editor.
So, I have to leave Geany as the main text editor. NicoEdit 2.1 will be the secondary editor (Leafpad replacement) in 4.3final.
Line-wrapping is essential for a useful text editor.
[url]https://bkhome.org/news/[/url]
Hi again,
I make a new version of NicoEdit.
This version correct a bug found on 2.3 when you use the fullscreen.
Download it here: http://www.murga-linux.com/puppy/viewto ... h&id=21799
See you,
Nicolas.
I make a new version of NicoEdit.
This version correct a bug found on 2.3 when you use the fullscreen.
Download it here: http://www.murga-linux.com/puppy/viewto ... h&id=21799
See you,
Nicolas.
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
does anyone have it compiled ? I don't have python in 2.20, but the rest of the vala deps are install.
ttuuxxx
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
Yep! Just compiled it and it seems ok, word wrap and fullscreen working . Thankyou Nicolas!ttuuxxx wrote:does anyone have it compiled ? I don't have python in 2.20, but the rest of the vala deps are install.
ttuuxxx
One, point, I followed the bk_compile routine and the .pet package created has a bug. The structure is correct of course but the parent dir needs to be "nicoedit-x.x" and that will become the name of the .pet.
Cheers
- Attachments
-
- nicoedit-latest.pet
- (43.68 KiB) Downloaded 518 times
Puppy Linux Blog - contact me for access
Please note, the .pet I packaged above is straight from nicolas' compile so may not work on some systems.
Puppy Linux Blog - contact me for access
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
Worked fine for me Mick and the fullscreen bug is fixed01micko wrote:Please note, the .pet I packaged above is straight from nicolas' compile so may not work on some systems.
thanks for that
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
Hi guys, I haven't really looked at Vala yet, but I'm wondering - does anyone have any idea how hard it would be to convert a simple-ish gtk program from c to vala? And how much easier do you think it would be to learn vala than C? Is Vala:
0. No easier than C
1. A little easier than C
2. Quite a bit easier than C
3. A lot easier than C
4. So much easier than C that there's no comparison.
Any thoughts?
0. No easier than C
1. A little easier than C
2. Quite a bit easier than C
3. A lot easier than C
4. So much easier than C that there's no comparison.
Any thoughts?
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
I see Vala 0.7.6 is released too.
Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER