Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
disable on_window_check_resize #34, misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jigoku committed May 12, 2015
1 parent 4f138f3 commit 7a01041
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions alluvion-gtk.pl
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ ($)
debug( "[ !] thread #" .$tid ." finished\n");

# stop tracking the thread
splice_array($thread, @threads);
@threads = splice_array($thread, @threads);

return $thread->join;
}
Expand Down Expand Up @@ -324,7 +324,7 @@ ($)
debug( "[ !] thread #" .$tid ." finished\n");

# stop tracking the thread
splice_array($thread, @threads);
@threads = splice_array($thread, @threads);

my $data = $thread->join;

Expand Down Expand Up @@ -365,7 +365,7 @@ sub populate_bookmarks {
$button_remove->set_image(Gtk2::Image->new_from_stock("gtk-clear", 'button'));
$button_remove->signal_connect('clicked',
sub {
splice_array($item, @bookmark);
@bookmark = splice_array($item, @bookmark);
populate_bookmarks();
}
);
Expand Down Expand Up @@ -683,7 +683,8 @@ ($$)
my ($i, @a) = @_;
my $n = 0;
$n++ until $a[$n] eq $i or $n > $#a;
splice @a, $n, 1;
return splice @a, $n, 1;

}

#sub remove_bookmark($) {
Expand Down Expand Up @@ -1158,6 +1159,8 @@ sub gtk_main_quit {

for (@threads) {
# show any threads that are still alive
# if application behaved properly, this should show one reference
# for the sleeper thread.
debug( $_."\n");
}

Expand Down
1 change: 0 additions & 1 deletion data/alluvion.glade
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@
<group name="accelgroup"/>
</accel-groups>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<signal name="check-resize" handler="on_window_check_resize" swapped="no"/>
<child>
<object class="GtkVBox" id="vbox_main">
<property name="visible">True</property>
Expand Down

0 comments on commit 7a01041

Please sign in to comment.