summaryrefslogtreecommitdiff
path: root/extensions/tab-panel.c
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2011-04-25 17:56:56 +0200
committerChristian Dywan <christian@twotoasts.de>2011-04-25 17:56:56 +0200
commitcdb7bfad07293086d8cef0841dc57103e8f116fd (patch)
treebf06a7077f70aff6ea026f35049da8377a6b442b /extensions/tab-panel.c
parent1bdc0e36b8ec2f41b4c849106f5b7b5cf2e98e87 (diff)
downloadmidori-cdb7bfad07293086d8cef0841dc57103e8f116fd.tar.gz
Make Tab Panel use the correct foreground colours
In particular when used in combination with Colorful Tabs.
Diffstat (limited to 'extensions/tab-panel.c')
-rw-r--r--extensions/tab-panel.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/extensions/tab-panel.c b/extensions/tab-panel.c
index aeedd130..4d58447e 100644
--- a/extensions/tab-panel.c
+++ b/extensions/tab-panel.c
@@ -360,6 +360,7 @@ tab_panel_view_notify_icon_cb (GtkWidget* view,
gtk_tree_store_set (GTK_TREE_STORE (model), &iter,
3, icon,
6, &style->bg[GTK_STATE_NORMAL],
+ 7, &style->fg[GTK_STATE_NORMAL],
-1);
}
}
@@ -452,7 +453,7 @@ tab_panel_browser_add_tab_cb (MidoriBrowser* browser,
gtk_tree_store_insert_with_values (GTK_TREE_STORE (model),
&iter, NULL, page, 0, view, 1, GTK_STOCK_CLOSE, 2, buttons,
- 3, icon, 4, title, 5, ellipsize, 6, NULL, -1);
+ 3, icon, 4, title, 5, ellipsize, 6, NULL, 7, NULL, -1);
}
if (!g_signal_handler_find (view, G_SIGNAL_MATCH_FUNC,
@@ -530,8 +531,9 @@ tab_panel_app_add_browser_cb (MidoriApp* app,
panel = katze_object_get_object (browser, "panel");
- model = gtk_tree_store_new (7, MIDORI_TYPE_VIEW,
- G_TYPE_STRING, G_TYPE_BOOLEAN, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_INT, GDK_TYPE_COLOR);
+ model = gtk_tree_store_new (8, MIDORI_TYPE_VIEW,
+ G_TYPE_STRING, G_TYPE_BOOLEAN, GDK_TYPE_PIXBUF, G_TYPE_STRING,
+ G_TYPE_INT, GDK_TYPE_COLOR, GDK_TYPE_COLOR);
g_object_set_data (G_OBJECT (browser), "tab-panel-ext-model", model);
treeview = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
@@ -549,7 +551,8 @@ tab_panel_app_add_browser_cb (MidoriApp* app,
renderer_text = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_start (column, renderer_text, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (column), renderer_text,
- "text", 4, "ellipsize", 5, "cell-background-gdk", 6, NULL);
+ "text", 4, "ellipsize", 5,
+ "cell-background-gdk", 6, "foreground-gdk", 7, NULL);
gtk_tree_view_column_set_expand (column, TRUE);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);
column = gtk_tree_view_column_new ();