commit libyui-bindings for openSUSE:Factory
Hello community, here is the log from the commit of package libyui-bindings for openSUSE:Factory checked in at 2016-04-22 16:25:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libyui-bindings (Old) and /work/SRC/openSUSE:Factory/.libyui-bindings.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libyui-bindings" Changes: -------- --- /work/SRC/openSUSE:Factory/libyui-bindings/libyui-bindings.changes 2015-01-21 21:52:08.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libyui-bindings.new/libyui-bindings.changes 2016-04-22 16:25:54.000000000 +0200 @@ -1,0 +2,9 @@ +Tue Jan 19 15:52:09 UTC 2016 - mvidner@suse.com + +- CSharp: fix a System.EntryPointNotFoundException + (gh#libyui/libyui-bindings#18, M. Pasotti) +- Perl, Python, Ruby: Fixed item identity comparison + (gh#libyui/libyui-bindings#15, A. Naselli) +- 1.1.1 + +------------------------------------------------------------------- Old: ---- libyui-bindings-1.1.0.tar.bz2 New: ---- libyui-bindings-1.1.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libyui-bindings.spec ++++++ --- /var/tmp/diff_new_pack.hpdWPh/_old 2016-04-22 16:25:55.000000000 +0200 +++ /var/tmp/diff_new_pack.hpdWPh/_new 2016-04-22 16:25:55.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package libyui-bindings # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: libyui-bindings -Version: 1.1.0 +Version: 1.1.1 Release: 0 Summary: Bindings for libyui License: LGPL-2.1 or LGPL-3.0 ++++++ libyui-bindings-1.1.0.tar.bz2 -> libyui-bindings-1.1.1.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/CMakeLists.txt new/libyui-bindings-1.1.1/CMakeLists.txt --- old/libyui-bindings-1.1.0/CMakeLists.txt 2015-01-20 15:38:09.000000000 +0100 +++ new/libyui-bindings-1.1.1/CMakeLists.txt 2016-04-19 17:13:09.000000000 +0200 @@ -38,7 +38,24 @@ SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR}) SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH}) -SET( CPACK_GENERATOR "TBZ2") +if (GENERATE) + SET(CPACK_PACKAGE_CONTACT "SUSE") + # rpm + SET(CPACK_RPM_PACKAGE_LICENSE LGPL) + SET(CPACK_RPM_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${VERSION_PATCH}") + SET(CPACK_RPM_PACKAGE_RELEASE 1) + + SET(CPACK_PACKAGE_FILE_NAME "${PACKAGE}-${CPACK_RPM_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}") + # deb + SET(CPACK_DEBIAN_PACKAGE_NAME "${CPACK_PACKAGE_FILE_NAME}") + SET(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_RPM_PACKAGE_VERSION}-${CPACK_RPM_PACKAGE_RELEASE}") + SET(CPACK_GENERATOR ${GENERATE}) +else (GENERATE) + # tbz2 + SET(CPACK_PACKAGE_FILE_NAME "${PACKAGE}-bin-${PACKAGE_FILE_VERSION}") + SET( CPACK_GENERATOR "TBZ2" ) +endif (GENERATE) + SET( CPACK_SOURCE_GENERATOR "TBZ2") SET( CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE}-${VERSION}" ) @@ -96,4 +113,3 @@ ) MESSAGE(STATUS "Writing spec file...") -CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/libyui-bindings.spec.cmake ${CMAKE_BINARY_DIR}/package/libyui-bindings.spec @ONLY) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/Rakefile new/libyui-bindings-1.1.1/Rakefile --- old/libyui-bindings-1.1.0/Rakefile 1970-01-01 01:00:00.000000000 +0100 +++ new/libyui-bindings-1.1.1/Rakefile 2016-04-19 17:13:09.000000000 +0200 @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# make continuous integration using rubygem-packaging_rake_tasks and +# rubygem-libyui-rake. +# Copyright © 2014 SUSE LLC +# MIT license + +require "libyui/rake" + +Libyui::Tasks.configuration do |conf| + # lets ignore license check for now + conf.skip_license_check << /.*/ +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/VERSION.cmake new/libyui-bindings-1.1.1/VERSION.cmake --- old/libyui-bindings-1.1.0/VERSION.cmake 2015-01-19 16:03:11.000000000 +0100 +++ new/libyui-bindings-1.1.1/VERSION.cmake 2016-01-29 14:52:12.000000000 +0100 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "1") SET(VERSION_MINOR "1") -SET(VERSION_PATCH "0") +SET(VERSION_PATCH "1") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/libyui-bindings.spec.cmake new/libyui-bindings-1.1.1/libyui-bindings.spec.cmake --- old/libyui-bindings-1.1.0/libyui-bindings.spec.cmake 2015-01-15 16:38:09.000000000 +0100 +++ new/libyui-bindings-1.1.1/libyui-bindings.spec.cmake 1970-01-01 01:00:00.000000000 +0100 @@ -1,141 +0,0 @@ -# -# spec file for package libyui-bindings -# -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# -# nodebuginfo - - -Name: @PACKAGE@ -Version: @VERSION@ -Release: 0 -Summary: Bindings for libyui -License: LGPL-2.1 or LGPL-3.0 -Group: Development/Sources -Url: https://github.com/libyui/libyui-bindings -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: cmake -BuildRequires: gcc-c++ -BuildRequires: libyui-devel >= 2.21.5 -BuildRequires: perl -BuildRequires: python-devel -BuildRequires: ruby-devel -BuildRequires: swig -Source: %{name}-%{version}.tar.bz2 -Prefix: /usr - -%description -This package provides Ruby language bindings to access functions of -libyui - An User Interface engine that provides the -abstraction from graphical user interfaces (Qt, Gtk) and text based -user interfaces (ncurses). - -Authors: ---------- -- kkaempf@suse.de -- dmacvicar@suse.de - -%prep -%setup -q - -%build -mkdir build -cd build -cmake -DYPREFIX=%{prefix} \ - -DCMAKE_INSTALL_PREFIX=%{prefix} \ - -DLIB=%{_lib} \ - -DPYTHON_SITEDIR=%{py_sitedir} \ - -DCMAKE_VERBOSE_MAKEFILE=TRUE \ - -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=1 \ - -DBUILD_RUBY_GEM=no \ - .. -make %{?jobs:-j %jobs} - -%install -cd build -make install DESTDIR=$RPM_BUILD_ROOT - -%clean -%{__rm} -rf %{buildroot} - -%package -n ruby-yui -Summary: Ruby bindings for libyui -Group: Development/Languages/Ruby - -%description -n ruby-yui -This package provides Ruby language bindings to access functions of -libyui - An User Interface engine that provides the -abstraction from graphical user interfaces (Qt, Gtk) and text based -user interfaces (ncurses). - -Authors: ---------- -- kkaempf@suse.de -- dmacvicar@suse.de - -%package -n python-yui -%py_requires -Summary: Python bindings for libyui -Group: Development/Languages/Python - -%description -n python-yui -This package provides Python language bindings to access functions of -yast2-libyui - An User Interface engine that provides the -abstraction from graphical user interfaces (Qt, Gtk) and text based -user interfaces (ncurses). - -Authors: ---------- -- kkaempf@suse.de -- dmacvicar@suse.de - - -%package -n perl-yui -%{perl_requires} -Summary: Perl bindings for libyui -Group: Development/Languages/Perl - -%description -n perl-yui -This package provides Perl language bindings to access functions of -yast2-libyui - An User Interface engine that provides the -abstraction from graphical user interfaces (Qt, Gtk) and text based -user interfaces (ncurses). - -Authors: ---------- -- kkaempf@suse.de -- dmacvicar@suse.de - - -%files -n ruby-yui -%defattr(-,root,root,-) -%doc swig/ruby/examples/*.rb -%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/_yui.so - -%files -n python-yui -%defattr(-,root,root,-) -%doc swig/python/examples/*.py -%{py_sitedir}/_yui.so -%{py_sitedir}/yui.py - -%files -n perl-yui -%defattr(-,root,root,-) -%doc swig/perl/examples/*.pl -%{perl_vendorarch}/yui.so -%{perl_vendorlib}/yui.pm - -%changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/package/libyui-bindings.changes new/libyui-bindings-1.1.1/package/libyui-bindings.changes --- old/libyui-bindings-1.1.0/package/libyui-bindings.changes 1970-01-01 01:00:00.000000000 +0100 +++ new/libyui-bindings-1.1.1/package/libyui-bindings.changes 2016-01-29 14:52:12.000000000 +0100 @@ -0,0 +1,128 @@ +------------------------------------------------------------------- +Tue Jan 19 15:52:09 UTC 2016 - mvidner@suse.com + +- CSharp: fix a System.EntryPointNotFoundException + (gh#libyui/libyui-bindings#18, M. Pasotti) +- Perl, Python, Ruby: Fixed item identity comparison + (gh#libyui/libyui-bindings#15, A. Naselli) +- 1.1.1 + +------------------------------------------------------------------- +Sun Jan 18 14:06:00 UTC 2015 - besser82@fedoraproject.org + +- Replace deprecated Config: with RbConfig: for Ruby 2.2 +- Add bindings for Mono / CSharp thanks to Matteo Pasotti + <matteo@mageia.org> +- Add CMake-switches to enable / disable languages thanks to + Matteo Pasotti <matteo@mageia.org> +- Shapen-up Mono-bindings to work as expected +- 1.1.0 + +------------------------------------------------------------------- +Thu Jan 15 13:09:48 UTC 2015 - mvidner@suse.com + +- Fixed building with cmake 3.1 (-fPIC, PREFIX, boo#911875). +- 1.0.6 + +------------------------------------------------------------------- +Wed Sep 10 07:43:07 UTC 2014 - mvidner@suse.com + +- Enabled building (but not running) from a non /usr prefix, + for ci.opensuse.org. +- 1.0.5 + +------------------------------------------------------------------- +Fri Jan 24 17:43:39 CET 2014 - anaselli@linux.it + +- Added convertors and incrementers needed at least for Perl + and python: + YEvent: toYWidgetEvent toYKeyEvent toYMenuEvent toYCancelEvent + toYDebugEvent toYTimeoutEvent + YItem: toYTreeItem toYTableItem + YItemIterator: toYItem incrYItemIterator + YTableCellIterator: toYTableCell incrYTableCellIterator +- new Version 1.0.4 + +------------------------------------------------------------------- +Mon Dec 2 12:00:22 CET 2013 - anaselli@linux.it + +- added new file checking for YExternalWidgets plugin management +- new Version 1.0.3 + +------------------------------------------------------------------- +Fri May 31 13:15:00 UTC 2013 - bjoern.esser@gmail.com + +- license update: LGPL-2.1 or LGPL-3 +- get rid of `/usr/bin/env` in hashbang of examples +- new Version 1.0.2 + +------------------------------------------------------------------- +Mon Aug 13 07:33:17 UTC 2012 - cfarrell@suse.com + +- license update: GPL-2.0 + SPDX format (http://www.spdx.org/licenses) should be used for spec file + license field + +------------------------------------------------------------------- +Fri Aug 10 10:04:45 UTC 2012 - kkaempf@suse.com + +- Update to 1.0.0 for stand-alone libyui + +------------------------------------------------------------------- +Tue Jun 12 11:05:20 UTC 2012 - kkaempf@suse.com + +- Build stand-alone (without YaST) + +------------------------------------------------------------------- +Wed Dec 1 13:30:31 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Thu Aug 7 13:45:16 CEST 2008 - kkaempf@suse.de + +- use rpm macros for Perl and Python directories. Fixes building + against Python 2.6. + +------------------------------------------------------------------- +Fri May 23 15:19:27 CEST 2008 - kkaempf@suse.de + +- fix widget (pointer) comparison for Perl and Python. + +------------------------------------------------------------------- +Tue May 20 17:43:12 CEST 2008 - kkaempf@suse.de + +- Fix requires for perl-yui (bnc#392558) + +------------------------------------------------------------------- +Tue May 20 13:20:21 CEST 2008 - kkaempf@suse.de + +- follow naming conventions (bnc#392524). Its now ruby-yui, + python-yui and perl-yui. + +------------------------------------------------------------------- +Mon May 19 12:02:56 CEST 2008 - kkaempf@suse.de + +- Add examples for Perl and Python + +------------------------------------------------------------------- +Fri May 16 14:27:14 CEST 2008 - kkaempf@suse.de + +- Also generate Python (libyui-python) and Perl (perl-libyui) + bindings. + +------------------------------------------------------------------- +Tue May 13 16:05:26 CEST 2008 - kkaempf@suse.de + +- Add copyright (gpl 2.0) (bnc#379919) +- Add Ruby examples. + +------------------------------------------------------------------- +Mon Apr 14 13:29:13 CEST 2008 - kkaempf@suse.de + +- Extended, now sufficient for selection_box1. + +------------------------------------------------------------------- +Fri Apr 11 11:04:54 CEST 2008 - kkaempf@suse.de + +- Initial version, just enough for 'Hello, world!' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/package/libyui-bindings.spec new/libyui-bindings-1.1.1/package/libyui-bindings.spec --- old/libyui-bindings-1.1.0/package/libyui-bindings.spec 1970-01-01 01:00:00.000000000 +0100 +++ new/libyui-bindings-1.1.1/package/libyui-bindings.spec 2016-04-19 17:13:09.000000000 +0200 @@ -0,0 +1,141 @@ +# +# spec file for package libyui-bindings +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +# nodebuginfo + + +Name: libyui-bindings +Version: 1.1.1 +Release: 0 +Summary: Bindings for libyui +License: LGPL-2.1 or LGPL-3.0 +Group: Development/Sources +Url: https://github.com/libyui/libyui-bindings +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: libyui-devel >= 2.21.5 +BuildRequires: perl +BuildRequires: python-devel +BuildRequires: ruby-devel +BuildRequires: swig +Source: %{name}-%{version}.tar.bz2 +Prefix: /usr + +%description +This package provides Ruby language bindings to access functions of +libyui - An User Interface engine that provides the +abstraction from graphical user interfaces (Qt, Gtk) and text based +user interfaces (ncurses). + +Authors: +--------- +- kkaempf@suse.de +- dmacvicar@suse.de + +%prep +%setup -q + +%build +mkdir build +cd build +cmake -DYPREFIX=%{prefix} \ + -DCMAKE_INSTALL_PREFIX=%{prefix} \ + -DLIB=%{_lib} \ + -DPYTHON_SITEDIR=%{py_sitedir} \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=1 \ + -DBUILD_RUBY_GEM=no \ + .. +make %{?jobs:-j %jobs} + +%install +cd build +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +%{__rm} -rf %{buildroot} + +%package -n ruby-yui +Summary: Ruby bindings for libyui +Group: Development/Languages/Ruby + +%description -n ruby-yui +This package provides Ruby language bindings to access functions of +libyui - An User Interface engine that provides the +abstraction from graphical user interfaces (Qt, Gtk) and text based +user interfaces (ncurses). + +Authors: +--------- +- kkaempf@suse.de +- dmacvicar@suse.de + +%package -n python-yui +%py_requires +Summary: Python bindings for libyui +Group: Development/Languages/Python + +%description -n python-yui +This package provides Python language bindings to access functions of +yast2-libyui - An User Interface engine that provides the +abstraction from graphical user interfaces (Qt, Gtk) and text based +user interfaces (ncurses). + +Authors: +--------- +- kkaempf@suse.de +- dmacvicar@suse.de + + +%package -n perl-yui +%{perl_requires} +Summary: Perl bindings for libyui +Group: Development/Languages/Perl + +%description -n perl-yui +This package provides Perl language bindings to access functions of +yast2-libyui - An User Interface engine that provides the +abstraction from graphical user interfaces (Qt, Gtk) and text based +user interfaces (ncurses). + +Authors: +--------- +- kkaempf@suse.de +- dmacvicar@suse.de + + +%files -n ruby-yui +%defattr(-,root,root,-) +%doc swig/ruby/examples/*.rb +%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/_yui.so + +%files -n python-yui +%defattr(-,root,root,-) +%doc swig/python/examples/*.py +%{py_sitedir}/_yui.so +%{py_sitedir}/yui.py + +%files -n perl-yui +%defattr(-,root,root,-) +%doc swig/perl/examples/*.pl +%{perl_vendorarch}/yui.so +%{perl_vendorlib}/yui.pm + +%changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/swig/mono/CMakeLists.txt new/libyui-bindings-1.1.1/swig/mono/CMakeLists.txt --- old/libyui-bindings-1.1.0/swig/mono/CMakeLists.txt 2015-01-19 16:03:11.000000000 +0100 +++ new/libyui-bindings-1.1.1/swig/mono/CMakeLists.txt 2016-01-29 14:52:12.000000000 +0100 @@ -24,6 +24,7 @@ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i ) + SET(yui_csharp_SRCS ${SWIG_OUTPUT} ) ADD_LIBRARY( yui_csharp SHARED ${yui_csharp_SRCS} ) @@ -33,6 +34,15 @@ TARGET_LINK_LIBRARIES( yui_csharp ${LIBYUI_LIBRARY} ) +# +# WORKAROUND: replace DllImport("yui" with DllImport("/abs_path/yui.so" +# +ADD_CUSTOM_COMMAND( + TARGET yui_csharp + POST_BUILD + COMMAND sed -i -e 's|DllImport\(\"yui\"|DllImport\(\"${MONO_LIBRARIES}/yui/yui.so\"|g' "${CMAKE_CURRENT_BINARY_DIR}/yuiPINVOKE.cs" ) + + ADD_CUSTOM_COMMAND( TARGET yui_csharp POST_BUILD COMMAND "${CSHARP_MONO_COMPILER_${CSHARP_MONO_VERSION}}" /t:library *.cs /out:yui.dll diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/swig/python/examples/YTable_n_YItemCollection.py new/libyui-bindings-1.1.1/swig/python/examples/YTable_n_YItemCollection.py --- old/libyui-bindings-1.1.0/swig/python/examples/YTable_n_YItemCollection.py 1970-01-01 01:00:00.000000000 +0100 +++ new/libyui-bindings-1.1.1/swig/python/examples/YTable_n_YItemCollection.py 2016-04-04 13:58:09.000000000 +0200 @@ -0,0 +1,57 @@ +# +# Example that shows how to fill a table using YItemCollection +# +# Copyright information +# +# Author: Angelo Naselli <anaselli@linux.it> +# +# License +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +import sys +sys.path.insert(0,'../../../build/swig/python') +import yui + +factory = yui.YUI.widgetFactory() +dialog = factory.createMainDialog() + +VBox = factory.createVBox(dialog) + +yTableHeader = yui.YTableHeader() +yTableHeader.addColumn("package") +yTableHeader.addColumn("version") +yTableHeader.addColumn("release") +yTableHeader.addColumn("arch") + +myTableMinSize = factory.createMinSize(VBox, 50, 12) +myTable = factory.createTable(myTableMinSize, yTableHeader) + +myOK = factory.createPushButton(VBox, "OK") + +# NOTE YItemCollection have problems +# because YItem is not disown() so it must +# be done explicitally by using this.own property +ic = yui.YItemCollection() +for pkg in range(1,10): + name = "name-{0}".format(pkg) + item = yui.YTableItem(name , "1.0", "1", "i585") + item.this.own(False) # comment this to have a crash + ic.push_back(item) + +myTable.addItems(ic) + +event1 = dialog.waitForEvent() + +dialog.destroy() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-bindings-1.1.0/swig/yui.i new/libyui-bindings-1.1.1/swig/yui.i --- old/libyui-bindings-1.1.0/swig/yui.i 2015-01-19 16:03:11.000000000 +0100 +++ new/libyui-bindings-1.1.1/swig/yui.i 2016-04-19 10:58:10.000000000 +0200 @@ -218,6 +218,7 @@ %include yui/YMultiLineEdit.h %include yui/YMultiProgressMeter.h %include yui/YMultiSelectionBox.h +%include yui/YWizard.h %include yui/YOptionalWidgetFactory.h %include yui/YPackageSelector.h %include yui/YPackageSelectorPlugin.h @@ -251,7 +252,6 @@ %include yui/YUILog.h %include yui/YUISymbols.h %include yui/YWidgetID.h -%include yui/YWizard.h %include yui/YExternalWidgetFactory.h %include yui/YExternalWidgets.h @@ -261,6 +261,27 @@ } #endif +%extend YItem { +#if defined(SWIGPERL5) + int __eq__( YItem *i ) + { return ($self == i); } + int __ne__( YItem *i ) + { return ($self != i); } +#endif +#if defined(SWIGPYTHON) + int __eq__( YItem *i ) + { return ($self == i); } + int __ne__( YItem *i ) + { return ($self != i); } +#endif +#if defined(SWIGRUBY) + %rename( "==" ) equals( YItem *i ); + %typemap(out) int equals + "$result = ($1 != 0) ? Qtrue : Qfalse;"; +#endif + int equals( YItem *i ) { return ($self == i); } +} + namespace std { %template(YItemCollection) vector<YItem *>; } @@ -276,8 +297,10 @@ { return ($self != w); } #endif #if defined(SWIGPYTHON) - int __cmp__( YWidget *w ) - { return ($self - w); } + int __eq__( YWidget *w ) + { return ($self == w); } + int __ne__( YWidget *w ) + { return ($self != w); } #endif #if defined(SWIGRUBY) %rename( "==" ) equals( YWidget *w ); @@ -334,6 +357,14 @@ return ++currentIterator; } +YItemIterator beginYItemCollection( YItemCollection *coll) { + return coll->begin(); +} + +YItemIterator endYItemCollection( YItemCollection *coll) { + return coll->end(); +} + YTableCellIterator incrYTableCellIterator(YTableCellIterator currentIterator) { return ++currentIterator; }
participants (1)
-
root@hilbert.suse.de