[epiphany] e-location-entry: dim URL in completion rows



commit 0b9943bc68e6d64c52f365a8d8253c6e074576c6
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Tue Mar 27 18:08:55 2012 -0500

    e-location-entry: dim URL in completion rows
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672927

 lib/widgets/ephy-location-entry.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index b68838f..d0d2b0d 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -908,9 +908,8 @@ textcell_data_func (GtkCellLayout *cell_layout,
 					     &color);
 
 		att = pango_attr_foreground_new
-			(color.red, color.green, color.blue);
+		   (color.red * 65535, color.green * 65535, color.blue * 65535);
 		att->start_index = strlen (title)+1;
-
 		pango_attr_list_insert (list, att);
 	        g_free (title);
 	}
@@ -918,6 +917,7 @@ textcell_data_func (GtkCellLayout *cell_layout,
 	{
 		ctext = title;
 	}
+	g_object_set (cell, "attributes", list, NULL);
 
 	g_value_init (&text, G_TYPE_STRING);
 	g_value_take_string (&text, ctext);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]