Signal help needed (gtk_signal_new?)



Hi all,

I've gotten some feedback on this, but still need help.  From what
I gather, signals are specific to types.  So a gtk adjustment, for
example, has two signals associated with it:  "changed" and "value
changed".  Fine.

I've been looking for another kind of signal, perhaps rarely used, or
something I surely won't use in my program.  The best name I can think
of for it is "activate."  I bascially want to trigger signals from one
adjustment, to a tree of connected adjustments.  But I can find no such
signal.

So I thought I'd hack up a new one, just getting all the relevant info
as follows:

for (i=1;i<128;i++) {
   sig_info = gtk_signal_query(i);
   if (strcmp(sig_info->signal_name, "changed") == 0) {
    /* I'd insert mine here */
    continue;
   }
}

since I was unable to find a GtkType for an adjustment, and hence unable
to use gtk_signal_lookup().

But even if I capture the relevant info for "changed" I can't use it to
create a new signal.  The arguments for gtk_signal_new() are elusive to
me.  I'd basically like to create something very similar to the
"value_changed" and "changed" signals, named "activate."  It would be
the equivalent of a pulse that gets sent whenever the value changes from
0-1 or 1-0.

Thanks,

DT
--
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]