[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Using Gtk::Button::on_clicked function?
From:       _Michal_ <m.szlosar () upos ! pl>
Date:       2011-10-17 10:45:33
Message-ID: 32665672.post () talk ! nabble ! com
[Download RAW message or body]


Hello,

I'm new to gtk so my problem may be quite basic.


***************
class Pump: public Gtk::Button
{
  public:
    Gtk::Frame frame;
    Pump();
    void on_clicked();

private:
  Gtk::EventBox outer;
};
****************
I have my class which has a frame with eventbox inside. EventBox has
specified size (100x100pix).

I  want to get on_clicked event (on frame or eventbox). But
Gtk::Button::on_clicked() doesn't work.

Thanks id advance for your help.

Edit:
My friend found solution:

outer.signal_button_press_event().connect( sigc::mem_fun(*this,
&Pump::on_button_press_event) );
-- 
View this message in context: \
http://old.nabble.com/Using-Gtk%3A%3AButton%3A%3Aon_clicked-function--tp32665672p32665672.html
 Sent from the Gtkmm mailing list archive at Nabble.com.

_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic