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 710252 - [facebook account] entered username can not be selected properly
[facebook account] entered username can not be selected properly
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Accounts
unspecified
Other Linux
: Normal minor
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2013-10-16 09:06 UTC by Corentin Lecouvey
Modified: 2014-06-04 09:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
account-widget: use the "error" CSS class on wrong entries (1.91 KB, patch)
2014-01-07 13:00 UTC, Guillaume Desmottes
none Details | Review
account-widget: use the "error" CSS class on wrong entries (1.93 KB, patch)
2014-01-08 09:11 UTC, Guillaume Desmottes
committed Details | Review
remove tpaw_make_color_whiter() (1.58 KB, patch)
2014-01-08 09:11 UTC, Guillaume Desmottes
committed Details | Review

Description Corentin Lecouvey 2013-10-16 09:06:53 UTC
In "add Facebook chat account" widget, the username entered can not be properly selected. I mean it is white highlighted over white text.

The cause is that Facebook chat account is handled differently than other chat protocol accounts in order to implicitly add "@chat.facebook.com" suffix. The suffix mechanism seems to bring this display issue.
Comment 1 Guillaume Desmottes 2014-01-07 13:00:29 UTC
Created attachment 265534 [details] [review]
account-widget: use the "error" CSS class on wrong entries

That's the proper way to do as GTK+ defines this class for exactly this
purpose. Our current code was pretty hacky anyway.

This also has the nice side effect of fixing a bug making the text unreadable
when selecting it from the entry.
Comment 2 Xavier Claessens 2014-01-07 15:03:30 UTC
You can use GTK_STYLE_CLASS_ERROR. That seems to be the only user of tpaw_make_color_whiter() so it can be removed as well.
Comment 3 Guillaume Desmottes 2014-01-08 09:07:34 UTC
(In reply to comment #2)
> You can use GTK_STYLE_CLASS_ERROR. 

Oh yeah I forgot about those; thanks.

> That seems to be the only user of
> tpaw_make_color_whiter() so it can be removed as well.

Indeed, it doesn't seem to be unused neither by Empathy or GOA.
Comment 4 Guillaume Desmottes 2014-01-08 09:11:17 UTC
Created attachment 265673 [details] [review]
account-widget: use the "error" CSS class on wrong entries

That's the proper way to do as GTK+ defines this class for exactly this
purpose. Our current code was pretty hacky anyway.

This also has the nice side effect of fixing a bug making the text unreadable
when selecting it from the entry.
Comment 5 Guillaume Desmottes 2014-01-08 09:11:21 UTC
Created attachment 265674 [details] [review]
remove tpaw_make_color_whiter()

It's not used any more.
Comment 6 Xavier Claessens 2014-01-08 15:07:53 UTC
+1
Comment 7 Guillaume Desmottes 2014-01-13 09:14:52 UTC
Merged to master.

Attachment 265673 [details] pushed as 6cf47a8 - account-widget: use the "error" CSS class on wrong entries
Attachment 265674 [details] pushed as 0c066f5 - remove tpaw_make_color_whiter()
Comment 8 Debarshi Ray 2014-06-04 09:49:42 UTC
Review of attachment 265673 [details] [review]:

Wanted to point out that this patch triggers bug 724084