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 631695 - [GSEAL] no API to get event_window from GtkRange
[GSEAL] no API to get event_window from GtkRange
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
2.24.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 597610
 
 
Reported: 2010-10-08 17:18 UTC by Didier Roche
Modified: 2013-11-08 10:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add gtk_range_get_event_window to get the event_window for a GtkRange (2.72 KB, patch)
2010-10-08 17:18 UTC, Didier Roche
none Details | Review
GTK3 version: add gtk_range_get_event_window to get the event_window for a GtkRange (3.06 KB, patch)
2010-10-29 21:29 UTC, Didier Roche
none Details | Review

Description Didier Roche 2010-10-08 17:18:30 UTC
Created attachment 171960 [details] [review]
Add gtk_range_get_event_window to get the event_window for a GtkRange

Here is a patch to add an API to get the event_window from a GtkRange.

This is useful when you try to build your own widget based on GtkRange and then,
should access to the GdkWindow.

Here is a git format patch to add it.
I based it on GtkButton and the API made to access to it, I'm opened to comments :)
Comment 1 Didier Roche 2010-10-29 21:29:41 UTC
Created attachment 173527 [details] [review]
GTK3 version: add gtk_range_get_event_window to get the event_window for a GtkRange

patch for gtk3 this time :)
Comment 2 Matthias Clasen 2010-10-30 01:27:11 UTC
What use does your widget make of the event window ?
Not sure I see what you could do with it that would not break the range functionality to some extent.
Comment 3 Javier Jardón (IRC: jjardon) 2010-11-09 16:39:49 UTC
Related for GtkNotebook: bug #632890
Comment 4 Cody Russell 2010-11-09 16:49:13 UTC
We're using it for implementing button-press/release events on a child widget.
Comment 5 Matthias Clasen 2010-11-09 17:44:58 UTC
I don't follow - GtkRange is not a container...
Comment 6 Cody Russell 2010-11-09 20:17:01 UTC
Sorry, I meant a derivative widget.
Comment 7 Timothy Arceri 2013-10-14 06:47:14 UTC
Did this make it into GTK+3? Is this bug still relevant?
Comment 8 Lars Karlitski 2013-11-08 10:42:37 UTC
This patch was used in Ubuntu's sound menu to rewrite the event window for incoming events when using GtkRange as a child of a GtkMenuItem. It hasn't been used for that purpose since gtk 3.