~ubuntu-branches/ubuntu/maverick/libwx-perl/maverick-proposed

« back to all changes in this revision

Viewing changes to cpp/helpers.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Damyan Ivanov, Jonathan Yu, Damyan Ivanov
  • Date: 2009-05-30 17:23:32 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090530172332-3cf2qfzzewtjx73y
Tags: 0.91-1
[ Jonathan Yu ]
* New upstream release

[ Damyan Ivanov ]
* convert to debhelper7 and clean-up
  + bump debhelper and quilt build-dependencies due to usage of overrides
    and "--with quilt"
  + move removal of build cruft to debian/clean
  + install examples using debian/examples
  + install README.txt using debian/docs
  + drop dropping of build:: from the beginning of some manual pages (there
    are no more man pages starting with build::
  + make chown of module files in /usr/lib/perl5 verbose. ditto for
    Wx::build::MakeMaker::Win32_MSVC.3pm removal
  + mode of examples/README.txt fixed with an override
* describe hashbang.patch
* drop kill_bogus_test.patch, it is skipped anyway
* add a sentence to long description
* Standards-Version: 3.8.1 (no changes)
* bump years in debian/copyright and add two additional upstream copyright
  holders

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:      Mattia Barbon
5
5
// Modified by:
6
6
// Created:     29/10/2000
7
 
// RCS-ID:      $Id: helpers.cpp 2434 2008-08-05 17:55:18Z mbarbon $
8
 
// Copyright:   (c) 2000-2008 Mattia Barbon
 
7
// RCS-ID:      $Id: helpers.cpp 2523 2009-02-04 23:50:57Z mbarbon $
 
8
// Copyright:   (c) 2000-2009 Mattia Barbon
9
9
// Licence:     This program is free software; you can redistribute it and/or
10
10
//              modify it under the same terms as Perl itself
11
11
/////////////////////////////////////////////////////////////////////////////
1287
1287
        // TODO
1288
1288
        return wxVariant();
1289
1289
    } else if( SvNOK( sv ) ) {
1290
 
        return wxVariant( SvNV( sv ) );
 
1290
        return wxVariant( (double)SvNV( sv ) );
1291
1291
    } else if( SvIOK( sv ) ) {
1292
1292
#if INTSIZE > LONGSIZE
1293
1293
        return wxVariant( (int)SvIV( sv ) );
1556
1556
    wxEvtHandler *THISo =
1557
1557
        (wxEvtHandler*)wxPli_sv_2_object( aTHX_ THISs, "Wx::EvtHandler" );
1558
1558
    SV* func = ST(1);
1559
 
    I32 evtID = CvXSUBANY(cv).any_i32;
 
1559
    wxEventType evtID = CvXSUBANY(cv).any_i32;
1560
1560
 
1561
1561
    if( SvOK( func ) )
1562
1562
    {
1584
1584
        (wxEvtHandler*)wxPli_sv_2_object( aTHX_ THISs, "Wx::EvtHandler" );
1585
1585
    wxWindowID id = wxPli_get_wxwindowid( aTHX_ ST(1) );
1586
1586
    SV* func = ST(2);
1587
 
    I32 evtID = CvXSUBANY(cv).any_i32;
 
1587
    wxEventType evtID = CvXSUBANY(cv).any_i32;
1588
1588
 
1589
1589
    if( SvOK( func ) )
1590
1590
    {