[Glade-users] gtk_toogle signal
- From: srinivas at comodo.com (srinivas)
- Subject: [Glade-users] gtk_toogle signal
- Date: Fri Jun 24 02:47:05 2005
hi;
i have a doubt in toggle_button. i have two layouts with one
layout having checkbox, and another layout with toggle button. i want
when i toggle checkbox the toggle button label in another layout has to
be changed.
i had like this;
void
on_checkbutton_toggled (GtkToggleButton *togglebutton,
gpointer user_data)
{
GtkWidget *togglebutton_on_layout;
GtkWidget *window;
window = create_window ();-------->main window
togglebutton_on_layout = lookup_widget (window,
"togglebutton_on_layout");
|______________________>togglebutton on another
layout (label to be changed)
int i = GPOINTER_TO_INT (user_data);
|----------------->checkbutton signal
if(GTK_TOGGLE_BUTTON(togglebutton)->active) {
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (togglebutton_oam),
TRUE);
}
else
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (togglebutton_oam),
FALSE);
}
what's wrong with my code. what i have to modify.
thanks®ards;
srinivas.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]