Re: invalid cast from 'GtkButton' to 'GtkEntry'
- From: cecashon aol com
- To: mail michael-buzgaru de, gtk-list gnome org
- Subject: Re: invalid cast from 'GtkButton' to 'GtkEntry'
- Date: Fri, 27 Jan 2017 13:55:14 -0500
You can use the widget to silence the warning.
g_print("Button %s, Entry %s\n", gtk_button_get_label(GTK_BUTTON(widget)), gtk_entry_get_text(GTK_ENTRY(data)));
When you use -Wall and -Wextra the compiler might show you some things that are considered false positives. They are warnings and if you understand why they come up then you might not need to worry about them. If you just use -Wall it compiles without warning.
Check the GCC documentation
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gcc/Warning-Options.html#Warning-Options
and go to -Wall. There is a short description of this. "Note that some warning flags..."
Eric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]