[PB-Linux] Using GLADE as VD for pureBasic (0.3.0)

Developed or developing a new product in PureBasic? Tell the world about it.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Hi! I am really glad I could help. I will delete the old link and the file. Unfortunately now I can't use your tool anymore :( because I had some problems with my linux and now I installed Win again :x . I will keep it for maximum one month and then i'll switch to linux again :D .
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

an updated version is available (0.05):
http://home.arcor.de/x-linux/pure/g2pb

The needed include for some (missing) GTK2 functions in PB (also updated):
http://home.arcor.de/x-linux/pure/missing_functions.pb
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Can you please summarize what has changed?
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi,

the convertet Glade-output is more complete (some more functions added, some constants added)

The missing_functons do have 2 more functions and one corrected function
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Updated to version 0.2.0

- Cleaned up the interface
- a new sourcefile will be created (declare.pb) which contains all known callback procedures
- the order of included sourcefiles has changed in main.pb
- some minor bug-fixes
- added 1 missing widget (Gadget)
- Notebook parameter conversion fixed (Notebook = PanelGadget)

Don't forget to include the missing-functions.pb (still needed)

Glade2PB: http://home.arcor.de/x-linux/pure/g2pb (may you must make it executable)
missing_functions: http://home.arcor.de/x-linux/pure/missing_functions.pb (right-click -> SaveAs)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Version 0.3.0 is out

added: 2 constants were missing
added: a new dialog when converting, to choose what to create to prevent overwriting of existing, altered source

Image

gtk_image_new_from_icon_name_() added to the includefile missing_functions

Download: http://home.arcor.de/x-linux/pure/g2pb and the includefile
http://home.arcor.de/x-linux/pure/missing_functions.pb (right click; save as)
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

Image

:?:
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

could you tell me, which distro you use?
Are the gtk2 libs installed? (does "/usr/lib/libgtk-x11-2.0.so" exist? this is the Lib I try to open...)
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

openSUSE 10.1

the libs are at '/opt/gnome/lib/libgtk-x11-2.0.so'
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Uploaded a new exe... this one should work on ALL distro's... :D
(link see above)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Great news! Thanks! I'll test it tomorrow morning :)
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

Yes, here it works! Thank you!

// EDIT:

the 'missing_functions.pb' is still referring to '/usr/lib/libgtk-x11-2.0.so'
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

I know... but can't update it at present....:roll: but will do in near future (please adept the path by yourself if necessary) please don't ask why...
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

I changed the OpenLibrary call to:

Code: Select all

OpenLibrary(0,"libgtk-x11-2.0.so")
Is it necessary to hardcode the path to the lib?

Haven't looked deeper into this, and haven't worked with PB since I switched to Linux. Is the 'GetFunction' function used in 'missing_functions.pb' missing on Linux? Just wrapped it to 'IsFunction' for now.
My favorite numbers: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Sorry,, that was a wrong version.... uploaded a corrected one... and the path (if not given) is not always found by OpenLibrary()...
Post Reply