summaryrefslogtreecommitdiff
path: root/gtk/gtkflowbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r--gtk/gtkflowbox.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 188b76c562..d5928f6641 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -4073,6 +4073,40 @@ gtk_flow_box_insert_widget (GtkFlowBox *box,
}
/**
+ * gtk_flow_box_prepend:
+ * @box: a `GtkFlowBox
+ * @child: the `GtkWidget` to add
+ *
+ * Adds @widget to the start of @box
+ *
+ * If a sort function is set, the widget will
+ * actually be inserted at the calculated position.
+ */
+void
+gtk_flow_box_prepend (GtkFlowBox *box,
+ GtkWidget *child)
+{
+ gtk_flow_box_insert (box, child, 0);
+}
+
+/**
+ * gtk_flow_box_prepend:
+ * @box: a `GtkFlowBox
+ * @child: the `GtkWidget` to add
+ *
+ * Adds @widget to the end of @box
+ *
+ * If a sort function is set, the widget will
+ * actually be inserted at the calculated position.
+ */
+void
+gtk_flow_box_append (GtkFlowBox *box,
+ GtkWidget *child)
+{
+ gtk_flow_box_insert (box, child, -1);
+}
+
+/**
* gtk_flow_box_insert:
* @box: a `GtkFlowBox`
* @widget: the `GtkWidget` to add