mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
listbox: Add _append
To have easy replacement API for gtk_container_add.
This commit is contained in:
parent
b37b85333d
commit
f5af18738b
@ -257,6 +257,7 @@ GtkListBoxUpdateHeaderFunc
|
|||||||
|
|
||||||
gtk_list_box_new
|
gtk_list_box_new
|
||||||
gtk_list_box_prepend
|
gtk_list_box_prepend
|
||||||
|
gtk_list_box_append
|
||||||
gtk_list_box_insert
|
gtk_list_box_insert
|
||||||
gtk_list_box_remove
|
gtk_list_box_remove
|
||||||
gtk_list_box_select_row
|
gtk_list_box_select_row
|
||||||
|
@ -2584,6 +2584,22 @@ gtk_list_box_prepend (GtkListBox *box,
|
|||||||
gtk_list_box_insert (box, child, 0);
|
gtk_list_box_insert (box, child, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_list_box_append:
|
||||||
|
* @box: a #GtkListBox
|
||||||
|
* @child: the #GtkWidget to add
|
||||||
|
*
|
||||||
|
* Append a widget to the list. If a sort function is set, the widget will
|
||||||
|
* actually be inserted at the calculated position and this function has the
|
||||||
|
* same effect of gtk_container_add().
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
gtk_list_box_append (GtkListBox *box,
|
||||||
|
GtkWidget *child)
|
||||||
|
{
|
||||||
|
gtk_list_box_insert (box, child, -1);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_list_box_insert:
|
* gtk_list_box_insert:
|
||||||
* @box: a #GtkListBox
|
* @box: a #GtkListBox
|
||||||
|
@ -168,6 +168,9 @@ GDK_AVAILABLE_IN_ALL
|
|||||||
void gtk_list_box_prepend (GtkListBox *box,
|
void gtk_list_box_prepend (GtkListBox *box,
|
||||||
GtkWidget *child);
|
GtkWidget *child);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
void gtk_list_box_append (GtkListBox *box,
|
||||||
|
GtkWidget *child);
|
||||||
|
GDK_AVAILABLE_IN_ALL
|
||||||
void gtk_list_box_insert (GtkListBox *box,
|
void gtk_list_box_insert (GtkListBox *box,
|
||||||
GtkWidget *child,
|
GtkWidget *child,
|
||||||
int position);
|
int position);
|
||||||
|
Loading…
Reference in New Issue
Block a user