[gtkada] gate model
Julio Angel Cano Romero
jukano at visto.com
Fri May 4 20:49:04 CEST 2001
Hi again.
>> A few days ago I wrote a message about a gate (gtkada) bug. The problem seems to be that I use glade-gnome and even deactivating gnome support gate is unable to generate code using these glade-gnome files. Beside that I forgot to say which system I work on:
>> Debian, kernel 2.4.3, gnat 3.13p2 and gtkada 1.2.8
>I haven't experienced this problem. At the moment I use gtkada 1.2.11
>and I can't downgrade to check, but when I used gtkada 1.2.8 I didn't
>have this problem. You could try the 1.2.11 though you find it in the
unstable: >http://packages.debian.org/unstable/devel/libgtkada1-dev.html
I'll try this.
>But have you tried using a glade without gnome?
I use glade-gnome but i didn't use gnome support nor gnome widgets. But i used glade without gnome installed in another machine and then same example worked.
As i said, deleting de relief button attribute line in glade file makes it to work.
>> Should i instantiate the package window and then declare a second
>> window to be instantiated?
>>
>> .... window1b : Window1_Access; .... Gtk_New (window1); Gtk_New
>> (window1b); ...
>Just do:
>procedure main is
>Gui_Window1 : Gui_Window_Access;
>Gui_Window2 : Gui_Window_Access;
>begin
>...
>Gtk_New (Gui_Window1);
>Gtk_New (Gui_Window2);
>Show_All (Gui_Window1);
>Show_All (Gui_Window2);
>...
>end main;
I know i can do this, but in a big project i dont want to go deleting (commenting) all the package variables nor let lot of unused variables "populating" the project.
So, what i mean is that predefined variable, although makes life easier, is not allways suitable for all cases.
Gtkada itself dont declare a "predefined" variable in any package (gtk.window, gtk.button, ....) so that you have to create yours. Packages created by gate are more "excepcional" and especific but i consider that they should follow the same "politic", so its more "standard" as i see it.
Its just my opinion.
I think i could just modify gate source code for myself to dont generate this line. I think free software is "lovely", isn't it? :)
Bye
Julio
___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.
More information about the gtkada
mailing list