[Gimp-user] Starting extension very slow

2010-10-03 Thread Kekko
Hi, this is the first time I post something in this forum, so let me thank you 
in advance for your amazing work and website.
The pb I have is that I'm noting since a lot of time a very slowness in loading 
the extension at the startup of GIMP. This happened with the 2.6.10 version 
that I uninstalled and reinstalled more than once without success. Consider 
that I also clean the register and remove any directory before the 
reinstallation. I alsop tried the 2.7.1 but my pc suffers about the same issue. 
I have also defragged and cleaned the disk. What can I resolve this problem? 
Any suggestion? Please help me.
  

-- 
Kekko (via gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Starting extension very slow

2010-10-03 Thread Ofnuts
  On 03/10/2010 09:21, Kekko wrote:
 Hi, this is the first time I post something in this forum, so let me thank 
 you in advance for your amazing work and website.
 The pb I have is that I'm noting since a lot of time a very slowness in 
 loading the extension at the startup of GIMP. This happened with the 2.6.10 
 version that I uninstalled and reinstalled more than once without success. 
 Consider that I also clean the register and remove any directory before the 
 reinstallation. I alsop tried the 2.7.1 but my pc suffers about the same 
 issue. I have also defragged and cleaned the disk. What can I resolve this 
 problem? Any suggestion? Please help me.


1) how slow is slow for you? Can you give za figiure in seconds (or in 
minutes?)

2) use the --verbose flag as a Gimp startup parameter (in Windows, 
update/duplicate your Gimp shortcut and add a --verbose to the target, 
so that it reads something  like:

C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe --verbose

This will make Gimp give you details of what it's doing during startup 
and you may see when the delay happens.


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell
One of uses of an underscore is to pick out the shortcut character in 
a menu item:

(script-fu-register  wrdhb_create_half_blind_dovetail
  _Half blind dovetail...   ;menu label
  Create Template for Half blind Dovetail 

)

There also appears to be

(script-fu-register  wrdhb_create_half_blind_dovetail
  _Half blind dovetail...   ;menu label
...
)

whch I gather has something to do with translation: I assume it would 
have no effect in this particular case because it's sadly 
unreasonable to expect translation dictionaries (po files??) to know 
blind or dovetail.  That so?

==

script-fu-register  wrdhb_create_half_blind_dovetail
  _Half blind dovetail...   ;menu label

)

Also, I've been using this style of getting a script registered for 
use in create menu:

(script-fu-menu-register wrdhb_create_template_half_blind_dovetail 
Image/File/Create/Woodrat)

(a)  Can I combine the two, putting path in second parameter of 
script-fu-register?

(b) Is there anyway of getting a letter of the submenu Woodrat to 
be a shortcut key?  I've tried variations of underscore in the 
Image/File/Create/Woodrat parameter, doesn't work.


Yrs,

Alan 

Never accept a drink from a urologist.

-- Erma Bombeck


= +  =



___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Starting extension very slow

2010-10-03 Thread Kekko
  On 03/10/2010 09:21, Kekko wrote:
 Hi, this is the first time I post something in this forum, so let me thank 
 you in advance for your amazing work and website.
 The pb I have is that I'm noting since a lot of time a very slowness in 
 loading the extension at the startup of GIMP. This happened with the 2.6.10 
 version that I uninstalled and reinstalled more than once without success. 
 Consider that I also clean the register and remove any directory before the 
 reinstallation. I alsop tried the 2.7.1 but my pc suffers about the same 
 issue. I have also defragged and cleaned the disk. What can I resolve this 
 problem? Any suggestion? Please help me.


1) how slow is slow for you? Can you give za figiure in seconds (or in 
minutes?)

