]> www.fi.muni.cz Git - slotcarman.git/commitdiff
Delete event.
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 6 Dec 2010 22:03:23 +0000 (23:03 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 6 Dec 2010 22:03:23 +0000 (23:03 +0100)
SCX/GUI.pm

index 0ebc366a2d05d1d405d120ad32decdcc34b76b99..0945af80c0dcae3b86417a14db61408710195848 100755 (executable)
@@ -38,9 +38,12 @@ sub show {
        my ($self) = @_;
 
        my $window = $self->{builder}->get_object('slotcarman');
        my ($self) = @_;
 
        my $window = $self->{builder}->get_object('slotcarman');
+       $window->signal_connect(delete_event => \&delete_event);
        $window->show();
 }
 
        $window->show();
 }
 
+sub delete_event { Gtk2->main_quit; }
+
 sub get_object { return shift->{builder}->get_object(@_); }
 
 sub load_image_set {
 sub get_object { return shift->{builder}->get_object(@_); }
 
 sub load_image_set {