Re: Gtk2::CellRendererText font issue
- From: "Ross McFarland" <rwmcfa1 neces com>
- To: <alas wilma widomaker com>
- Cc: <gtk-perl-list gnome org>
- Subject: Re: Gtk2::CellRendererText font issue
- Date: Fri, 2 May 2003 14:51:02 -0400 (EDT)
this is a gtk thing, i.e. not specific to gtk2-perl. that being said looking
at the code for gtk2 provides (me anyway) with no hope of being able to fix
the problem. they create a text entry and place in the the correct spot,
unfortunately it's up to them to make sure that they take the font of their
parent, if they're not i can't see a way that you can get it to. i would try a
c gtk list and see what they say. if gtk truly isn't setting the font of the
text entry to the font of it's creator then i would personally consider it a
bug.
of course i'm very likely wrong about all of this.
-rm
I have set the font for a Gtk2::TreeView by saying
my $list = Gtk2::TreeView->new($store);
my $renderer = Gtk2::CellRendererText->new;
$renderer->set("editable", 1);
$renderer->set("font", "Monospace 20");
my $i;
for my $col (@cols) {
$list->append_column(
Gtk2::TreeViewColumn->new_with_attributes(
$col,
$renderer,
text => $i++
)
);
}
and it works. Or at least it works until I go to edit a cell. Then the
font drops back to original size. When I am finished editing it jumps back.
Is there some way to set the font size for editing?
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]