Hello,


After I've sent my feature requests for the next version of Glade yesterday, I had a 
look at the Glade-2.0.0 sources and I noticed that one of the features I was asking 
for had already been present in Glade-0.6.4, but had been dropped in Glade-2.0.0 :-(.  

I've decided to re-enable it, as it is *QUITE* valuable to me (as I've said previously 
it avoids me the pain of editing "interface.c", which gets overwritten constantly).  I 
am sure it will be valuable to other Glade users too.

I DO REQUIRE to pass pointers to certain signal handlers (like "clicked" or "activate" 
event handlers) to perform gtk_widget_destroy calls properly to avoid memory leaks and 
perform normal widget destruction; this "data" passing feature allows me to do it 
properly with no manual editing of "interface.c", keeping everything modular and, most 
importantly, avoiding GLOBAL widget pointers called from signal handlers.

Attached to this email is a tarball containing six patches for the following six files 
(present in the "glade" subdirectory of the "glade-2.0.0" hierarchy):

save.c
save.h
glade-parser.c
glade-parser.h
property.c
gbwidget.c

After being applied on these six files, these six patches re-enable the "Data" 
TextEntry field on the "Signals" tab from the "Properties" window in Glade-2.0.0.  

I've done a few tests and everything seems stable and to be working fine.  However, if 
I detect any weird behaviors I'll post another message later.  I'm actually working on 
a small UI project so occasions to test the patch myself will be plentiful.  

Everything with this patch should be fine, as I've inspired myself of the "Object" 
TextEntry field which is somewhat similar in concept to the "Data" TextEntry field, 
and remainders of the "Data" TextEntry feature from the Glade-0.6.4 code should 
suffice to do the trick properly.

I know this change will force a change in the Glade-2.0.0 XML file format, but I don't 
think it is THAT big and annoying.

I hope these patches will convince you that the "Data" TextEntry field in "Properties" 
>> "Signals" is an important feature, which I strongly believe should remain present 
in future versions of Glade.  


Thanks all.  

I hope I've made my point clear eheh :-).


I DO repeat it, Glade is a GREAT work !

Regards,



--
Jeannot Langlois
B. Sc. Computer Science
jeannot12 AT linuxmail DOT org

(When replying please CC: me at "jeannot12 AT linuxmail DOT org" as I may not be a 
member of the mailing list for long (web mail quotas are small... :-)).
-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze

Attachment: callback_data_patch_for_glade-2 .0.0.tar.gz
Description: GNU Zip compressed data

Reply via email to