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 632736 - change the window's wclass of entry from INPUT_OUTPUT to INPUT_ONLY
change the window's wclass of entry from INPUT_OUTPUT to INPUT_ONLY
Product: gtk+
Classification: Platform
Component: Widget: Other
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Reported: 2010-10-20 19:44 UTC by boram park
Modified: 2010-10-21 11:15 UTC
See Also:
GNOME target: ---
GNOME version: ---

patch for a bug (22.64 KB, patch)
2010-10-20 19:44 UTC, boram park
none Details | Review
testcode (264.37 KB, application/x-gzip)
2010-10-20 19:51 UTC, boram park

Description boram park 2010-10-20 19:44:54 UTC
Created attachment 172873 [details] [review]
patch for a bug

Currently GtkEntry has some GdkWindows. (a window for widget, a window for text_area, two windows for icons)
They are all visible windows. (GDK_INPUT_OUT)

For this reason, the shape of GtkEntry always is rectangle.
It's impossible to give round-shape for corner of GtkEntry.

I discussed this with Ryan Lortie. At his advice, I modified some code.
Now I open a bug.

In this patch, entry's window has gone and becomes the parent's window. 
And, all other windows become GDK_INPUT_ONLY.
To solve the arrangement problems, I modified some code.

And, gtk_entry_get_text_window and gtk_entry_get_icon_window aren't useful anymore, because they aren't visible. So, I deleted these two API.
Comment 1 boram park 2010-10-20 19:51:45 UTC
Created attachment 172874 [details]

There are two entry in sample application.

One is a normal entry which has rectangle-shape.
Another is a styled entry which has round-shape and is transparent.
Comment 2 Matthias Clasen 2010-10-21 10:26:39 UTC
Seems to work great in quick testing, I'll commit this. Thanks