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 155071 - wrong colors in location bar history
wrong colors in location bar history
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Small Patch
Depends on:
Blocks:
 
 
Reported: 2004-10-11 07:06 UTC by Ricardo Veguilla
Modified: 2018-02-10 03:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (81.24 KB, image/png)
2004-10-11 07:11 UTC, Ricardo Veguilla
  Details
focus completion popup window (4.08 KB, patch)
2005-08-24 18:05 UTC, Yevgen Muntyan
needs-work Details | Review

Description Ricardo Veguilla 2004-10-11 07:06:39 UTC
The colors of the location bar history/completion list don't match the currently
selected theme. See following screenshot.
Comment 1 Ricardo Veguilla 2004-10-11 07:11:34 UTC
Created attachment 32471 [details]
screenshot
Comment 2 Christian Persch 2004-10-11 14:33:36 UTC
This is the stock gtkentrycompletion gtk+ widget, re-assigning to gtk+.
Comment 3 Matthias Clasen 2004-10-31 18:37:55 UTC
Works fine for me here in testentrycompletion. Can you reproduce this with
testentrycompletion, Christian ?
Comment 4 Christian Persch 2004-10-31 18:54:04 UTC
Ricardo: can you be more specific about what exactly you think is wrong?
As I understand it, it is that the completion actions should be themed like menu
items?
If that's the case, then yes, I can reproduce this in testentrycompletion, using
the high-contrast inverse theme: On mouse-over, the completion actions are white
on blue, while menuitems are blank on white.
Comment 5 Ricardo Veguilla 2004-11-02 04:50:49 UTC
What I originally thought was wrong was apparently the result of inconsistencies
or errors in several themes. 

However there is still a problem related to themes and its that all completion 
entries are themed with unfocused colors (because the text entry is retaining
the focus) which make it look like they aren't correctly themed when they
probably are. 

Another question, are completion action supposed to be themed with the same
color of menu items or with the same appearance (style properties, theme engine
style,etc)? If the second case is correct (menu item apperance) then there are
certainly a few more things wrong. 
Comment 6 Ricardo Veguilla 2004-11-02 04:55:09 UTC
And yes, I tried testentrycompletion and it appears to be themed correctly
except for the "completion action not looking like menu items" case and the
"unfocused colors" situation.
Comment 7 Yevgen Muntyan 2005-08-24 18:05:05 UTC
Created attachment 51275 [details] [review]
focus completion popup window

This patch adds focus to the entry completion window, it does the same thing as
treeview with interactive search entry.
But there is a problem with treeview cursor, there is no way to unset it. This
patch does this just directly freeing tree_view->priv->cursor row reference. It
would be good to have something like gtk_tree_view_unset_cursor().
Comment 8 Yevgen Muntyan 2007-03-22 16:31:28 UTC
The patch is no good, see "there is a problem" in last comment.
Comment 9 Kristian Rietveld 2008-11-11 15:38:58 UTC
We probably cannot use the same logic as the tree view search dialog uses here.  The tree view search dialog is popped up and made modal (so it will receive all events) and then the focus is set again on the tree view so the selection is drawn okay.  So while the tree view has focus, the entry will receive all the events.

Here we want kind of the same, however we cannot really make the entry modal here -- things are just the opposite, the tree view is in the popup now and not the entry.  Transferring focus to the tree view might work, since events are already being passed from the entry completion popup window to the entry.


Instead of getting the code right that has to move the focus back and forth between widgets, it might be easier to change the tree view such that it will always draw the selection as if the tree view is focussed when it is in hover-selection mode?

Matthias, what do you think of this approach?
Comment 10 André Klapper 2012-05-06 21:45:16 UTC
Comment on attachment 51275 [details] [review]
focus completion popup window

Setting patch status as per comment 8, plus patch uses API removed in gtk3 (GTK_WIDGET_SET_FLAGS)
Comment 11 Matthias Clasen 2018-02-10 03:28:27 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.