Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
2 user(s) are online (1 user(s) are browsing Forum)

Members: 1
Guests: 1

mordesku, more...

Browsing this Thread:   1 Anonymous Users



(1) 2 3 »


gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
hello

Is it possible to compile a gtk tool with gtk-mui lib ?

i've got lot of errors, the first :
glib/gtypes.h : glibconfig.h not found

thanks

Posted on: 2011/8/3 7:00
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2005/6/16 11:11
Group:
Member
Posts: 613
Offline
Quote:

Tito-Amigang wrote:
hello

Is it possible to compile a gtk tool with gtk-mui lib ?


There is a possibility, yes.

Quote:

i've got lot of errors, the first :
glib/gtypes.h : glibconfig.h not found


Should be part of glib. Did you install glib?

Posted on: 2011/8/3 7:03
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
oops, i had seen glib into include: and i supposed it's ok ...

ok i installs it, and the lib libgtk-mui.a too (gtk-mui was installed into include: but not the lib on this aros nighty build !)

all's good !!!!

my compil options if it can help someone :

gcc -o exe testgtk.c -Iinclude:glib-2.0 -Ilib:glib-2.0/include -lgtk-mui -lgobject-2.0 -lglib-2.0 -liconv -lmui


(before you have to decompress glib package into development: and to install libgtk-mui.a into lib: )

thanks

Posted on: 2011/8/3 7:27
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
BUT i compiling the GTK helloword .c , i launch it and when i click the button : crash , ERROR division by zero

any idea ?

(the CLOSE button is ok)

thanks

Posted on: 2011/8/3 7:33
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
I found it, the problem was on g_signal_connect_swapped() -> gtk_widget_destroy() call.
A bug in gtk_widget_destroy() port in libgtk-mui, i mail it to the author.

apply this patch :

< g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window);

> g_signal_connect_swapped (button, "clicked", G_CALLBACK (destroy),NULL);


in the "hello word in GTK" src :
http://developer.gnome.org/gtk-tutori ... 0/c39.html#SEC-HELLOWORLD

and it runs without crash

(see previous posts above for gcc options )

Posted on: 2011/8/4 2:02

Edited by Tito-Amigang on 2011/8/4 3:43:43
Edited by Tito-Amigang on 2011/8/4 5:48:41
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
i just understand : o1i is oliver bruner is the gtk-mui lib author ! :)

@o1i : so, what do you think about a bug in gtk_widget_destroy() for this example ? (i mailed you too on this morning)

Posted on: 2011/8/4 3:32
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2005/6/16 11:11
Group:
Member
Posts: 613
Offline
Quote:

Tito-Amigang wrote:
i just understand : o1i is oliver bruner is the gtk-mui lib author ! :)

@o1i : so, what do you think about a bug in gtk_widget_destroy() for this example ? (i mailed you too on this morning)


Sorry that it has been so long, until I reply ;).

First of all, gtk-mui is far from being perfect. It works well to compile the janus-uae gui, which evolved from the e-uae gtk gui.

But in some cases, you have to adapt the gtk code (or improve the gtk-mui code) to get your application compiled. Let me know, if you want to have access to the gtk-mui cvs.

Especially hooks pointing to gtk_widget_destroy are problematic, as the widget calls destroy on itself. I remember having problems with that. But it has been a while, since I used gtk-mui with new gtk code. I haven't compiled the examples for ages.

For me, gtk-mui is good enough as it is at the moment, so don't expect much development from me. I have enough to code at the moment ;).

Posted on: 2011/8/4 7:23
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline

it's ok for me, i wrote a Gui with 2 labels, 2 text entry, 1 button, 1 Vbox and 2 hbox inside, and 5 hooked functions : all's good.
very good job on this libgtk-mui ! thanks

we do not use gtk_widget_destroy(), do you remember other problematic function ?

thanks

Posted on: 2011/8/4 8:56
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
hello

the drag n drop function are ported in the lib ?
(i've got errors when uses it)

thanks

Posted on: 2011/8/10 1:13
Transfer the post to other applications Transfer


Re: gtk-mui

Joined:
2011/8/3 6:20
From france
Group:
Member
Posts: 16
Offline
an other question, excuse me, but why we need glib and gobjects for a GTK to MUI API ?

for my application (on aros and linux), i need dragndrop functions too ... not found in gtk-mui lib
so I would like to write a "direct translate lib" , because a lot of GTK function are the same on MUI , for example this 3 GTK functions and the MUI equivalent :

#define gtk_widget_show(a) set(a,MUIA_Window_Open,TRUE);
#define gtk_container_add(o,b) DoMethod(o,OM_ADDMEMBER,b)
#define gtk_button_new_with_label(l) SimpleButton(l)


@o1i : i'm rookie on GTK to MUI, so do you think it's possible ? why we need glib etc ?

for test my idea, i wrote "translate define" C lines for the helloWorld gtk, and it's ok, but could you say to me what is the limit of this method ? :
http://zaclys.com/?contenu_mode=voir&contenu_id=207&c=94

thanks

Posted on: 2011/8/11 23:17

Edited by Tito-Amigang on 2011/8/12 2:14:48
Transfer the post to other applications Transfer



(1) 2 3 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4359
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3892
4 nikolaos
nikolaos
3693
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2646
7 mazze
mazze
2214
8 clusteruk
clusteruk
2109
9 Kalamatee
Kalamatee
2024
10 damocles
damocles
1789
© 2004-2017 AROS Exec