* BUG: Setting TabStrip.Font property works like in gb.qt4 now.


git-svn-id: svn://localhost/gambas/trunk@3517 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2011-01-30 18:03:24 +00:00
parent ea21ffff96
commit a54b7b9a1a

View file

@ -265,9 +265,18 @@ void gTabStripPage::updateColors()
void gTabStripPage::updateFont() void gTabStripPage::updateFont()
{ {
gFont *fnt = parent->textFont(); PangoFontDescription *desc = NULL;
gtk_widget_modify_font(widget, fnt ? fnt->desc() : NULL); gFont *fnt;
gtk_widget_modify_font(label, fnt ? fnt->desc() : NULL);
fnt = parent->textFont();
if (!fnt)
fnt = parent->font();
if (fnt)
desc = fnt->desc();
gtk_widget_modify_font(widget, desc);
gtk_widget_modify_font(label, desc);
} }
void gTabStripPage::setText(char *text) void gTabStripPage::setText(char *text)