using gtk_entry_get_text in a Glade text widget

I just started using Glade and GtkBuilder, and I am not sure why I am unable to get the text entered in an Entry widget.

Here is my GtkBuilder file:

login-prompt.xml

I have a library file that is in charge of displaying the UI from the XML file above, as well as its handler.

gui-login.c

When debugging, I check the values returned from gtk_entry_get_text() in the 'username' and 'password' variables, and they are always empty strings.

If anyone has insight into what I am missing, that would be great.
sctccommAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fridomCEO/ProgrammerCommented:
Would you mind to send us compilable code? One has to setup all things to just get it compiled and than it is not even run...
0
sctccommAuthor Commented:
Actually, I was able to figure out what was wrong.

I was using the builder file again to retrieve the GtkEntry.  But when doing this it does not point to the widgets already created, instead it creates new widgets.

That was the problem.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sctccommAuthor Commented:
This is the problem that caused the issue that I reported.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.