p->label->common.font->justify.HJustify = glFontHJustifyCenter;
p->label->common.align = glAlignParent;
/*image */
- p->image = (glCompImage *) 0;
+ p->image = NULL;
p->glyphPos = glButtonGlyphLeft;
return p;
}
p->common.height = h;
p->common.font = glNewFontFromParent((glCompObj *) p, NULL);
- p->text = (char *) 0;
+ p->text = NULL;
p->common.functions.draw = (glcompdrawfunc_t)glCompPanelDraw;
- p->image = (glCompImage *) 0;
+ p->image = NULL;
return p;
}
void glCompSetPanelText(glCompPanel * p, char *t)
s->objcnt = 0;
s->obj = NULL;
s->textureCount = 0;
- s->textures = (glCompTex **) 0;
+ s->textures = NULL;
s->common.font = glNewFontFromParent((glCompObj *) s, NULL);
s->common.compset = (glCompSet *) s;
s->common.functions.mouseover = (glcompmouseoverfunc_t)glCompMouseMove;
if (!pango_parse_markup
(markup_text, -1, '\0', &attr_list, &text, NULL, NULL))
- return (PangoLayout *) 0;
+ return NULL;
layout = pango_layout_new(context);
pango_layout_set_text(layout, text, -1);
pango_layout_set_font_description(layout, desc);