Commit 02b9ec79 authored by Cosimo Cecchi's avatar Cosimo Cecchi Committed by Carlos Soriano Sánchez

list-view: use GdStyledRenderer

https://bugzilla.gnome.org/show_bug.cgi?id=744681
parent 8c5409e2
......@@ -311,6 +311,7 @@ AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
LIBGD_INIT([
notification
static
_view-common
])
AC_CONFIG_FILES([
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment