[Glade-users] How to compare "entry" input to string?
- From: gladeisintriguing at yahoo.com (Bob Jones)
- Subject: [Glade-users] How to compare "entry" input to string?
- Date: Mon Nov 7 09:39:42 2005
I'm trying to compare an "entry" to a string with the
following:
GtkWidget * entry = lookup_widget(GTK_WIDGET(button),
"entry2");
if(entry=="Test")
{
g_print("Comparison triggered.");
}
Unfortunately it doesn't work... I found this message
along the same line:
http://mail.gnome.org/archives/gtk-list/2003-August/msg00196.html
but it didn't answer my question...
Why can't "text entry" be compared to a string? What
is the simplest way to check if the text entered in
the entry is a particular string? Thanks!
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]