GtkRange widget



hi,

i just hacked a bit gtkrange widgets and I found some mystique lines here
in the default_motion callbacks in gtkrange:

  if (range->digits >= 0)
    {
      char buffer[64];
  
      sprintf (buffer, "%0.*f", range->digits, range->adjustment->value);
      sscanf (buffer, "%f", &range->adjustment->value);
    }

this looks like some performance gap for me, is there really a use to round the
float value ?

I mean, if someone needs to round a float, he can do it in its application, or?

--
so long,
plex/TEK
-=[www.neoscientists.org]=-



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