[Glade-users] Re: Glade-users Digest, Vol 1, Issue 538
- From: newbie at poczta.gazeta.pl (mw158979)
- Subject: [Glade-users] Re: Glade-users Digest, Vol 1, Issue 538
- Date: Fri May 27 13:49:04 2005
Date: Fri, 27 May 2005 11:57:46 +0530
From: srinivas <srinivas comodo com>
Subject: [Glade-users] gtk_text_entry
To: glade-users lists ximian com
Message-ID: <1117175266.2781.14.camel@localhost.localdomain>
Content-Type: text/plain
hi all;
i am developing application with glade and c. i have a text_entry
widget, and a button widget in different layouts. when i enter the text,
and gave enter the text entered is printed to the console according to
the pgm i given.
now i would like to get the same with button widget. when i press
the next_button it has to check whether text has entered to the
text_entry or not, if entered it has to print to the console. if not
warning msg will pop up.
the main pbm is when i tried to call the function to callbacks
using lookup, i can't able to get the value entry widget value.
how can i get this functionality;
Hi,
Give us your code next time, it would be easier for all of us.
I assume that you have defined a callback for your button,
for signal pressed/released or similair. What do you do in that
function? To get an entry contents there is a function like
gtk_entry_get_text. Check details at www.gtk.org/api .
It takes as the first parameter widget handle. You can obtain it
by lookup_widget function, giving it another handle of a widget
in the same window. Do you get that handle as non-null value?
Another way to get the handle is to define it as 'user_data'.
If you put the widgets name in apropriate field at callbacks
section, you get it in a callback (as a gpointer).
mw158979
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]