Re: Blocking signals
- From: muppet <scott asofyet org>
- To: "Ratcliffe, Jeffrey (Peters)" <Jeffrey Ratcliffe External eads com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Blocking signals
- Date: Mon, 18 Sep 2006 23:29:28 -0400
On Sep 18, 2006, at 2:07 AM, Ratcliffe, Jeffrey (Peters) wrote:
Because of a need for drag and drop, I have to keep a SimpleList
manually sorted. However, I am having problems blocking the "row-
changed" signal to prevent recursion.
What have I got wrong here?
First, you're trying to pack $button into $vbox twice.
Then:
GLib-GObject-WARNING **: gsignal.c:1735: instance `0x9aceab0' has no
handler with id `28' at block.pl line 28.
You're trying to block and unblock the right signal id on the wrong
instance.
$slist -> {signalid} = $slist -> get_model -> signal_connect(...);
...
$slist->signal_handler_block($slist -> {signalid});
...
$slist->signal_handler_unblock($slist -> {signalid});
Change those to $slist->get_model->signal_handler_block() and
$slist->get_model->signal_handler_unblock() and you'll be in business.
--
"Ghostbusters" is the best movie of this decade.
-- Neal, circa 1996, referring to a movie released in 1984.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]