Switched out calls to g_error() for calls to complain().
This commit is contained in:
parent
1abd5ebb4c
commit
d0c0188ef9
|
@ -170,8 +170,7 @@ static void onDestroy(GtkWidget *widget, gpointer data)
|
||||||
singleWidget *s = (singleWidget *) data;
|
singleWidget *s = (singleWidget *) data;
|
||||||
|
|
||||||
if (!s->canDestroy)
|
if (!s->canDestroy)
|
||||||
// TODO switch to complain()
|
complain("trying to destroy control with singleWidget at %p before uiControlDestroy()", s);
|
||||||
g_error("trying to destroy control with singleWidget at %p before uiControlDestroy()", s);
|
|
||||||
uiFree(s);
|
uiFree(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,7 @@ static void uipParent_dispose(GObject *obj)
|
||||||
|
|
||||||
// don't free mainControl here; that should have been done by uiParentDestroy()
|
// don't free mainControl here; that should have been done by uiParentDestroy()
|
||||||
if (!p->canDestroy)
|
if (!p->canDestroy)
|
||||||
// TODO switch to complain()
|
complain("attempt to dispose uiParent with uipParent at %p before uiParentDestroy()", p);
|
||||||
g_error("attempt to dispose uiParent with uipParent at %p before uiParentDestroy()", p);
|
|
||||||
if (p->children != NULL) {
|
if (p->children != NULL) {
|
||||||
g_ptr_array_unref(p->children);
|
g_ptr_array_unref(p->children);
|
||||||
p->children = NULL;
|
p->children = NULL;
|
||||||
|
@ -58,8 +57,7 @@ static void uipParent_finalize(GObject *obj)
|
||||||
uipParent *p = uipParent(obj);
|
uipParent *p = uipParent(obj);
|
||||||
|
|
||||||
if (!p->canDestroy)
|
if (!p->canDestroy)
|
||||||
// TODO switch to complain()
|
complain("attempt to finalize uiParent with uipParent at %p before uiParentDestroy()", p);
|
||||||
g_error("attempt to finalize uiParent with uipParent at %p before uiParentDestroy()", p);
|
|
||||||
G_OBJECT_CLASS(uipParent_parent_class)->finalize(obj);
|
G_OBJECT_CLASS(uipParent_parent_class)->finalize(obj);
|
||||||
if (options.debugLogAllocations)
|
if (options.debugLogAllocations)
|
||||||
fprintf(stderr, "%p free\n", obj);
|
fprintf(stderr, "%p free\n", obj);
|
||||||
|
|
|
@ -33,8 +33,7 @@ static void onDestroy(GtkWidget *widget, gpointer data)
|
||||||
struct window *w = (struct window *) data;
|
struct window *w = (struct window *) data;
|
||||||
|
|
||||||
if (!w->canDestroy)
|
if (!w->canDestroy)
|
||||||
// TODO switch to complain()
|
complain("attempt to dispose uiWindow at %p before uiWindowDestroy()", w);
|
||||||
g_error("attempt to dispose uiWindow at %p before uiWindowDestroy()", w);
|
|
||||||
uiFree(w);
|
uiFree(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue