diff options
author | William Jon McCann <william.jon.mccann@gmail.com> | 2014-02-04 21:00:58 -0500 |
---|---|---|
committer | William Jon McCann <william.jon.mccann@gmail.com> | 2014-02-04 21:00:58 -0500 |
commit | 3b3d8ca45697781bf1a191d248a7d9d4cb5ebfe2 (patch) | |
tree | 12197053b6fc681aa2ce39258cf2a3b92ee639f5 /gtk/gtkcelllayout.c | |
parent | c6ef8bdc9c128c4b91a000221a9f4e8e9b525534 (diff) | |
download | gtk+-3b3d8ca45697781bf1a191d248a7d9d4cb5ebfe2.tar.gz |
docs: Use "#" for refsect2 instead of ##
Diffstat (limited to 'gtk/gtkcelllayout.c')
-rw-r--r-- | gtk/gtkcelllayout.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c index 777a32cd38..9a43649ef3 100644 --- a/gtk/gtkcelllayout.c +++ b/gtk/gtkcelllayout.c @@ -34,7 +34,7 @@ * gtk_cell_layout_set_cell_data_func() that is called to determine the * value of the attribute for each cell that is rendered. * - * ## GtkCellLayouts as GtkBuildable + * # GtkCellLayouts as GtkBuildable * * Implementations of GtkCellLayout which also implement the GtkBuildable * interface (#GtkCellView, #GtkIconView, #GtkComboBox, @@ -65,6 +65,7 @@ * <property> elements defined in the normal way. * * Here is a UI definition fragment specifying cell properties: + * * |[ * <object class="GtkTreeViewColumn"> * <child> @@ -77,16 +78,18 @@ * </object> * ]| * - * ## Subclassing GtkCellLayout implementations + * # Subclassing GtkCellLayout implementations * * When subclassing a widget that implements #GtkCellLayout like * #GtkIconView or #GtkComboBox, there are some considerations related * to the fact that these widgets internally use a #GtkCellArea. * The cell area is exposed as a construct-only property by these * widgets. This means that it is possible to e.g. do + * * |[<!-- language="C" --> * combo = g_object_new (GTK_TYPE_COMBO_BOX, "cell-area", my_cell_area, NULL); * ]| + * * to use a custom cell area with a combo box. But construct properties * are only initialized after instance init() * functions have run, which means that using functions which rely on @@ -94,6 +97,7 @@ * cause the default cell area to be instantiated. In this case, a provided * construct property value will be ignored (with a warning, to alert * you to the problem). + * * |[<!-- language="C" --> * static void * my_combo_box_init (MyComboBox *b) @@ -117,6 +121,7 @@ * return g_object_new (MY_TYPE_COMBO_BOX, "cell-area", area, NULL); * } * ]| + * * If supporting alternative cell areas with your derived widget is * not important, then this does not have to concern you. If you want * to support alternative cell areas, you can do so by moving the |