[Glade-users] gtk/glade programming

Günther Mittermayer g_mitter@web.de
Thu, 25 Sep 2003 16:12:04 +0200


Glad it worked,

if you mean by "append", something as adding a string to the end, as strcat would, I think there is no function to it, but you can do it indirectly, copying the contents to a string, and setting it back to the GtkTextBuffer..

check out:
http://developer.gnome.org/doc/API/2.0/gtk/GtkTextBuffer.html 

for all related functions.

Günther.


Seb James <seb@hypercubesystems.co.uk> schrieb am 25.09.03 14:08:33:
> 
> On Thu, 2003-09-25 at 13:00, =?iso-8859-1?Q? G=FCnther=20Mittermayer ?=
> wrote:
> > 
> > > /* Plus output it to the console window: */
> > > gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (c=
onsole_textview)),
> > > _("Buffer text"), -1);
> > > /* How to replace "Buffer text" with "%s", buf ? */
> > 
> > How about a simple buf instead of the whole _() thing? like that:
> > gtk_text_buffer_set_text (gtk_text_view_get_buffer (GTK_TEXT_VIEW (con=
sole_textview)), buf, -1);
> > 
> > 
> Thanks Guenter, this helps. Can I append text to a gtk_text_buffer, by
> the way, do you know?
> 
> Seb
> 
> 
> _______________________________________________
> Glade-users maillist - Glade-users@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users


______________________________________________________________________________
Jetzt neu bei WEB.DE - Call by Call vom Handy. Fuenfmal mehr mobil
telefonieren. Jetzt ausprobieren! http://handybycall.web.de/?mc=021101