Re: changing color of text in a GtkText widget
- From: Dimitar Haralanov <mitko tahoenetworks com>
- To: Martyn Russell <ginxd btopenworld com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: changing color of text in a GtkText widget
- Date: Tue, 1 Oct 2002 16:36:05 -0700
On Tue, 01 Oct 2002 20:24:37 +0100
Martyn Russell wrote:
> Dimitar Haralanov wrote:
>
> > Hi, I am trying to change the color of some of the text in a
GtkText
> >widget. I have found a way to do it in the case when I am filling
in the
> >text but what I am trying to do is re-color some of the text after
it
> >has already been filled.
> >
> > Any suggestions/help?
> >
> > Thanx
> > -- Mitko
> >
> >
> >
> Have a look at the 'gtk-demo' example. This is a pretty good
example. If
> you're still stuck, come back and I will assist...
>
> Regards,
>
> Martyn
>
>
I actually figured it out. I found an example in the source code of my
mail program!!! What it did is to allocated the needed color, find the
text, delete, and the re-insert it. when the text gets re-inserted, it
is with the new color.
thanx
-- Mitko
--
========================================================================
__ __ __________________ _________
/ |/ |/ /__/__ ___/ |/ / / Dimitar Haralanov
/ / / / / / / / / Software Engineer
/ / / / / / / / /\ \ / / Tahoe Networks
/___/___/__/__/ /__/ /__/ |__|___/ mitko tahoenetworks com
========================================================================
GPG Fingerprint: 21C1 8244 93F3 F2E9 013C 0C12 70DC C58E 6337 ABD1
-----------------------------------------------------------------------
-You have an unusual equipment for success. Be sure to use it properly.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]