summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-02-17 10:08:41 -0800
committerCarlos Soriano <csoriano@gnome.org>2015-02-18 22:11:01 +0100
commit02b9ec79ef83c87d61a1d7690f2112286efcc653 (patch)
tree9d3704fe3af6116b8cd52d41b05e61c4f9984346
parent8c5409e2444dd3aec3b0445ae381aa10427fc467 (diff)
downloadnautilus-02b9ec79ef83c87d61a1d7690f2112286efcc653.tar.gz
list-view: use GdStyledRenderer
https://bugzilla.gnome.org/show_bug.cgi?id=744681
-rw-r--r--configure.ac1
-rw-r--r--src/nautilus-list-view.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 1be1cee9d..7d29886db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -311,6 +311,7 @@ AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
LIBGD_INIT([
notification
static
+ _view-common
])
AC_CONFIG_FILES([
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 15f46aedd..ab99d2053 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -41,6 +41,7 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib-object.h>
+#include <libgd/gd.h>
#include <libnautilus-extension/nautilus-column-provider.h>
#include <libnautilus-private/nautilus-clipboard-monitor.h>
#include <libnautilus-private/nautilus-column-chooser.h>
@@ -2086,14 +2087,13 @@ create_and_set_up_tree_view (NautilusListView *view)
(GtkTreeCellDataFunc) filename_cell_data_func,
view, NULL);
} else {
- cell = gtk_cell_renderer_text_new ();
- /* Match Adwaita dim-label style */
- GdkRGBA dim_text = {.0, .0, .0, 0.55};
+ cell = gd_styled_text_renderer_new ();
+ gd_styled_text_renderer_add_class (GD_STYLED_TEXT_RENDERER (cell),
+ "dim-label");
g_object_set (cell,
"xalign", xalign,
"xpad", 5,
- "foreground-rgba", &dim_text,
NULL);
if (!strcmp (name, "permissions")) {
g_object_set (cell,