CellRendererSpinButton



Hello list,

i took  # 
$Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/examples/cellrenderer_spinbutton.pl,v 
1.3 2004/02/04 07:14:53 muppetman Exp $

i wasn't able to figure out how to set the size of the entry box, when 
the spinbutton is drawn. Any ideas welcome :) 

I changed the event handler from "key_press" to "focus_out" to have 
better usability:
$spin_button -> signal_connect(focus_out_event => sub {
     my ($event_box, $event) = @_;
     if($event -> in == 0){
      $spin_button -> update();
      $cell -> signal_emit(edited => $path, $spin_button -> 
get_value());
      $spin_button -> destroy();
      return 1;    
      }
    return 0;
    });
this code works fine but produces: Gtk-CRITICAL **: file gtkcontainer.c: 
line 984 (gtk_container_remove): assertion `widget->parent == 
GTK_WIDGET (container)' failed at .

Rgds, Jens




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