On Sat, Jun 13, 2009 at 2:38 PM, Yuki KODAMA<[email protected]> wrote:
> # HG changeset patch
> # User Yuki KODAMA <[email protected]>
> # Date 1244870018 -32400
> # Node ID 0b15a20db2f277e1f79977566366ae788c9196a0
> # Parent  d6591ec1ab9018e30e7881e559f84b6515b207e4
> thgconfig: prevent warnings when pasting URL to PathEditDialog
>
> diff --git a/hggtk/thgconfig.py b/hggtk/thgconfig.py
> --- a/hggtk/thgconfig.py
> +++ b/hggtk/thgconfig.py
> @@ -284,12 +284,14 @@
>                 if enable:
>                     self.entries[n][2] = e.connect('changed', self.changedurl)
>                 else:
> -                    e.disconnect(h)
> +                    if e.handler_is_connected(h):
> +                        e.disconnect(h)
>             else:
>                 if enable:
>                     self.entries[n][2] = e.connect('changed', self.changed)
>                 else:
> -                    e.disconnect(h)
> +                    if e.handler_is_connected(h):
> +                        e.disconnect(h)
>
>     def urlparse(self, path):
>         if path.startswith('ssh://'):
>

This patch prevent following warnings shown in output pane of Synch tool:

C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:287: Warning:
gsignal.c:2387: instance `01B411C8' has no handler with id `4279'
C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:292: Warning:
gsignal.c:2387: instance `01B41708' has no handler with id `4280'
C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:292: Warning:
gsignal.c:2387: instance `01B41468' has no handler with id `4281'
C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:292: Warning:
gsignal.c:2387: instance `01B41548' has no handler with id `4282'
C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:292: Warning:
gsignal.c:2387: instance `01B41388' has no handler with id `4283'
C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:292: Warning:
gsignal.c:2387: instance `01B41628' has no handler with id `4284'
C:\work\thg-nightly\library.zip\hggtk\thgconfig.py:292: Warning:
gsignal.c:2387: instance `01B412A8' has no handler with id `4285'


regards,
Yuki

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to