Hello,
I've got something like this:
----------
class Derivered: public Gtk::StatusIcon {
(...)
protected:
virtual bool on_button_press_event (GdkEventButton* event);
(...)
};
bool Derivered::on_button_press_event (GdkEventButton* event) {
// do stuff; return false;
}
----------
In other words, I've subclassed Gtk::StatusIcon and overridden
on_button_press_event() virtual method. The problem is, that the
method isn't called upon clicking on the status icon in the system tray without
manually connecting it to
signal_button_press_event() (it should be connected automatically, if I
correctly understood the
http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-overriding-default-signal-handlers.html.en
tutorial; or am I wrong?).
After further investigation, it turned out, that gtkmm/statusicon.h is actually
missing this virtual method (in matter of fact, it has
only the on_size_changed() method). If I understand it right, it should be
parent virtual method if we want to use "automatically
connected" feature, right?
On this reference manual:
http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1StatusIcon.html it is
said, that
on_button_press_event() is available there. If this method has been removed
along the developing road, maybe this manual
should be updated?
I've googled this report:
http://old.nabble.com/Mouse-Events-and-Gtkmm-Gdk-td12302003.html , but it seems
unrelated, since
Gtk::StatusIcon correctly emits signal_button_press_event.
Thanks for any replies and sorry if this problem is a trivial one.
Regards,
phan
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list