Forum: Ruby-Gnome 2 How to use Pango::Attribute stuff?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5c4533f23a9d7d67ffe1ea5539b4130b?d=identicon&s=25 Magicloud Magiclouds (Guest)
on 2009-02-27 03:17
(Received via mailing list)
Hi,
  With C or pygtk, I could set a foreground attribute with index. But as
it
turns out, in ruby-gtk, I cannot, since there is no way to change the
index.

  So, any idea how to make part of the whole text in another color with
pango layout?

Thanks.
E63ceac0a4a9a299a984f4ccc86fc3a4?d=identicon&s=25 Geoff Youngs (Guest)
on 2009-02-27 12:32
(Received via mailing list)
Attachment: pango-attribute-set-index.patch (1 KB)
Sorry - I noticed this a couple of weeks ago and hadn't got around to
submitting a patch.

2009/2/27 Magicloud Magiclouds <magicloud.magiclouds@gmail.com>
5c4533f23a9d7d67ffe1ea5539b4130b?d=identicon&s=25 Magicloud Magiclouds (Guest)
on 2009-02-28 15:45
(Received via mailing list)
I see. Thanks for the hard work. And one another thing, something about
file
system changed in the new version of gtk2, so ruby-gtk failed building
with
the latest gtk2.

2009/2/27 Geoff Youngs <g@intersect-uk.co.uk>
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-03-07 14:59
(Received via mailing list)
Hi,

In <825a64570902270330x7e9c0915i415f90fd316966ee@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] How to use Pango::Attribute stuff?" on
Fri, 27 Feb 2009 11:30:51 +0000,
  Geoff Youngs <g@intersect-uk.co.uk> wrote:

> Sorry - I noticed this a couple of weeks ago and hadn't got around to
> submitting a patch.

I've added the features described in your patch.


Thanks,
--
kou
47ec883bac92428a085435c631166154?d=identicon&s=25 Jeff Turner (jeffturner)
on 2009-04-23 08:36
This topic is locked and can not be replied to.