I am working on trying to get Text input from my text entry fields to an array. I have 8 text entry fields and have been following many of the tutorials. So far from what I gathered . I have
void on_Save_and_Process_button_clicked(GTKButton *button, GtkEntry *text){
GTKWidget *entry1 = lookup_widget(text,"entry1");
Const g char *entry_text1 = gtk_entry _get_text(GTK_ENTRY(entry1));
}
I am getting an warning in:
GTKWidget *entry1 = lookup_widget(text,"entry1");
That says:
warning: intialization make pointer from integer without a cast
This my first GTK project. Any help,guidance, links to tutorials of similar projects would be much appreciated.
The function lookup_widget
was part of Glade 2, a long time ago. Back then, Glade would generate C code, instead of an XML file, and that function was included in the generated code.
You can't even run Glade 2 anymore most likely, so the tutorial you are using is not going to help you very much. Use a more modern tutorial, such as the one included in the official GTK 3.x documentation.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.