Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54468 - /trunk/libyui-bindings/swig/yui.i
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Thu, 08 Jan 2009 13:01:44 -0000
  • Message-id: <E1LKuW8-00031B-3R@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Thu Jan 8 14:01:43 2009
New Revision: 54468

URL: http://svn.opensuse.org/viewcvs/yast?rev=54468&view=rev
Log:
first part of fix for https://bugzilla.novell.com/show_bug.cgi?id=427372
second part must be fixed in libyui headers

Modified:
trunk/libyui-bindings/swig/yui.i

Modified: trunk/libyui-bindings/swig/yui.i
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/libyui-bindings/swig/yui.i?rev=54468&r1=54467&r2=54468&view=diff
==============================================================================
--- trunk/libyui-bindings/swig/yui.i (original)
+++ trunk/libyui-bindings/swig/yui.i Thu Jan 8 14:01:43 2009
@@ -21,6 +21,7 @@

#include "YaST2/yui/YUI.h"
#include "YaST2/yui/YWidgetFactory.h"
+#include "YaST2/yui/YOptionalWidgetFactory.h"
#include "YaST2/yui/YDialog.h"
#include "YaST2/yui/YLayoutBox.h"
#include "YaST2/yui/YEvent.h"
@@ -53,7 +54,6 @@
#include "YaST2/yui/YMultiLineEdit.h"
#include "YaST2/yui/YMultiProgressMeter.h"
#include "YaST2/yui/YMultiSelectionBox.h"
-#include "YaST2/yui/YOptionalWidgetFactory.h"
#include "YaST2/yui/YPackageSelector.h"
#include "YaST2/yui/YPackageSelectorPlugin.h"
#include "YaST2/yui/YProgressBar.h"
@@ -110,7 +110,7 @@
%include "std_string.i"
%include "std_list.i"

-#ifdef SWIGPERL5
+#if defined(SWIGPERL5)
/* %include "std/std_set.i" # doesn't compile ?! */
#else
%include "std_set.i"
@@ -124,10 +124,18 @@
%define YUILogComponent "bindings"
%enddef

-#ifdef SWIGPYTHON
+#if defined(SWIGPYTHON)
%ignore None; /* is a reserved word in Python */
#endif

+# See https://bugzilla.novell.com/show_bug.cgi?id=427372#c16
+%apply SWIGTYPE *DISOWN { YItem *item_disown };
+
+# This should fix YTableHeader::addColumn but SWIG doesn't grok it
+# (runtime error, probably needs fixing within libyui)
+#%apply SWIGTYPE *DISOWN { const string & header_disown };
+
+
%include YUILog.h
%include YUIPlugin.h


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages