add on for the Spinbuttonrenderer...



Hello

don't know where to post this....

the spinbutton renderer in the examples section won't work correctly unless you add the following lines 
somewhere in on_start_editing:

  my $adjustment = $spin_button->get_adjustment();
  $adjustment->signal_connect(value_changed => sub {
    my ($event_box, $event) = @_;
      $spin_button -> update();
      $cell -> signal_emit(edited => $path, $spin_button -> get_value());
      return 1;
  });

hope its useful for somebody... :D

-- 
ciao bboett
==============================================================
bboett adlp org
http://inforezo.u-strasbg.fr/~bboett
===============================================================



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