GNOME Bugzilla – Bug 632736
change the window's wclass of entry from INPUT_OUTPUT to INPUT_ONLY
Last modified: 2010-10-21 11:15:57 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.
Created attachment 172874 [details] testcode 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.
Seems to work great in quick testing, I'll commit this. Thanks