It is currently Thu Sep 10, 2026 6:56 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Script for b10h4z4rd
PostPosted: Tue Sep 11, 2012 10:40 am  (#1) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
A couple of weeks ago b10h4z4rd asked me to write something to help find scripts which were using deprecated functions and as we sensibly can't put attachments into PMs, I'm putting it here.

Working on the principle "if it ain't broke, don't fix it" I wouldn't suggest anyone else uses it.

For the record I've made it appear in the Help menu: Check for deprecated functions v1.0
It's a python script and I've only tried it on Windows XP, but it does work for both GIMP 2.6.7 & 2.8.2

If you tell it to, it creates a log file with this sort of output:
checking directory: C:\Program Files\GIMP 2.8.2\share\gimp\2.0\scripts
Checking 3d-outline.scm
Checking 3dTruchet.scm
   ==> Deprecated gimp-drawable-transform-flip-simple in 3dTruchet.scm
Checking add-bevel.scm
Checking addborder.scm
Checking alien-glow-arrow.scm
Checking alien-glow-bar.scm
Checking alien-glow-bullet.scm
   ==> Deprecated gimp-rect-select in alien-glow-bullet.scm
Checking alien-glow-button.scm
Checking alien-glow-logo.scm


Kevin

edit: The attachment has been removed to be replaced by a newer version in a later message.


Last edited by paynekj on Tue Sep 11, 2012 4:14 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Script for b10h4z4rd
PostPosted: Tue Sep 11, 2012 3:16 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 19, 2012
Posts: 80
Location: Australia
Thanks Kevin, greatly appreciate your efforts.
I have sent you a reply in PM.

Must admit, I wasn't expecting to find my Private request to end up so Public.
(it will still send all HDD encrypted data to my IP address regardless on who runs it right?)
:hehe


Top
 Post subject: Re: Script for b10h4z4rd
PostPosted: Tue Sep 11, 2012 4:13 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
b10h4z4rd. Here's version 1.1 that reports the blub of the deprecated functions in the log file:

I'll leave it to you to format the output to suit yourself...

checking directory: C:\Program Files\GIMP-2.6.7\share\gimp\2.0\scripts
Checking 3d-outline.scm
Checking 3dTruchet.scm
Checking t-o-p-logo.scm
Checking text-circle.scm
   ==> Deprecated gimp-text in text-circle.scm This procedure is deprecated! Use 'gimp-text-fontname' instead.
   ==> Deprecated gimp-text in text-circle.scm This procedure is deprecated! Use 'gimp-text-fontname' instead.
   ==> Deprecated gimp-text in text-circle.scm This procedure is deprecated! Use 'gimp-text-fontname' instead.
Checking textured-logo.scm
Checking tileblur.scm


Kevin


Attachments:
File comment: This is version 1.1
kp24_check_for_deprecated.zip [1.73 KiB]
Downloaded 111 times
Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group