[evolution] Remove unused e_tree_drag_highlight().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove unused e_tree_drag_highlight().
- Date: Thu, 20 Jun 2013 19:41:53 +0000 (UTC)
commit 1aaa09f103379264b89c38873bb8e00f53ecd876
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jun 20 09:36:38 2013 -0400
Remove unused e_tree_drag_highlight().
.../evolution-util/evolution-util-sections.txt | 1 -
e-util/e-tree.c | 62 --------------------
e-util/e-tree.h | 3 -
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 59cdac4..1c784f8 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 29f8d6f..8c89188 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 829cb77..da16080 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]