gtk+ r21593 - in trunk: . docs/reference/gtk docs/reference/gtk/tmpl gtk



Author: bjornl
Date: Mon Oct  6 21:15:45 2008
New Revision: 21593
URL: http://svn.gnome.org/viewvc/gtk+?rev=21593&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/docs/reference/gtk/gtk-sections.txt
   trunk/docs/reference/gtk/tmpl/gtkcellview.sgml
   trunk/gtk/gtk.symbols
   trunk/gtk/gtkcellview.c
   trunk/gtk/gtkcellview.h

Modified: trunk/docs/reference/gtk/gtk-sections.txt
==============================================================================
--- trunk/docs/reference/gtk/gtk-sections.txt	(original)
+++ trunk/docs/reference/gtk/gtk-sections.txt	Mon Oct  6 21:15:45 2008
@@ -4819,6 +4819,7 @@
 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

Modified: trunk/docs/reference/gtk/tmpl/gtkcellview.sgml
==============================================================================
--- trunk/docs/reference/gtk/tmpl/gtkcellview.sgml	(original)
+++ trunk/docs/reference/gtk/tmpl/gtkcellview.sgml	Mon Oct  6 21:15:45 2008
@@ -90,6 +90,15 @@
 @model: 
 
 
+<!-- ##### FUNCTION gtk_cell_view_get_model ##### -->
+<para>
+
+</para>
+
+ cell_view: 
+ Returns:
+
+
 <!-- ##### FUNCTION gtk_cell_view_set_displayed_row ##### -->
 <para>
 

Modified: trunk/gtk/gtk.symbols
==============================================================================
--- trunk/gtk/gtk.symbols	(original)
+++ trunk/gtk/gtk.symbols	Mon Oct  6 21:15:45 2008
@@ -648,6 +648,7 @@
 #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

Modified: trunk/gtk/gtkcellview.c
==============================================================================
--- trunk/gtk/gtkcellview.c	(original)
+++ trunk/gtk/gtkcellview.c	Mon Oct  6 21:15:45 2008
@@ -887,6 +887,25 @@
 }
 
 /**
+ * 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
  * @path: a #GtkTreePath or %NULL to unset.

Modified: trunk/gtk/gtkcellview.h
==============================================================================
--- trunk/gtk/gtkcellview.h	(original)
+++ trunk/gtk/gtkcellview.h	Mon Oct  6 21:15:45 2008
@@ -62,6 +62,7 @@
 
 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]