Andre Küster <[EMAIL PROTECTED]> writes:
> void main(int argc, int *argv[]) {
>GSList * group;
>GtkWidget *window,*rb,*box;
>int i ;
>
>gtk_init(&argc, &argv);
>window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
>box = gtk_hbox_new(TRUE, 0);
> for (i=1;i<=5;i++) {
>
o recognize it ;-) -Rob - Original Message - From: Sven Neumann Sent: Sunday, May 20, 2001 4:28 PM To: Robert Wilkens Cc: [EMAIL PROTECTED] Subject: Re: Radiobuttons dont work? Hi,"Robert Wilkens" <[EMAIL PROTECTED]> writes:> Putting anything unnecessary inside
Hi,
"Robert Wilkens" <[EMAIL PROTECTED]> writes:
> Putting anything unnecessary inside of a loop is a waste of cpu cycles...
profile, then come back. It's very likely that the compiler optimizes the
branch inside the loop away for you. I agree that it is not very good
looking or readable, but
Thank you Deborah,
Deborah Swayne wrote:
>Quoting from the gtk tutorial:
>
> It is also a good idea to explicitly set which button should be the
> default depressed button with:
>
> void gtk_toggle_button_set_active( GtkToggleButton *toggle_button,
> gint
time that could be used by other more important applications on the system.. -Rob - Original Message - From: Havoc Pennington Sent: Sunday, May 20, 2001 4:03 PM To: Robert Wilkens Cc: AndreKüster; [EMAIL PROTECTED] Subject: Re: Radiobuttons dont work? "Robert Wilkens&quo
"Robert Wilkens" <[EMAIL PROTECTED]> writes:
> Please consider taking the 'if i==1' thing out of the loop... Do your initialization
> before you enter the loop, then make the loop 'for i = 2 to 5' instead of 1 to 5.
>The
> way your code is written it's not only doing an unnecessary compare, it
Quoting from the gtk tutorial:
It is also a good idea to explicitly set which button should be the
default depressed button with:
void gtk_toggle_button_set_active( GtkToggleButton *toggle_button,
gint state );
Debby
__
p. X-windows is slow enough without bad code making it worse. -Rob - Original Message - From: AndreKüster Sent: Sunday, May 20, 2001 2:11 PM To: [EMAIL PROTECTED] Subject: Radiobuttons dont work? Hi,I`ve a problem with Radiobuttons:When I write the following code, the radiobutton
Hi,
I`ve a problem with Radiobuttons:
When I write the following code, the radiobutton array doesnt work, the
middle buttons act like normal
togglebuttons if the first radiobutton is active, very strange:
#include
void main(int argc, int *argv[]) {
GSList * group;
GtkWidget *window,*r