[Glade-users] gtk_entry_get_text



Stop! new_text is already the new text in the entry.
It should be like this, I think:

  void
  on_entry_insert_text (GtkEditable *editable,
                                  gchar          *new_text,
                                  gint              new_text_length,
                                  gpointer        position,
                                  gpointer        user_data)
  {
    printf("data entered = %s\n", new_text);
    return;
  }

Aaron Yang wrote:
hi everyone,
 
  I've created an entry box and when i type something in the box, I 
would like to get the information and display it.
regards

-- 
Dmitry Kostenko
.NET Developer




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