Re: [BLACKBOX] Call GTK from blackbox

From: [at]} <Frank>
Date: Sun, 30 Jan 2011 22:25:15 -0200

----boundary-LibPST-iamunique-1170075467_-_-
Content-type: text/plain

On 01/30/2011 06:25 AM, Romiras wrote:

> Here is a simple example GnomeHello. Passing arguments was not used,
> because it not required for GUI application.

Thanks for the example, it really helped. I understand that I can pass
simply two uninitialized variables to gtk_init. And from the commented
lines and from your other response I see how to access command line
parameters when they are really needed.

What I still don't understand is:

1. What is the interface function of gtk_init?
    For OO2C I used:
    PROCEDURE ["gtk_init"] init* (VAR argc:LONGINT; VAR argv:ArgVector);
    with
    ArgVector* = POINTER TO ARRAY OF POINTER TO ARRAY OF CHAR;
    Same here?

2. You import some modules like GnomeGdk, GnomeGtk and so on. Are they
    available?

3. Your example contains as a comment a call of gtk_init where the
    command line parameters are passed:
gtk.gtk_init(SYSTEM.ADR(Kernel.bootInfo.argc),SYSTEM.ADR(Kernel.bootInfo.argv));
    In your other post you describe this as the option for a Linux
    compiler. But there exists no Blackbox for Linux. Or are you
    speaking about your project on SourceForge?

-- 
Frank Hrebabetzky		+55 / 48 / 3235 1106
Florianopolis, Brazil
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1170075467_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRcc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Bhcg0KXHBh
cg0KMi4gWW91IGltcG9ydCBzb21lIG1vZHVsZXMgbGlrZSBHbm9tZUdkaywgR25vbWVHdGsgYW5k
IHNvIG9uLiBBcmUgdGhleVxwYXINCiAgICBhdmFpbGFibGU/XHBhcg0KXHBhcg0KMy4gWW91ciBl
eGFtcGxlIGNvbnRhaW5zIGFzIGEgY29tbWVudCBhIGNhbGwgb2YgZ3RrX2luaXQgd2hlcmUgdGhl
XHBhcg0KICAgIGNvbW1hbmQgbGluZSBwYXJhbWV0ZXJzIGFyZSBwYXNzZWQ6XHBhcg0KZ3RrLmd0
a19pbml0KFNZU1RFTS5BRFIoS2VybmVsLmJvb3RJbmZvLmFyZ2MpLFNZU1RFTS5BRFIoS2VybmVs
LmJvb3RJbmZvLmFyZ3YpKTtccGFyDQogICAgSW4geW91ciBvdGhlciBwb3N0IHlvdSBkZXNjcmli
ZSB0aGlzIGFzIHRoZSBvcHRpb24gZm9yIGEgTGludXhccGFyDQogICAgY29tcGlsZXIuIEJ1dCB0
aGVyZSBleGlzdHMgbm8gQmxhY2tib3ggZm9yIExpbnV4LiBPciBhcmUgeW91XHBhcg0KICAgIHNw
ZWFraW5nIGFib3V0IHlvdXIgcHJvamVjdCBvbiBTb3VyY2VGb3JnZT9ccGFyDQpccGFyDQotLSBc
cGFyDQpGcmFuayBIcmViYWJldHpreVx0YWIgXHRhYiArNTUgLyA0OCAvIDMyMzUgMTEwNlxwYXIN
CkZsb3JpYW5vcG9saXMsIEJyYXppbFxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1
YnNjcmliZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBM
SVNUU0VSVkBMSVNUUy5PQkVST04uQ0h9fQChAiBC
----boundary-LibPST-iamunique-1170075467_-_---
Received on Mon Jan 31 2011 - 01:25:15 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:18 UTC