[gnome-documents/wip/ui-changes: 2/25] view: use GdStyledTextRenderer for type and where fields in list view
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/ui-changes: 2/25] view: use GdStyledTextRenderer for type and where fields in list view
- Date: Sat, 3 Mar 2012 00:26:22 +0000 (UTC)
commit ec3c34ccc6fed07d065752045c1e828c1483cf7a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Feb 27 14:51:05 2012 -0500
view: use GdStyledTextRenderer for type and where fields in list view
Give them a dim-label style class, as it is in the mockups.
src/view.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 34f4402..3bc39ba 100644
--- a/src/view.js
+++ b/src/view.js
@@ -151,7 +151,8 @@ View.prototype = {
let listWidget = this.widget.get_generic_view();
let typeRenderer =
- new Gtk.CellRendererText({ xpad: 16 });
+ new Gd.StyledTextRenderer({ xpad: 16 });
+ typeRenderer.add_class('dim-label');
listWidget.add_renderer(typeRenderer, Lang.bind(this,
function(col, cell, model, iter) {
let urn = model.get_value(iter, Documents.ModelColumns.URN);
@@ -161,7 +162,8 @@ View.prototype = {
}));
let whereRenderer =
- new Gtk.CellRendererText({ xpad: 8 });
+ new Gd.StyledTextRenderer({ xpad: 8 });
+ whereRenderer.add_class('dim-label');
listWidget.add_renderer(whereRenderer, Lang.bind(this,
function(col, cell, model, iter) {
let urn = model.get_value(iter, Documents.ModelColumns.URN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]