mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2025-03-10 19:11:48 +00:00
24 lines
533 B
C
24 lines
533 B
C
|
|
||
|
#if !defined(INCLUDED_GTKUTIL_CONTAINER_H)
|
||
|
#define INCLUDED_GTKUTIL_CONTAINER_H
|
||
|
|
||
|
#include <gtk/gtkcontainer.h>
|
||
|
|
||
|
inline GtkWidget* container_add_widget(GtkContainer* container, GtkWidget* widget)
|
||
|
{
|
||
|
gtk_container_add(container, widget);
|
||
|
return widget;
|
||
|
}
|
||
|
|
||
|
inline void container_remove(GtkWidget* item, gpointer data)
|
||
|
{
|
||
|
gtk_container_remove(GTK_CONTAINER(data), item);
|
||
|
}
|
||
|
|
||
|
inline void container_remove_all(GtkContainer* container)
|
||
|
{
|
||
|
gtk_container_foreach(container, container_remove, container);
|
||
|
}
|
||
|
|
||
|
#endif
|