aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-20 21:36:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-21 03:31:51 +0800
commit1aaa09f103379264b89c38873bb8e00f53ecd876 (patch)
tree92eda97d19158704840f8544280211b81e7907fb
parent40ee24e43956fb1a0c8c76e09f7a61bbc06d32bc (diff)
downloadgsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.tar
gsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.tar.gz
gsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.tar.bz2
gsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.tar.lz
gsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.tar.xz
gsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.tar.zst
gsoc2013-evolution-1aaa09f103379264b89c38873bb8e00f53ecd876.zip
Remove unused e_tree_drag_highlight().
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt1
-rw-r--r--e-util/e-tree.c62
-rw-r--r--e-util/e-tree.h3
3 files changed, 0 insertions, 66 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index 59cdac4ca2..1c784f8925 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4203,7 +4203,6 @@ e_tree_get_cell_geometry
e_tree_get_model
e_tree_get_selection_model
e_tree_get_table_adapter
-e_tree_drag_highlight
e_tree_drag_unhighlight
e_tree_drag_source_set
e_tree_drag_source_unset
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index 29f8d6f3ea..8c891889af 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -2546,68 +2546,6 @@ struct _GtkDragSourceInfo
/* Drag & drop stuff. */
-/**
- * e_tree_drag_highlight:
- * @tree:
- * @row:
- * @col:
- *
- * Set col to -1 to highlight the entire row.
- * Set row to -1 to turn off the highlight.
- */
-void
-e_tree_drag_highlight (ETree *tree,
- gint row,
- gint col)
-{
- GtkAllocation allocation;
- GtkAdjustment *adjustment;
- GtkScrollable *scrollable;
- GtkStyle *style;
-
- g_return_if_fail (E_IS_TREE (tree));
-
- scrollable = GTK_SCROLLABLE (tree->priv->table_canvas);
- style = gtk_widget_get_style (GTK_WIDGET (tree));
- gtk_widget_get_allocation (GTK_WIDGET (scrollable), &allocation);
-
- if (row != -1) {
- gint x, y, width, height;
- if (col == -1) {
- e_tree_get_cell_geometry (tree, row, 0, &x, &y, &width, &height);
- x = 0;
- width = allocation.width;
- } else {
- e_tree_get_cell_geometry (tree, row, col, &x, &y, &width, &height);
- adjustment = gtk_scrollable_get_hadjustment (scrollable);
- x += gtk_adjustment_get_value (adjustment);
- }
-
- adjustment = gtk_scrollable_get_vadjustment (scrollable);
- y += gtk_adjustment_get_value (adjustment);
-
- if (tree->priv->drop_highlight == NULL) {
- tree->priv->drop_highlight = gnome_canvas_item_new (
- gnome_canvas_root (tree->priv->table_canvas),
- gnome_canvas_rect_get_type (),
- "fill_color", NULL,
- "outline_color_gdk", &style->fg[GTK_STATE_NORMAL],
- NULL);
- }
-
- gnome_canvas_item_set (
- tree->priv->drop_highlight,
- "x1", (gdouble) x,
- "x2", (gdouble) x + width - 1,
- "y1", (gdouble) y,
- "y2", (gdouble) y + height - 1,
- NULL);
- } else {
- g_object_run_dispose (G_OBJECT (tree->priv->drop_highlight));
- tree->priv->drop_highlight = NULL;
- }
-}
-
void
e_tree_drag_unhighlight (ETree *tree)
{
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index 829cb77820..da160805e9 100644
--- a/e-util/e-tree.h
+++ b/e-util/e-tree.h
@@ -251,9 +251,6 @@ ETreeTableAdapter *
/* Drag & drop stuff. */
/* Target */
-void e_tree_drag_highlight (ETree *tree,
- gint row,
- gint col); /* col == -1 to highlight entire row. */
void e_tree_drag_unhighlight (ETree *tree);
/* Source side */