After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 125969 - Scale button_pressed_event needs connect_notify()
Scale button_pressed_event needs connect_notify()
Status: RESOLVED NOTABUG
Product: gtkmm
Classification: Bindings
Component: general
2.4
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on: 126213
Blocks:
 
 
Reported: 2003-11-01 11:20 UTC by anýl chalil
Modified: 2016-02-02 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gtk::Scale do not emit signal button pressed/released (1.67 KB, text/plain)
2003-11-03 12:36 UTC, anýl chalil
Details
Gtk::Scale do not emit signal button pressed/released (1.67 KB, text/plain)
2003-11-03 12:36 UTC, anýl chalil
Details

Description anýl chalil 2003-11-01 11:20:45 UTC
i see this bug when i want know Gtk::VScale pressed and released in my 
application.Pressed signal is emitted when i double click on it but 
released signal never emitted.Also i try it with glade-2 by creating simple 
widget.GTK+ is emiting these signals but gtkmm doesn't.Same thing also 
happened with scroolbars.They also show same behaviour.I am using gtkmm 
2.2.8 version.
Comment 1 Murray Cumming 2003-11-01 17:44:09 UTC
I need a small-as-possible-but-compileable test program in order to
investigate. Or you might modify a gtkmm example to show this problem.
Comment 2 anýl chalil 2003-11-03 12:36:32 UTC
Created attachment 21152 [details]
Gtk::Scale do not emit signal button pressed/released
Comment 3 anýl chalil 2003-11-03 12:36:33 UTC
Created attachment 21153 [details]
Gtk::Scale do not emit signal button pressed/released
Comment 4 Murray Cumming 2003-11-04 13:48:49 UTC
I found that it works if you use connect_notify (so that you connect 
before the existing signal handler). It should also work if you 
derived a new HScale class and overrode on_button_press_event().
Comment 5 Kjell Ahlstedt 2016-02-02 14:55:14 UTC
Signal handlers for many X event signals are not called, if they are connected
after the default handler, which is the default behaviour for SignalProxy::
connect(). Connect your signal handler before the default handler, either by
using connect() with the optional 'after' parameter set to false, or by using
connect_notify(). This is discussed in the gtkmm tutorial,
https://developer.gnome.org/gtkmm-tutorial/stable/sec-xeventsignals.html.en#signal-handler-sequence