Re: [gtkmm] Variable maps and spin buttons



Robert Zeh Wrote:
> Has anyone thought of extending the Glade::VariablesMap class to handle 
> associations between integers and GtkSpinButtons?
> 
Today I've extended Glade::VariablesMap, now it handles:
* Entry, 
* ComboTextEntry,
* SpinButton, 
* *Scale,
* Calendar 
* CheckBox

Tomorrow I'll post the patch on bugzilla.

-----------------
Now I'm managing to connect slot to a widget.

for example:

  /** This connect a glade button to a slot
   *
   * For instance:
   * @code
   * refXml->connect_button("button", sigc::mem_fun(*this,
&ExampleWindow::on_button_clicked) );
   * @endcode
   *
   * @param name The name of the widget.
   * @param pslot The slot to connect to.
   */
  void connect_button(const Glib::ustring& name, const
sigc::slot<void,const Gtk::Widget>& slot_);


But I'm studying sigc because I have not understand how to pass a
mem_fun to a function.

Hi,
	Alberto





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