gtk3_4 : Add method remove_widget to GtkContainer
authorRomain Chanoir <chanoir.romain@courrier.uqam.ca>
Mon, 27 Jan 2014 12:08:13 +0000 (07:08 -0500)
committerRomain Chanoir <chanoir.romain@courrier.uqam.ca>
Mon, 27 Jan 2014 12:08:13 +0000 (07:08 -0500)
Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

lib/gtk3_4/gtk_core.nit

index d36b905..2b65077 100644 (file)
@@ -116,6 +116,10 @@ extern GtkContainer `{GtkContainer *`}
        fun add( widget : GtkWidget ) is extern `{
                gtk_container_add( recv, widget );
        `}
+       # Remove the widget from the container
+       fun remove_widget( widget : GtkWidget ) is extern `{
+               gtk_container_remove( recv, widget );
+       `}
 end
 
 #A container with just one child