Re: gtk_entry_get_text
- From: Inguva Rajasekhar <ringuva novell com>
- To: Aaron Yang <porsche1904 yahoo com>
- Cc: glade-users lists ximian com, gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: gtk_entry_get_text
- Date: Fri, 14 Jan 2005 11:33:02 +0530
void
on_entry_insert_text (GtkEditable *editable,
gchar *new_text,
gint new_text_length,
gpointer position,
gpointer user_data)
{
const gchar *str;
str = gtk_entry_get_text (GTK_ENTRY (new_text));
new_text is a char pointer not a Widget. hence the segfault.
Looks like you have a GtkEditable widget and not a GtkEntry widget.
So the api to get the inserted text would be
void gtk_editable_get_chars (GtkEditable *editable, gint start, gint
end);
look here:
http://developer.gnome.org/doc/API/gtk/gtkeditable.html#GTK-EDITABLE-GET-CHARS
for more details.
Regards,
Raj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]