aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2003-03-01 02:43:30 +0800
committerRodney Dawes <dobey@src.gnome.org>2003-03-01 02:43:30 +0800
commit2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7 (patch)
tree7d489b76c20fbdacab744cdd391c07856fead1cd
parent310ef7be6984d02b7d01ff915a9d47b94c34dbeb (diff)
downloadgsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.tar
gsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.tar.gz
gsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.tar.bz2
gsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.tar.lz
gsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.tar.xz
gsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.tar.zst
gsoc2013-evolution-2ee1eb9078b7e5a356fe2c9cfb6782bcf005bdb7.zip
Add style_set to update list properly (et_canvas_realize): Remove this as
2003-02-26 Rodney Dawes <dobey@ximian.com> * e-tree.c (et_canvas_style_set): Add style_set to update list properly (et_canvas_realize): Remove this as it's no longer needed with support for the style_set implementation svn path=/trunk/; revision=20108
-rw-r--r--widgets/table/e-tree.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 4052d6e6fa..b3e73523d5 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -976,11 +976,11 @@ et_build_item (ETree *et)
}
static void
-et_canvas_realize (GtkWidget *canvas, ETree *e_tree)
+et_canvas_style_set (GtkWidget *widget, GtkStyle *prev_style)
{
gnome_canvas_item_set(
- e_tree->priv->white_item,
- "fill_color_gdk", &GTK_WIDGET(e_tree->priv->table_canvas)->style->base[GTK_STATE_NORMAL],
+ E_TREE(widget)->priv->white_item,
+ "fill_color_gdk", &widget->style->base[GTK_STATE_NORMAL],
NULL);
}
@@ -1097,9 +1097,6 @@ e_tree_setup_table (ETree *e_tree)
g_signal_connect (e_tree->priv->white_item, "event",
G_CALLBACK (white_item_event), e_tree);
g_signal_connect (
- e_tree->priv->table_canvas, "realize",
- G_CALLBACK(et_canvas_realize), e_tree);
- g_signal_connect (
gnome_canvas_root (e_tree->priv->table_canvas), "event",
G_CALLBACK(et_canvas_root_event), e_tree);
@@ -3003,7 +3000,7 @@ e_tree_class_init (ETreeClass *class)
widget_class->grab_focus = et_grab_focus;
widget_class->unrealize = et_unrealize;
-
+ widget_class->style_set = et_canvas_style_set;
widget_class->focus = et_focus;
class->cursor_change = NULL;