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

Re: get text from GtkText



ZB wrote:
> 
> dont use the old one.
> 
> read the api at:
> http://developer.gnome.org/doc/API/gtk/gtkeditable.html#GTK-EDITABLE-GET-CHARS
> 
> you want to use "gtk_editable_get_chars"

Will the new one Text Widget replace the current one in next versions
with the same name?? Or it will be called something new like
Gtk_new_Text?
 
> Syntax is
> 
> gchar *tmp;
> 
> tmp = gtk_editable_get_chars (GTK_EDITABLE(WIDGET), 0,
> -1)
> 
> printf ("This is my text %s\n", tmp);
> 
> g_free(tmp);
> 
> WIDGET is the widget you created.
> 
> Zev.

Thank You!

-- 
Maciej Hrebien




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