[Glade-users] How to compare "entry" input to string?

Bob Jones gladeisintriguing at yahoo.com
Mon Nov 7 08:56:50 EST 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


More information about the Glade-users mailing list