Re: Radiobuttons problem



How to do this in right way?
I found way to do it, but it is ugly: I call
 gtk_signal_emit_by_name(GTK_OBJECT(RadioBtn1),"pressed");

and connect this handler to the "pressed" signal

void onPressed(GtkWidget       *widget,gpointer         user_data)
{
 GtkWidget *RadioBtn1 = lookup_widget (GTK_WIDGET (MainWindow), "CreateContourBtn");
 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(RadioBtn1),true);
}

Is there other way?

Alexander Chemeris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]