August 08, 2003
"Ant" <Ant_member@pathlink.com> wrote in message news:bh0qnc$66i$1@digitaldaemon.com...
> (What happened to my post? - I'll try again)
>
> In article <bh0gn5$2ude$1@digitaldaemon.com>, Mike Wynn says...
> >
>
> >how much of the GTK bindings did you get done,
>
> Almost all widgets have a farly good/complete implementation,
> and the most common callbacks are implement through listener interfaces.
> I'm missing only some obscure widgets (like the rulers that
> are very specific) and the TreeView doesn't work properly.
> (The oddest thing is that I can't create a valid GValue, must be some
> ridiculous simple problem, probably that's was wrong with the TreeView)
>
> > I would be very interested in
> >seeing what you have so I can get some win32 GTK bindings working,
>
> I believe that if you have GTK setup for windows you need only to compile
DUI,
> maybe with small changes (but what do I know of windows development?...)
hopefully, I have the sources to 1.3 and 2.2 so should be o.k. if there are
issues there, not sure which is installed, 1.3 I think
I might check through the PHP-GTK sources that I know worked under win32.
failing that I might reinstall the cygwin X server and have a play with
either GTK under cygwinX or X programming and start writing a widget set (or
use lesstif).

>
> The next think I'll do on this project is to post it on the web, at very least it will be a safer backup.
always a good plan, I used to use my web site as an offsite store :)
> > as I
> >intend to revisit the SWT (IBM's Java gui layer used on Eclipse) and see
if
> >I can produce a D win32+GTK port of SWT
>
> I'm very suspicious of SWT, I use eclipse both at work (w2k) and at home
> (Linux) and the linux version is almost unusable because it's too slow,
> it might be the java VM and it got much better with GTK 2.2.2 (from 1.2).
it could be that SWT is a wrapper over GTK which is a wrapper over X, how
does its performance compare to Swing (i.e. NetBeans IDE) looks nice but
runs slower than 1.0.2 awt on a p90 on my Duron 800.
it might also be your old GTK was not using the local X extensions, from
what I remember of X programming there are ways to improve performance if
your running your client app on the same machine as the X server.
the AWT I believe uses motif (or did last time I used Java on Unix [jdk
1.0.2])

>
> >anyway best of luck getting GTK bindings working if you get any problems I've become quite adept at porting C headers
>
> Do you have any automation for it?
> (in D, portable to Linux)
> I see that on the D todo list.
> I thought about creating one but did every thing by hand.
> Just copy a minimum set of structs,
> most of the public functions declarations and puting "extern (C)"
> the fewer things you have from GTK the easyer
> to upgrade to new releases of it.
you do know you can use extern(C) { .... file ... }  :)

some time ago I started ... http://www.l8night.co.uk/mwynn/d/deimos.html
documenting what was required, I wrote a version (burried on a backup cd
somewhere now)
but found that much of the win32 headers required a bit of manual tweeking
everywhere
so automating created twice the work checking its was right.
the only "transform" missing is
typedef struct foo_s {
    union {
        TA a; TB b;
    } n;
    TC c;
}foo * fooPtr;
(or nested struct)
has to become

union foo_u {
       TA a; TB b;
}
struct foo {
    foo_u u;
    TC c;
}
alias foo * fooPtr;
and you have to give anon struct/unions a name (which makes your code
horrid)

and D has align(n): to set the alignment if require


August 08, 2003
"Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:bh0ufd$a6j$1@digitaldaemon.com...
> and you have to give anon struct/unions a name (which makes your code
> horrid)

Try this for anon struct/unions:


struct Foo
{
    union { int a; int b; }
    struct { int c; int d; }
}

void main()
{
    Foo f;

    printf("Foo.size = %d, a.offset = %d, b.offset = %d, c.offset = %d,
d.offset = %d\n",
 f.size,
 0,
 &f.b - &f.a,
 &f.c - &f.a,
 &f.d - &f.a);
}


August 08, 2003
"Ant" <Ant_member@pathlink.com> wrote in message
news:bgv6c5$1mgf$1@digitaldaemon.com...
| D wrap for GTK+
|

Just saw the screenshots. It looks very good!

————————————————————————— Carlos Santander


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.507 / Virus Database: 304 - Release Date: 2003-08-04


August 08, 2003
"Walter" <walter@digitalmars.com> wrote in message news:bh0v53$auc$3@digitaldaemon.com...
>
> "Mike Wynn" <mike.wynn@l8night.co.uk> wrote in message news:bh0ufd$a6j$1@digitaldaemon.com...
> > and you have to give anon struct/unions a name (which makes your code
> > horrid)
>
> Try this for anon struct/unions:
>
>
> struct Foo
> {
>     union { int a; int b; }
>     struct { int c; int d; }
> }
>
great I did not know that, exactly what is required to make variant much nicer

just tried v0.68
Foo.size = 12, a.offset = 0, b.offset = 0, c.offset = 1,
d.offset = 2
though .... why not 4,8 (but remembered int * - int * )


August 09, 2003
DUI is the best library name EVER. :D

Ant wrote:
> D wrap for GTK+
> 
> Ok guys I lost a lot of work (see my previous post)
> probably 30+ hours
> 
> my wrap for GTK+ was ready for the first release.
> The interest you show when I first let you know
> about it was 0 (zero) so if nobody is interested
> on the thing probably I will work on it slower.
> 
> see the saved screen shots at
> http://ca.geocities.com/arvmca/
> 
> and help me with my compilation problem :( 
> 
> Ant
> 
> 

August 11, 2003
Ant wrote:

> my wrap for GTK+ was ready for the first release.
> The interest you show when I first let you know
> about it was 0 (zero) so if nobody is interested
> on the thing probably I will work on it slower.
I'm sorry, but I can not find a place to download that software.
Is it still available?

Regards
Friedrich

August 11, 2003
Not yet, maybe tonight, probably tomorrow night.

In article <bh85md$12s9$1@digitaldaemon.com>, Friedrich Dominicus says...

>Is it still available?
>
>Regards
>Friedrich
>


1 2
Next ›   Last »