finch/libgnt/gntbox.c

changeset 35920
78b2942f06db
parent 35690
5ef990c032ad
child 36002
31a8779e91d4
--- a/finch/libgnt/gntbox.c	Sat Apr 26 21:08:57 2014 +0200
+++ b/finch/libgnt/gntbox.c	Sat Apr 26 22:07:58 2014 +0200
@@ -677,6 +677,12 @@
 	widget->parent = GNT_WIDGET(b);
 }
 
+void gnt_box_add_widget_in_front(GntBox *b, GntWidget *widget)
+{
+	b->list = g_list_prepend(b->list, widget);
+	widget->parent = GNT_WIDGET(b);
+}
+
 void gnt_box_set_title(GntBox *b, const char *title)
 {
 	char *prev = b->title;

mercurial