[nautilus] list-view: use GdStyledRenderer
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-view: use GdStyledRenderer
- Date: Wed, 18 Feb 2015 21:14:55 +0000 (UTC)
commit 02b9ec79ef83c87d61a1d7690f2112286efcc653
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 17 10:08:41 2015 -0800
list-view: use GdStyledRenderer
https://bugzilla.gnome.org/show_bug.cgi?id=744681
configure.ac | 1 +
src/nautilus-list-view.c | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1be1cee..7d29886 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 15f46ae..ab99d20 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]