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 622677 - Remove GdkWindowObject public structure
Remove GdkWindowObject public structure
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.90.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 597742
 
 
Reported: 2010-06-25 01:23 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-07-01 03:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove GdkWindowObject public structure (5.50 KB, patch)
2010-06-25 01:28 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Implement gdk_window_has_native() (2.56 KB, patch)
2010-06-28 23:02 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
Remove GdkWindowObject public structure.v2 (6.84 KB, patch)
2010-06-29 00:58 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Javier Jardón (IRC: jjardon) 2010-06-25 01:23:06 UTC
The public part of GdkWindowObject was deprecated
Comment 1 Javier Jardón (IRC: jjardon) 2010-06-25 01:28:19 UTC
Created attachment 164573 [details] [review]
Remove GdkWindowObject public structure

This is a partial patch.

This code from tests/testwindows.c should still be ported:

static gboolean
window_has_impl (GdkWindow *window)
{
  GdkWindowObject *w;
  w = (GdkWindowObject *)window;
  return w->parent == NULL || w->parent->impl != w->impl;
}

Any idea about this?
Comment 2 Javier Jardón (IRC: jjardon) 2010-06-25 01:32:54 UTC
Alex: Could you help with this last issue?
Comment 3 Alexander Larsson 2010-06-28 09:25:00 UTC
You need to add a 
gboolean gdk_window_has_native(GdkWindow *window)
and use that.
Comment 4 Javier Jardón (IRC: jjardon) 2010-06-28 23:02:23 UTC
Created attachment 164852 [details] [review]
Implement gdk_window_has_native()
Comment 5 Javier Jardón (IRC: jjardon) 2010-06-29 00:58:04 UTC
Created attachment 164856 [details] [review]
Remove GdkWindowObject public structure.v2

Remove GdkWindowObject public structure using the new gdk_window_has_native() function
Comment 6 Christian Dywan 2010-06-29 06:34:08 UTC
(In reply to comment #4)
> Created an attachment (id=164852) [details] [review]
> Implement gdk_window_has_native()

Might be a good idea to mention that gdk_window_ensure_native() can be used if a native window is needed.
Comment 7 Alexander Larsson 2010-06-30 09:35:08 UTC
looks good to me.
Comment 8 Javier Jardón (IRC: jjardon) 2010-07-01 00:28:15 UTC
Comment on attachment 164852 [details] [review]
Implement gdk_window_has_native()

committed with the christian comments.
commit df106318f8a62bb9bb4b1afe04a9b7f2919eb98d
Comment 9 Javier Jardón (IRC: jjardon) 2010-07-01 00:28:37 UTC
Comment on attachment 164856 [details] [review]
Remove GdkWindowObject public structure.v2

commit 319d2bb4f1332e2e35d70a6acccb3b12b87dfd89
Comment 10 Javier Jardón (IRC: jjardon) 2010-07-01 00:40:30 UTC
Comment on attachment 164852 [details] [review]
Implement gdk_window_has_native()

Also, committed in gtk-2-22 branch in commit  6de36e580ba8acec2fdfc35c17435851fcad06cc
Comment 11 Javier Jardón (IRC: jjardon) 2010-07-01 00:41:01 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release.

Thanks for the help / reviews!
Comment 12 Matthias Clasen 2010-07-01 01:56:34 UTC
> Also, committed in gtk-2-22 branch in commit 

I don't understand this part. Why are we removing things in 2.x ?!
Comment 13 Javier Jardón (IRC: jjardon) 2010-07-01 03:22:02 UTC
(In reply to comment #12)
> > Also, committed in gtk-2-22 branch in commit 
> 
> I don't understand this part. Why are we removing things in 2.x ?!

I've only applied in gtk-2-22 the patch to add the accessor.