[gtk+/treeview-refactor] Clarify start_pos parameter gtk_tree_view_column_cell_get_position
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Clarify start_pos parameter gtk_tree_view_column_cell_get_position
- Date: Sun, 5 Dec 2010 17:20:48 +0000 (UTC)
commit 64ddd3f40f911372898f661541cbe7beabaa92eb
Author: Kristian Rietveld <kris gtk org>
Date: Sun Dec 5 17:04:52 2010 +0100
Clarify start_pos parameter gtk_tree_view_column_cell_get_position
By renaming it to x_offset.
gtk/gtktreeviewcolumn.c | 8 ++++----
gtk/gtktreeviewcolumn.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index f104d1c..6b86fd3 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -2915,7 +2915,7 @@ _gtk_tree_view_column_cell_get_dirty (GtkTreeViewColumn *tree_column)
* gtk_tree_view_column_cell_get_position:
* @tree_column: a #GtkTreeViewColumn
* @cell_renderer: a #GtkCellRenderer
- * @start_pos: return location for the horizontal position of @cell within
+ * @x_offset: return location for the horizontal position of @cell within
* @tree_column, may be %NULL
* @width: return location for the width of @cell, may be %NULL
*
@@ -2928,7 +2928,7 @@ _gtk_tree_view_column_cell_get_dirty (GtkTreeViewColumn *tree_column)
gboolean
gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell_renderer,
- gint *start_pos,
+ gint *x_offset,
gint *width)
{
GtkTreeViewColumnPrivate *priv;
@@ -2948,8 +2948,8 @@ gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column,
&zero_cell_area,
&allocation);
- if (start_pos)
- *start_pos = allocation.x;
+ if (x_offset)
+ *x_offset = allocation.x;
if (width)
*width = allocation.width;
diff --git a/gtk/gtktreeviewcolumn.h b/gtk/gtktreeviewcolumn.h
index ac2807b..c056898 100644
--- a/gtk/gtktreeviewcolumn.h
+++ b/gtk/gtktreeviewcolumn.h
@@ -210,7 +210,7 @@ void gtk_tree_view_column_focus_cell (GtkTreeViewCol
GtkCellRenderer *cell);
gboolean gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell_renderer,
- gint *start_pos,
+ gint *x_offset,
gint *width);
void gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column);
GtkWidget *gtk_tree_view_column_get_tree_view (GtkTreeViewColumn *tree_column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]