how to use value entered in a text box in gtk?
===

i have a textbox asking for entering a value.how can i capture this entered value and pass on this to other function?

    int main (int argc, char *argv[])
    {
      GtkWidget *window,*table,*label,*entry;
      gtk_init(&argc, &argv);
    
    
      //Create the main window
      window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
      initialize_window(window);
    
    
       /* Create a 1x2 table */
       table = gtk_table_new (1, 2, TRUE);
       gtk_container_add (GTK_CONTAINER (window), table);
    
    
      /* create a new label. */
      label = gtk_label_new ("Enter some text:" );
      //gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
      gtk_table_set_homogeneous(GTK_TABLE (table), TRUE);
      gtk_table_attach_defaults (GTK_TABLE (table), label, 1, 2, 0, 1);
    
    
      //create a text box
    //  entry = gtk_entry_new ();
      gtk_entry_set_max_length (GTK_ENTRY (entry),0);
      gtk_table_attach_defaults (GTK_TABLE (table), entry, 0, 1, 0, 1);
    
    
        gtk_widget_show_all(window);

now i want to use this value entered and pass into some function

