aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/bytes_view.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-06-21 00:49:35 +0000
committerEvan Huus <eapache@gmail.com>2013-06-21 00:49:35 +0000
commit50bc11bc14a33167f35344e0adb642756009342a (patch)
tree6c752022248d0fc7f23e182c838eaec4037fb597 /ui/gtk/bytes_view.c
parent2bd2bfb416651f716c3771b6af25214bf5b0f913 (diff)
One more fix for the protocol grey highlighting.
svn path=/trunk/; revision=50100
Diffstat (limited to 'ui/gtk/bytes_view.c')
-rw-r--r--ui/gtk/bytes_view.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/gtk/bytes_view.c b/ui/gtk/bytes_view.c
index b388f2c668..89edbb8930 100644
--- a/ui/gtk/bytes_view.c
+++ b/ui/gtk/bytes_view.c
@@ -632,7 +632,8 @@ _bytes_view_line_common(BytesView *bv, void *data, const int org_off, int xx, in
if (state_cur != state) {
/* ok, we want to put space, we prefer to put it in STATE_NORMAL or STATE_INSENSITIVE */
- int space_now = (state_cur != GTK_STATE_NORMAL && state_cur != GTK_STATE_INSENSITIVE);
+ int space_now = (state_cur != GTK_STATE_NORMAL && state_cur != GTK_STATE_INSENSITIVE)
+ || state == GTK_STATE_NORMAL;
if (space_now && byten) {
str[cur++] = ' ';
@@ -716,7 +717,8 @@ _bytes_view_line_common(BytesView *bv, void *data, const int org_off, int xx, in
GTK_STATE_NORMAL;
if (state_cur != state) {
- int space_now = (state_cur != GTK_STATE_NORMAL && state_cur != GTK_STATE_INSENSITIVE);
+ int space_now = (state_cur != GTK_STATE_NORMAL && state_cur != GTK_STATE_INSENSITIVE)
+ || state == GTK_STATE_NORMAL;
if (space_now && byten) {
/* insert a space every BYTE_VIEW_SEP bytes */