Commit 36c545b0 authored by Björn Lindqvist's avatar Björn Lindqvist Committed by Björn Lindqvist

Bug 539464 – gtk_cell_view_get_model is missing in GtkCellView

2008-10-06  Björn Lindqvist  <bjourne@gmail.com>

	Bug 539464 – gtk_cell_view_get_model is missing in GtkCellView

	* gtk/gtkcellview.c (gtk_cell_view_get_model): Add
	gtk_cell_view_get_model.

svn path=/trunk/; revision=21593
parent 29c097a5
2008-10-06 Björn Lindqvist <bjourne@gmail.com>
Bug 539464 – gtk_cell_view_get_model is missing in GtkCellView
* gtk/gtkcellview.c (gtk_cell_view_get_model): Add
gtk_cell_view_get_model.
2008-10-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintunixdialog.c (create_main_page): Show the tooltip
......
......@@ -4819,6 +4819,7 @@ gtk_cell_view_new_with_text
gtk_cell_view_new_with_markup
gtk_cell_view_new_with_pixbuf
gtk_cell_view_set_model
gtk_cell_view_get_model
gtk_cell_view_set_displayed_row
gtk_cell_view_get_displayed_row
gtk_cell_view_get_size_of_row
......
......@@ -90,6 +90,15 @@ and drag and drop.
@model:
<!-- ##### FUNCTION gtk_cell_view_get_model ##### -->
<para>
</para>
@cell_view:
@Returns:
<!-- ##### FUNCTION gtk_cell_view_set_displayed_row ##### -->
<para>
......
......@@ -648,6 +648,7 @@ gtk_cell_renderer_toggle_set_radio
#if IN_FILE(__GTK_CELL_VIEW_C__)
gtk_cell_view_get_cell_renderers
gtk_cell_view_get_displayed_row
gtk_cell_view_get_model
gtk_cell_view_get_size_of_row
gtk_cell_view_get_type G_GNUC_CONST
gtk_cell_view_new
......
......@@ -886,6 +886,25 @@ gtk_cell_view_set_model (GtkCellView *cell_view,
g_object_ref (cell_view->priv->model);
}
/**
* gtk_cell_view_get_model:
* @cell_view: a #GtkCellView
*
* Returns the model for @cell_view. If no model is used %NULL is
* returned.
*
* Returns: a #GtkTreeModel used or %NULL
*
* Since: 2.16
**/
GtkTreeModel *
gtk_cell_view_get_model (GtkCellView *cell_view)
{
g_return_val_if_fail (GTK_IS_CELL_VIEW (cell_view), NULL);
return cell_view->priv->model;
}
/**
* gtk_cell_view_set_displayed_row:
* @cell_view: a #GtkCellView
......
......@@ -62,6 +62,7 @@ GtkWidget *gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf)
void gtk_cell_view_set_model (GtkCellView *cell_view,
GtkTreeModel *model);
GtkTreeModel *gtk_cell_view_get_model (GtkCellView *cell_view);
void gtk_cell_view_set_displayed_row (GtkCellView *cell_view,
GtkTreePath *path);
GtkTreePath *gtk_cell_view_get_displayed_row (GtkCellView *cell_view);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment