Re: [glade--]How to connect object 1 signal to object 2 slot?

Christof Petig <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
Thomas Hansen wrote:
> Hello,
> 
> I'm new to gtk+, gtkmm and glade. I am trying to connect a signal 
> (changed) from a GtkCombo to a signal handler (on_combo_changed()) from 
> a GtkEntry derived object. It doesn't seem to be a complicated task if 
> not using glade: I would use on my main window constructor:
> 
> m_combo1.signal_clicked().connect( SigC::slot(m_entry1, 
> &My_Entry::on_combo_changed));
> 
> , where My_Entry is the class that inherits GktEntry), but I wasn't able 
> to find a simple way to do this in glade (appart from editing the _glade 
> files).
> 
> So, how can I do this? Am I so mad about trying this connection :)?

Try to specify m_entry1 as the object for the signal (sounds logical, 
doesn't it?). If both objects live within the same class and this gives 
an error, this is a glade-- bug.

    Christof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.