2) use the --verbose flag as a Gimp startup parameter (in Windows, 
update/duplicate your Gimp shortcut and add a --verbose to the target, 
so that it reads something  like:

C:\Program Files\GIMP-2.0\bin\gimp-2.6.exe --verbose

This will make Gimp give you details of what it's doing during startup 
and you may see when the delay happens.

1' and 30 too much but the cause is PC Tools Spyware Antivirus, I stopped it 
and re tried and GIMP starts up in a few seconds. How can I say to PC Tools 
Spyware to ignore GIMP?





-- 
Kekko (via gimpusers.com)
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Sven Neumann
On Sun, 2010-10-03 at 12:59 +, Alan Campbell wrote:
 One of uses of an underscore is to pick out the shortcut character in 
 a menu item:
 
 (script-fu-register  wrdhb_create_half_blind_dovetail
   _Half blind dovetail...   ;menu label
   Create Template for Half blind Dovetail 
 
 )
 
 There also appears to be
 
 (script-fu-register  wrdhb_create_half_blind_dovetail
   _Half blind dovetail...   ;menu label
 ...
 )
 
 whch I gather has something to do with translation: I assume it would 
 have no effect in this particular case because it's sadly 
 unreasonable to expect translation dictionaries (po files??) to know 
 blind or dovetail.  That so?

If you want your scripts to be translated, then you need to put your
scripts into a separate translation domain and ship the translations
with them. You can of course not expect the strings from your scripts to
be part of the standard script-fu translation domain.


 Also, I've been using this style of getting a script registered for 
 use in create menu:
 
 (script-fu-menu-register wrdhb_create_template_half_blind_dovetail 
 Image/File/Create/Woodrat)
 
 (a)  Can I combine the two, putting path in second parameter of 
 script-fu-register?

Using a path in the script-fu-register call is deprecated. Please use
script-fu-menu-register.

 (b) Is there anyway of getting a letter of the submenu Woodrat to 
 be a shortcut key?  I've tried variations of underscore in the 
 Image/File/Create/Woodrat parameter, doesn't work.

You need to explicitly create the submenu using
gimp-plugin-menu-branch-register. This procedure should accept mnemonics
marked with an underscore.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell


Hi Sven,

On 3 Oct 2010 at 14:19, Sven Neumann wrote:

 On Sun, 2010-10-03 at 12:59 +, Alan Campbell wrote:
  One of uses of an underscore is to pick out the shortcut character
  in a menu item:
  
  (script-fu-register  wrdhb_create_half_blind_dovetail
_Half blind dovetail...   ;menu label
Create Template for Half blind Dovetail 
  
  )
  
  There also appears to be
  
  (script-fu-register  wrdhb_create_half_blind_dovetail
_Half blind dovetail...   ;menu label
  ...
  )
  
  whch I gather has something to do with translation: I assume it
  would have no effect in this particular case because it's sadly
  unreasonable to expect translation dictionaries (po files??) to know
  blind or dovetail.  That so?
 
 If you want your scripts to be translated, then you need to put your
 scripts into a separate translation domain and ship the translations
 with them. You can of course not expect the strings from your scripts
 to be part of the standard script-fu translation domain.

Yikes.  Okay, will now go find out what a translation domain is.  
However, since woodrats I think are only sold only with English 
instructions, I guess their owners will probably read engish...
 
  Also, I've been using this style of getting a script registered for
  use in create menu:
  
  (script-fu-menu-register wrdhb_create_template_half_blind_dovetail
  Image/File/Create/Woodrat)
  
  (a)  Can I combine the two, putting path in second parameter of
  script-fu-register?
 
 Using a path in the script-fu-register call is deprecated. Please use
 script-fu-menu-register.

Have done, thanks.

  (b) Is there anyway of getting a letter of the submenu Woodrat to
  be a shortcut key?  I've tried variations of underscore in the
  Image/File/Create/Woodrat parameter, doesn't work.
 
 You need to explicitly create the submenu using
 gimp-plugin-menu-branch-register. This procedure should accept
 mnemonics marked with an underscore.
 

Tried
(gimp-plugin-menu-branch-register Image/File/Create W_oodrat)
(gimp-plugin-menu-branch-register Image/File/Create _Woodrat) 

followed by 

(script-fu-menu-register wrdhb_create_half_blind_dovetail
  Image/File/Create/W_oodrat)

or

(script-fu-menu-register wrdhb_create_half_blind_dovetail
  Image/File/Create/_Woodrat)

or

(script-fu-menu-register wrdhb_create_half_blind_dovetail
  Image/File/Create/Woodrat)


Always got the Woodrat folder under File | Create menu, no shortcut 
key indicated.




Yrs,

Alan 

Law of Cybernetic Entomology:

   There is always one more bug.


= +  =



___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Starting extension very slow

2010-10-03 Thread Ofnuts
  On 03/10/2010 14:00, Kekko wrote:
   On 03/10/2010 09:21, Kekko wrote:
 Hi, this is the first time I post something in this forum, so let me thank 
 you in advance for your amazing work and website.
 The pb I have is that I'm noting since a lot of time a very slowness in 
 loading the extension at the startup of GIMP. This happened with the 2.6.10 
 version that I uninstalled and reinstalled more than once without success. 
 Consider that I also clean the register and remove any directory before the 
 reinstallation. I alsop tried the 2.7.1 but my pc suffers about the same 
 issue. I have also defragged and cleaned the disk. What can I resolve this 
 problem? Any suggestion? Please help me.
 1' and 30 too much but the cause is PC Tools Spyware Antivirus, I stopped it 
 and re tried and GIMP starts up in a few seconds. How can I say to PC Tools 
 Spyware to ignore GIMP?

Find the PC-Tools-Spyware-Antivirus-user list for that :-) or find a 
better antivirus.

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] How are parasites represented in Script-Fu?

