Passing Values ?



I am having trouble capturing the text form a GtkEntry control.

The code I am using is as follows:

        gchar m;
        GtkWidget *entry_connect;
        m=gtk_entry_get_text(entry_connect);

When run it returns a critical error.

Also how do I know that 'entry_connect' is in fact the same one which
has been declared in another header file:

GtkWidget *create_commswindow (void)
{
  GtkWidget *commswindow;
  GtkWidget *entry_connect;
  ...
}


Am I trying to access the right control as from what I can see is that
'entry_connect' is a local variable.

Pete





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