Skip to content

Commit

Permalink
update to 5.26
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-theunsub committed Sep 4, 2018
1 parent ec3170b commit 2dccf63
Show file tree
Hide file tree
Showing 19 changed files with 105 additions and 168 deletions.
12 changes: 7 additions & 5 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
CHANGELOG for ClamTk:

5.26 - XXX XX 2017
5.26 - Aug 25 2018
------------------
* Remove dependency on gnome-icon-theme-legacy; still
using gnome-icon-theme for now

* UI change to single-click
* Update year to 2018; 14th year :)
* Updates to the man pages
* Update Swedish (sv) language file for Launchpad #1688469
* Begin move to https://gitlab.com/dave_m/clamtk

5.25 - Sep 4 2017
-----------------
Expand Down Expand Up @@ -390,7 +392,7 @@ CHANGELOG for ClamTk:
4.41 - Jun 1 2012
------------------
* Actually remove File::Find::Rule from ClamTk sources,
which should have been done in 4.40. This could cause
which should have been done in 4.40. This could cause
problems with Debian-based distros which can remove
unneeded dependencies

Expand Down
2 changes: 1 addition & 1 deletion clamtk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk.
# https://dave-theunsub.github.io/clamtk/
Expand Down
Binary file modified clamtk.1.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/Analysis.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
4 changes: 2 additions & 2 deletions lib/App.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand All @@ -24,7 +24,7 @@ use Encode 'decode';

sub get_TK_version {
# Stick with %.2f format - 4.50 vice 4.5
return '5.25';
return '5.26';
}

sub get_path {
Expand Down
2 changes: 1 addition & 1 deletion lib/Assistant.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
194 changes: 81 additions & 113 deletions lib/GUI.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down Expand Up @@ -219,40 +219,33 @@ sub add_config_panels {
);

my $view = Gtk2::IconView->new_with_model( $liststore );
$view->set_columns( 4 );
$view->set_can_focus( FALSE );
$view->set_column_spacing( 10 );
$view->set_row_spacing( 10 );
$view->set_columns( 4 );
$view->set_pixbuf_column( 0 );
$view->set_row_spacing( 10 );
$view->set_selection_mode( 'single' );
$view->set_text_column( 1 );
$view->set_tooltip_column( 2 );
$view->set_selection_mode( 'single' );
$view->set_can_focus( FALSE );

my $prefs = ClamTk::Prefs->get_preference( 'Clickings' );
if ( $prefs == 2 ) {
$view->signal_connect(
'item-activated' => \&click,
$liststore
);
} elsif ( $prefs == 1 ) {
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
# Set single-click
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
);
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
}
);

my @data = (
{ link => _( 'Settings' ),
Expand Down Expand Up @@ -303,41 +296,33 @@ sub add_update_panels {
);

my $view = Gtk2::IconView->new_with_model( $liststore );
$view->set_columns( 3 );
$view->set_can_focus( FALSE );
$view->set_column_spacing( 10 );
$view->set_row_spacing( 10 );
$view->set_columns( 3 );
$view->set_pixbuf_column( 0 );
$view->set_row_spacing( 10 );
$view->set_selection_mode( 'single' );
$view->set_text_column( 1 );
$view->set_tooltip_column( 2 );
$view->set_selection_mode( 'single' );
$view->set_can_focus( FALSE );

my $prefs = ClamTk::Prefs->get_preference( 'Clickings' );

if ( $prefs == 2 ) {
$view->signal_connect(
'item-activated' => \&click,
$liststore
);
} elsif ( $prefs == 1 ) {
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
# Set single-click
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
);
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
}
);

