aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-col.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@helixcode.com>2000-11-25 12:25:01 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-11-25 12:25:01 +0800
commit0c3908d771f165fdee675c5595986f113a06de86 (patch)
treeba9f8f262a8956c251afc98757fa42f9a5ea45c2 /widgets/table/e-table-col.c
parentf58d47f9b3244b2c994b54bfe0d7ccfde6ba29f5 (diff)
downloadgsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.tar
gsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.tar.gz
gsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.tar.bz2
gsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.tar.lz
gsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.tar.xz
gsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.tar.zst
gsoc2013-evolution-0c3908d771f165fdee675c5595986f113a06de86.zip
inline documentation added.
2000-11-24 Miguel de Icaza <miguel@helixcode.com> * e-table-header.c: inline documentation added. * e-table-col.c Added inline documentation. * e-table-model.c: Added some inline documentation. svn path=/trunk/; revision=6664
Diffstat (limited to 'widgets/table/e-table-col.c')
-rw-r--r--widgets/table/e-table-col.c57
1 files changed, 55 insertions, 2 deletions
diff --git a/widgets/table/e-table-col.c b/widgets/table/e-table-col.c
index 0ac588972f..86bb175234 100644
--- a/widgets/table/e-table-col.c
+++ b/widgets/table/e-table-col.c
@@ -31,9 +31,9 @@ etc_destroy (GtkObject *object)
gtk_object_unref (GTK_OBJECT(etc->ecell));
if (etc->is_pixbuf)
- gdk_pixbuf_unref (etc->pixbuf);
+ gdk_pixbuf_unref (etc->pixbuf);
else
- g_free (etc->text);
+ g_free (etc->text);
(*parent_class->destroy)(object);
}
@@ -89,6 +89,32 @@ e_table_col_init (ETableCol *etc)
E_MAKE_TYPE(e_table_col, "ETableCol", ETableCol, e_table_col_class_init, e_table_col_init, PARENT_TYPE);
+/**
+ * e_table_col_new:
+ * @col_idx: the column we represent in the model
+ * @text: a title for this column
+ * @expansion: FIXME
+ * @min_width: minimum width in pixels for this column
+ * @ecell: the renderer to be used for this column
+ * @compare: comparision function for the elements stored in this column
+ * @resizable: whether the column can be resized interactively by the user
+ *
+ * The ETableCol represents a column to be used inside an ETable. The
+ * ETableCol objects are inserted inside an ETableHeader (which is just a collection
+ * of ETableCols). The ETableHeader is the definition of the order in which
+ * columns are shown to the user.
+ *
+ * The @text argument is the the text that will be shown as a header to the
+ * user. @col_idx reflects where the data for this ETableCol object will
+ * be fetch from an ETableModel. So even if the user changes the order
+ * of the columns being viewed (the ETableCols in the ETableHeader), the
+ * column will always point to the same column inside the ETableModel.
+ *
+ * The @ecell argument is an ECell object that needs to know how to render the
+ * data in the ETableModel for this specific row.
+ *
+ * Returns: the newly created ETableCol object.
+ */
ETableCol *
e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
ECell *ecell, GCompareFunc compare, gboolean resizable)
@@ -123,6 +149,33 @@ e_table_col_new (int col_idx, const char *text, double expansion, int min_width,
return etc;
}
+/**
+ * e_table_col_new_with_pixbuf:
+ * @col_idx: the column we represent in the model
+ * @pixbuf: the image to be used for the header
+ * @text: a title for this column
+ * @expansion: FIXME
+ * @min_width: minimum width in pixels for this column
+ * @ecell: the renderer to be used for this column
+ * @compare: comparision function for the elements stored in this column
+ * @resizable: whether the column can be resized interactively by the user
+ *
+ * The ETableCol represents a column to be used inside an ETable. The
+ * ETableCol objects are inserted inside an ETableHeader (which is just a collection
+ * of ETableCols). The ETableHeader is the definition of the order in which
+ * columns are shown to the user.
+ *
+ * The @text argument is the the text that will be shown as a header to the
+ * user. @col_idx reflects where the data for this ETableCol object will
+ * be fetch from an ETableModel. So even if the user changes the order
+ * of the columns being viewed (the ETableCols in the ETableHeader), the
+ * column will always point to the same column inside the ETableModel.
+ *
+ * The @ecell argument is an ECell object that needs to know how to render the
+ * data in the ETableModel for this specific row.
+ *
+ * Returns: the newly created ETableCol object.
+ */
ETableCol *
e_table_col_new_with_pixbuf (int col_idx, GdkPixbuf *pixbuf, double expansion, int min_width,
ECell *ecell, GCompareFunc compare, gboolean resizable)