Gtk2-CV

 view release on metacpan or  search on metacpan

lib/Gtk2/CV/Schnauzer.pm  view on Meta::CPAN

my $updir  = File::Spec->updir;

sub parent_dir($) {
   my ($volume, $dirs, $file) = File::Spec->splitpath ($_[0], 1);
   my @dirs = File::Spec->splitdir ($dirs);
   pop @dirs; # oh my god
   $dirs = File::Spec->catdir (@dirs);
   File::Spec->catpath ($volume, $dirs, $file)
}

sub IW() { 80 } # must be the same as in CV.xs(!)
sub IH() { 60 } # must be the same as in CV.xs(!)

sub default_display_scale {
   init Gtk2::Gdk;

   my $screen = Gtk2::Gdk::Screen->get_default
      or return 1;

   my $rect = $screen->get_monitor_geometry (0)
      or return 1;



( run in 1.893 second using v1.01-cache-2.11-cpan-5b529ec07f3 )