[GB.GTK]
* 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:
parent
ea21ffff96
commit
a54b7b9a1a
1 changed files with 12 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue