summaryrefslogtreecommitdiff
path: root/new/newcontrol_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/newcontrol_unix.c')
-rw-r--r--new/newcontrol_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/new/newcontrol_unix.c b/new/newcontrol_unix.c
index feedafe..5779af2 100644
--- a/new/newcontrol_unix.c
+++ b/new/newcontrol_unix.c
@@ -40,10 +40,10 @@ static void singleSetParent(uiControl *c, uintptr_t parent)
static void singleRemoveParent(uiControl *c)
{
singleWidget *s = (singleWidget *) (c->internal);
- uintptr_t oldparent;
+ uiParent *oldparent;
oldparent = s->parent;
- s->parent = 0;
+ s->parent = NULL;
gtk_container_remove(GTK_CONTAINER(oldparent), s->immediate);
updateParent(oldparent);
}