[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: Handler disconnect vs. block
From: Paul Pogonyshev <pogonyshev () gmx ! net>
Date: 2008-11-17 20:54:33
Message-ID: 200811172254.33909.pogonyshev () gmx ! net
[Download RAW message or body]
Jeffrey Barish wrote:
> Is there a reason to block/unblock a handler rather than disconnect/connect
> it? Is the overhead for block/unblock significantly lower?
Off the top of my head I can think of one: block/unblock will certainly not
change handler order, while disconnect/connect may. Overhead must not be
significant unless you are doing it say 10000 times a second.
> One thing I don't like about block/unblock is that GTK issues a warning when
> you try to unblock a handler that is not blocked, but there is no way to
> ask first whether the handler is currently blocked. disconnect/connect
> offers the handler_is_connected query.
It seems g_signal_handler_find() could be misused for this, though in any
way this will be ugly.
Paul
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic