Re: GtkTextBox




And you can alway use:

gtk_editable_insert_text (GTK_EDITABLE (yourtextbox),
  newtext,
  length, 
  position);

This is, what the inheritance is good for, isn't it?

Lauris Kaplinski

On Thu, 3 Feb 2000, Loban Rahman wrote:

> > I'm appending text into a GtkText widget. All the functions available
> > (from what I've seen in developer.gnome.org) require me to specify
> > a GdkFont and foreground and background GdkColors while doing so.
> > How do I get the default colors and fonts for the current gtk
> > theme (so that the fonts and colors I use match all the other widgets)?
> 
> Never mind answering this. I took a peek at the source code for this
> function and realized that passing a NULL to those three arguments
> causes the defaults to be used. This ought to be added to the
> documentation.
> 
> 	= L
> 
> 
> /-------------------------------------------------------------------\
> |   LOBAN AMAAN RAHMAN  <-- anagram of -->  AHA! AN ABNORMAL MAN!   |
> |  MSC #763, Caltech, Pasadena, CA 91126, USA. Tel: 1-626-395-1407  |
> |     loban@earthling.net, loban@caltech.edu, http://i.am/loban     |
> \-------------------------------------------------------------------/
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]