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 320872 - Add gdk_window_get_type_hint()
Add gdk_window_get_type_hint()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.8.x
Other All
: Normal enhancement
: Small API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-11-07 13:27 UTC by Michael Natterer
Modified: 2005-11-08 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against HEAD implementing the function (3.53 KB, patch)
2005-11-07 13:28 UTC, Michael Natterer
none Details | Review

Description Michael Natterer 2005-11-07 13:27:10 UTC
Attached patch from maemo-gtk adds gdk_window_get_type_hint().
Comment 1 Michael Natterer 2005-11-07 13:28:15 UTC
Created attachment 54417 [details] [review]
Patch against HEAD implementing the function
Comment 2 Tim Janik 2005-11-07 17:11:42 UTC
since we already have gdk_window_set_type_hint(), the addition of
gdk_window_get_type_hint() should be applied, however the return value of
XGetWindowProperty() should be checked and the code should fallback to
GDK_WINDOW_TYPE_HINT_NORMAL as well in case the query went wrong.
Comment 3 Michael Natterer 2005-11-08 14:46:00 UTC
Added the missing check and comitted to HEAD:

2005-11-08  Michael Natterer  <mitch@imendio.com>

	* gdk/gdk.symbols
	* gdk/gdkwindow.h
	* gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch
	extracted from maemo-gtk). Fixes bug #320872.