my @data = (
{ link => _( 'Update' ),
Expand Down Expand Up @@ -386,32 +371,24 @@ sub add_history_panels {
$view->set_selection_mode( 'single' );
$view->set_can_focus( FALSE );

my $prefs = ClamTk::Prefs->get_preference( 'Clickings' );

if ( $prefs == 2 ) {
$view->signal_connect(
'item-activated' => \&click,
$liststore
);
} elsif ( $prefs == 1 ) {
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
# Set single-click
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
);
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
}
);

my @data = (
{ link => _( 'History' ),
Expand Down Expand Up @@ -451,41 +428,32 @@ sub add_analysis_panels {
);

my $view = Gtk2::IconView->new_with_model( $liststore );
$view->set_columns( 3 );
$view->set_can_focus( FALSE );
$view->set_column_spacing( 10 );
$view->set_row_spacing( 10 );
$view->set_columns( 3 );
$view->set_pixbuf_column( 0 );
$view->set_row_spacing( 10 );
$view->set_selection_mode( 'single' );
$view->set_text_column( 1 );
$view->set_tooltip_column( 2 );
$view->set_selection_mode( 'single' );
$view->set_can_focus( FALSE );

my $prefs = ClamTk::Prefs->get_preference( 'Clickings' );

if ( $prefs == 2 ) {
$view->signal_connect(
'item-activated' => \&click,
$liststore
);
} elsif ( $prefs == 1 ) {
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
my $path;
$view->signal_connect(
'motion-notify-event' => sub {
my ( $widget, $event ) = @_;
$path = $view->get_path_at_pos( $event->x, $event->y );
if ( $path ) {
$view->select_path( $path );
} else {
$view->unselect_all();
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
}
);
}
}
);
$view->signal_connect(
'button-press-event' => sub {
press( $path, $liststore );
}
);

#<<<
# For CentOS only:
Expand Down Expand Up @@ -776,7 +744,7 @@ sub about {
$dialog->set_logo( $pixbuf );
$dialog->set_translator_credits(
'Please see the website for full listing' );
$dialog->set_copyright( "\x{a9} Dave M 2004 - 2017" );
$dialog->set_copyright( "\x{a9} Dave M 2004 - 2018" );
$dialog->set_program_name( 'ClamTk' );
#$dialog->set_authors( [ 'Dave M', '[email protected]' ] );
$dialog->set_authors( 'Dave M <[email protected]>' );
Expand Down
2 changes: 1 addition & 1 deletion lib/History.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
9 changes: 1 addition & 8 deletions lib/Network.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down Expand Up @@ -28,13 +28,6 @@ my $infobar; # Gtk2::InfoBar
sub show_window {
my $eb = Gtk2::EventBox->new;

# my $white = Gtk2::Gdk::Color->new( 0xFFFF, 0xFFFF, 0xFFFF );
# $eb->modify_bg( 'normal', $white );

#$eb->override_background_color( 'normal',
# Gtk2::Gdk::RGBA->new( .93, .93, .93, .93 ),
#);

my $box = Gtk2::VBox->new( FALSE, 5 );
$eb->add( $box );

Expand Down
12 changes: 1 addition & 11 deletions lib/Prefs.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down Expand Up @@ -198,15 +198,6 @@ sub custom_prefs {
}
}

# Single click or double click in the main iconview.
# Since we started with double, stick with it by
# default for less aggravation
# 1 = single, 2 = double
# Clickings = short for Click Settings. I think.
if ( !exists $pkg{ Clickings } ) {
$pkg{ Clickings } = 2;
}

write_all( %pkg );
return;
}
Expand Down Expand Up @@ -239,7 +230,6 @@ sub legit_key {
TruncateLog SaveToLog
Whitelist Update ScanHidden
Thorough Recursive Mounted
Clickings
);
return 1 if ( grep { $_[ 0 ] eq $_ } @keys );
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Quarantine.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
2 changes: 1 addition & 1 deletion lib/Results.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
2 changes: 1 addition & 1 deletion lib/Scan.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
2 changes: 1 addition & 1 deletion lib/Schedule.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClamTk, copyright (C) 2004-2017 Dave M
# ClamTk, copyright (C) 2004-2018 Dave M
#
# This file is part of ClamTk (https://dave-theunsub.github.io/clamtk).
#
Expand Down
Loading

0 comments on commit 2dccf63

Please sign in to comment.