[gtk+/wip/baseline2] Document gtk_grid_set/get_row_baseline_position:



commit a4f1bc97a5eaecec244c44abe7dc1a3630f6f496
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Mar 26 15:40:32 2013 +0100

    Document gtk_grid_set/get_row_baseline_position:

 gtk/gtkgrid.c |   20 ++++++++++++++++++++
 gtk/gtkgrid.h |    2 ++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c
index 1b466c8..ea274bc 100644
--- a/gtk/gtkgrid.c
+++ b/gtk/gtkgrid.c
@@ -2358,6 +2358,15 @@ get_row_properties_or_default (GtkGrid      *grid,
   return &gtk_grid_row_properties_default;
 }
 
+/**
+ * gtk_grid_set_row_baseline_position:
+ * @grid: a #GtkGrid
+ * @row: a row index
+ * @pos: a #GtkBaselinePosition
+ *
+ * Sets how the baseline should be positioned on @row of the
+ * grid, in case that row is assigned more space than is requested.
+ */
 void
 gtk_grid_set_row_baseline_position (GtkGrid            *grid,
                                    gint                row,
@@ -2378,6 +2387,17 @@ gtk_grid_set_row_baseline_position (GtkGrid            *grid,
     }
 }
 
+/**
+ * gtk_grid_get_row_baseline_position:
+ * @grid: a #GtkGrid
+ * @row: a row index
+ *
+ * Returns the baseline position of @row as set
+ * by gtk_grid_set_row_baseline_position() or the default value
+ * %GTK_BASELINE_POSITION_CENTER.
+ *
+ * Returns: the baseline position of @row
+ */
 GtkBaselinePosition
 gtk_grid_get_row_baseline_position (GtkGrid      *grid,
                                    gint          row)
diff --git a/gtk/gtkgrid.h b/gtk/gtkgrid.h
index 3db34d6..c469704 100644
--- a/gtk/gtkgrid.h
+++ b/gtk/gtkgrid.h
@@ -103,9 +103,11 @@ gboolean   gtk_grid_get_column_homogeneous (GtkGrid         *grid);
 void       gtk_grid_set_column_spacing     (GtkGrid         *grid,
                                             guint            spacing);
 guint      gtk_grid_get_column_spacing     (GtkGrid         *grid);
+GDK_AVAILABLE_IN_3_10
 void       gtk_grid_set_row_baseline_position (GtkGrid      *grid,
                                               gint          row,
                                               GtkBaselinePosition pos);
+GDK_AVAILABLE_IN_3_10
 GtkBaselinePosition gtk_grid_get_row_baseline_position (GtkGrid      *grid,
                                                        gint          row);
 void       gtk_grid_set_baseline_row       (GtkGrid         *grid,


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