[Xfce4-commits] <midori:master> Implement colors in History List via Midori.Tab.fg/bg_color
Christian Dywan
noreply at xfce.org
Sat Mar 23 03:18:02 CET 2013
Updating branch refs/heads/master
to 8edf7fa3187a99a2560073591f85047ca329b378 (commit)
from 45be1e6c6e8e1a78a5697aeced20ee2e833a79a0 (commit)
commit 8edf7fa3187a99a2560073591f85047ca329b378
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Mar 23 02:24:29 2013 +0100
Implement colors in History List via Midori.Tab.fg/bg_color
extensions/history-list.vala | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/extensions/history-list.vala b/extensions/history-list.vala
index ee01cf4..b145e41 100644
--- a/extensions/history-list.vala
+++ b/extensions/history-list.vala
@@ -18,6 +18,8 @@ namespace HistoryList {
enum TabTreeCells {
TREE_CELL_PIXBUF,
TREE_CELL_STRING,
+ TREE_CELL_FG,
+ TREE_CELL_BG,
TREE_CELL_POINTER,
TREE_CELL_COUNT
}
@@ -83,6 +85,8 @@ namespace HistoryList {
store.append (out iter);
store.set (iter, TabTreeCells.TREE_CELL_PIXBUF, icon,
TabTreeCells.TREE_CELL_STRING, title,
+ TabTreeCells.TREE_CELL_FG, view.fg_color,
+ TabTreeCells.TREE_CELL_BG, view.bg_color,
TabTreeCells.TREE_CELL_POINTER, view);
}
}
@@ -109,7 +113,8 @@ namespace HistoryList {
this.hbox.pack_start (sw, true, true, 0);
var store = new Gtk.ListStore (TabTreeCells.TREE_CELL_COUNT,
- typeof (Gdk.Pixbuf), typeof (string), typeof (void*));
+ typeof (Gdk.Pixbuf), typeof (string),
+ typeof (Gdk.Color), typeof (Gdk.Color), typeof (void*));
this.insert_rows (store);
@@ -126,7 +131,9 @@ namespace HistoryList {
new CellRendererPixbuf (), "pixbuf", TabTreeCells.TREE_CELL_PIXBUF);
this.treeview.insert_column_with_attributes (
-1, "Title",
- new CellRendererText (), "text", TabTreeCells.TREE_CELL_STRING);
+ new CellRendererText (), "text", TabTreeCells.TREE_CELL_STRING,
+ "foreground-gdk", TabTreeCells.TREE_CELL_FG,
+ "cell-background-gdk", TabTreeCells.TREE_CELL_BG);
Requisition requisition;
int height;
More information about the Xfce4-commits
mailing list