Re: Gtk::StatusIcon missing some virtual signal handlers?

I think this is not available in gtkmm 2 because it would have broken
ABI. The unstable documentation refers to gtkmm 3 for which it has been


On Wed, 2010-09-22 at 13:36 +0200, phan wrote:
> 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
> 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: 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: , 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
> gtkmm-list gnome org

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