Bug 14137
Summary: | gtk_text does not accept keyboard input very quickly | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Joe Acosta <josepha48> |
Component: | gtk+ | Assignee: | Owen Taylor <otaylor> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-08-04 03:28:32 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joe Acosta
2000-07-17 17:11:54 UTC
Are you using a theme? I've seen reports of behavior like this with some pixmap themes, though I don't understand why that would happen. I noticed it happens with certain gtk themes. In particular the theme called "blue theme" and "blue steel" under gnome. It started in RH 6.1 with gtk 1.2.5. I know that if I change themes to "basic" it goes away. It may be in the gtk-themes package. I have found a workaround that seems to work, although I don't know why. I basically reset teh style. Here is a code snippet. GtkStyle *curstyle; GtkWidget *text; text = gtk_text_new(NULL, NULL); curstyle = gtk_widget_get_style(text); gtk_widget_set_style(text, curstyle); gtk_widget_show(text); So, does this happen only with your own code or also with other GtkText widgets? Do you see the problem with, say, gedit? Yes it happens in the gedit program also but not as much. First the gedit text widget is not as large as mine, I put mine in a viewport so I can get horizontal and verticle scroll bars. I also resize the text widgets to be large enough to contain the text with not scrolling, thus the viewport is used to see the area of interest. It also seems that gedit sets the style and does not use the style that is set by the window manager, so the font is a different font than the theme font. My guess is that gedit does something like font = 'some gont'; style = gtk_text_get_style(wiget); style->font = font; gtk_widget_set_style(widget,style); There is hesitance in typing in text in gedit, however it is not as noticable as in my editor. This is upstream as: http://bugzilla.gnome.org/show_bug.cgi?id=4485 We've never tracked this down; I've never been able to reproduce it myself. Both the GtkText widget and the "pixmap" theme engine are being replaced with total rewrites for GTK+-2.0, so it's pretty safe to say this problem will go away. For now, the workaround is simply not to use a pixmap theme. |