summaryrefslogtreecommitdiffhomepage
path: root/mixgtk/mixgtk_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixgtk/mixgtk_device.c')
-rw-r--r--mixgtk/mixgtk_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mixgtk/mixgtk_device.c b/mixgtk/mixgtk_device.c
index 274d5eb..07615fb 100644
--- a/mixgtk/mixgtk_device.c
+++ b/mixgtk/mixgtk_device.c
@@ -224,11 +224,11 @@ static void
destroy_ (mix_device_t *dev)
{
struct mixgtk_device_t *gtkdev = (struct mixgtk_device_t *)dev;
- gtk_notebook_remove_page (GTK_NOTEBOOK (container_), gtkdev->pos);
- gtk_widget_destroy (gtkdev->widget);
if (MODES_[dev->type] == mix_dev_BIN)
gtk_widget_destroy (((struct mixgtk_bin_device_t *)dev)->scroll);
+ gtk_widget_destroy (gtkdev->widget);
(DEF_DEV_VTABLE_->destroy) (dev);
+ gtk_notebook_remove_page (GTK_NOTEBOOK (container_), gtkdev->pos);
--last_pos_;
}