2010-10-03 Thread Gino D
Hi

Currently, what type of data should be used to enter a parasite as a
parameter within those Script-fu procedures that handle such an
object? By chance, can you give me any examples?

In order to figure it out, I have done several tests through the
TinyScheme Console, from time to time using lists, vectors or strings,
but none of them seems to fit.

Thanks in advance.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Sven Neumann
On Sun, 2010-10-03 at 13:42 +, Alan Campbell wrote:

  You need to explicitly create the submenu using
  gimp-plugin-menu-branch-register. This procedure should accept
  mnemonics marked with an underscore.
  
 
 Tried
 (gimp-plugin-menu-branch-register Image/File/Create W_oodrat)
 (gimp-plugin-menu-branch-register Image/File/Create _Woodrat) 
 
 followed by 
 
 (script-fu-menu-register wrdhb_create_half_blind_dovetail
   Image/File/Create/W_oodrat)
 
 or
 script-fu-menu-
 (script-fu-menu-register wrdhb_create_half_blind_dovetail
   Image/File/Create/_Woodrat)
 
 or
 
 (script-fu-menu-register wrdhb_create_half_blind_dovetail
   Image/File/Create/Woodrat)
 
 
 Always got the Woodrat folder under File | Create menu, no shortcut 
 key indicated.

I am pretty sure that it theoretically should work this way. After all
the Script-Fu extension itself creates sub-menus this way and those
sub-menus do have mnemonics. You definitely should not use the
underscore in the menu-register call.

However the problem is most likely that Script-Fu doesn't provide you
any means to call this procedure before the menu-register call is
executed. There would probably have to be a
script-fu-menu-branch-register() wrapper added for this purpose.

A possible solution would be to write your scripts in Python.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] How are parasites represented in Script-Fu?

2010-10-03 Thread Rob Antonishen
On Sun, Oct 3, 2010 at 9:49 AM, Gino D  wrote:
 Hi

 Currently, what type of data should be used to enter a parasite as a
 parameter within those Script-fu procedures that handle such an
 object? By chance, can you give me any examples?


AFAIK, only strings are supported and are passed in as a list.  First
parameter is the parasite name and the third is the string value.  Not
sure what the seconf parameter is but I always use the number 1:

(gimp-parasite-attach (list parasite-name 1 parasite value))

-Rob A


-Rob A
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] script-fu: underscore?; script-fu-register; script-fu-menu-register

2010-10-03 Thread Alan Campbell

  Always got the Woodrat folder under File | Create menu, no
  shortcut key indicated.

On 3 Oct 2010 at 11:17:05, Sven Neumann wrote:

 I am pretty sure that it theoretically should work this way. After
 all the Script-Fu extension itself creates sub-menus this way and
 those sub-menus do have mnemonics. You definitely should not use
 the underscore in the menu-register call. 

I was calling (gimp-plugin-menu-branch-register from top level, i.e. 
it was a statement in scm file along with many (defines.  

So how does that work?  script-fu interpreter processes defines 
first, then any (script-fu-register*) statements, nothing else? Any 
other precedence rules?

 However the problem is most likely that Script-Fu doesn't provide
 you any means to call this procedure before the menu-register call
 is executed. There would probably have to be a
 script-fu-menu-branch-register() wrapper added for this purpose. 

I did this:

(define (wrf_register_menu_branch)
 (gimp-plugin-menu-branch-register Image/File/Create W_oodrat)
 _Finger...
) 

(script-fu-register  wrf_create_template_finger
  (wrf_register_menu_branch); menu label


which works.  (script-fu-register when it runs has to call 
(wrf_register_menu_branch), which does the register thing.

 A possible solution would be to write your scripts in Python.

Oh dear.  I've had enough mental exercise for this year learning 
script-fu.  Not sure by brain could take relearning python.

Also that would require that end users of script, generally assumed 
not to be highly computer literate, would have to install python as 
well as GIMP. 

Anyway, my kludge seems to work.  Thanks for pointer on how to do it.

Yrs,

Alan 

Never say anything on the phone that you
wouldn't want your mother to hear at your
trial.

-- Sydney Biddle Barrows 
   the Mayflower Madam


= +  =



___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user