aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-tree.c
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-08-16 04:23:12 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-08-16 04:23:12 +0800
commit405b846e5b5ab98ecb0d1a3545df3972df044730 (patch)
tree556cd9dd50d9d272fc0801d625e7333f0bf28aec /widgets/table/e-tree.c
parent0595eace5611dd1c9741f7ea94af96f8c55ddc45 (diff)
downloadgsoc2013-evolution-405b846e5b5ab98ecb0d1a3545df3972df044730.tar.gz
gsoc2013-evolution-405b846e5b5ab98ecb0d1a3545df3972df044730.tar.zst
gsoc2013-evolution-405b846e5b5ab98ecb0d1a3545df3972df044730.zip
extracted from ect_draw (draw_expander): new gtktreeview-like expander
2003-08-15 Mike Kestner <mkestner@ximian.com> * e-cell-tree.c (draw_retro_expander): extracted from ect_draw (draw_expander): new gtktreeview-like expander drawing (ect_draw): draw lines and expanders based on retro_look style prop (adjust_event_position): extracted method from ect_event (event_in_expander): new checks for motion/clicks in expander (ect_event): handle prelight for new expanders * e-table-item.c (eti_init): init new motion col/row (eti_event): synthesize leave_notify events for cells and propogate existing motion events to the cells. * e-tree.c (e_tree_class_init): add retro_look and expander_size style props. svn path=/trunk/; revision=22251
Diffstat (limited to 'widgets/table/e-tree.c')
-rw-r--r--widgets/table/e-tree.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c
index 938fd45136..84b5fb2a95 100644
--- a/widgets/table/e-tree.c
+++ b/widgets/table/e-tree.c
@@ -3292,6 +3292,23 @@ e_tree_class_init (ETreeClass *class)
_( "Always search" ),
FALSE,
G_PARAM_READWRITE));
+
+ gtk_widget_class_install_style_property (widget_class,
+ g_param_spec_boolean ("retro_look",
+ _("Retro Look"),
+ _("Draw lines and +/- expanders."),
+ FALSE,
+ G_PARAM_READABLE));
+
+ gtk_widget_class_install_style_property (widget_class,
+ g_param_spec_int ("expander_size",
+ _("Expander Size"),
+ _("Size of the expander arrow"),
+ 0,
+ G_MAXINT,
+ 10,
+ G_PARAM_READABLE));
+
}
E_MAKE_TYPE(e_tree, "ETree", ETree, e_tree_class_init, e_tree_init, PARENT_TYPE)