GtkSharp/gtk/Makefile.am
Marek Habersack 2c82d95b58 Fix System.Array usage in {List,Tree}Store
{List,Tree}Store.AppendValues overloads which take System.Array as their
'values' parameter incorrectly pass the array down to SetValues. The latter
expects a 'params object[]' array of parameters but passing an instance of
System.Array to such method will NOT pass the contents of System.Array instance
into the 'params' method as separate members of the parms array. It will instead
box System.Array and the params method will receive one parameter of type
System.Array instead of X parameters of various types. This affects the
following example code:

   var store = new TreeStore (typeof (string), typeof (int));
   store.AppendValues ("One", 1);

If the column configured to retrieve the 'string' value reads data from this
store it will instead get an instance of System.Array and the node displayed by
the TreeView will have no text, won't be clickable etc.

The fix implemented here is to "explode" the System.Array into a separate array
of the 'object[]' type.

The 'TreeStore.AppendValues (params object[] values)' overload no longer calls
the 'TreeStore.Appendvalues (Array values)' overload since the indirection only
wastes time and memory. It now directly calls `SetValues`.
2016-12-18 00:08:05 +01:00

131 lines
2.7 KiB
Makefile

if !PLATFORM_WIN32
SUBDIRS = . glue gui-thread-check
else
SUBDIRS = . glue
endif
pkg = gtk
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=gtk-sharp-3.0.pc
SYMBOLS = gtk-symbols.xml
INCLUDE_API = $(top_srcdir)/glib/glib-api.xml $(top_srcdir)/cairo/cairo-api.xml $(top_builddir)/gio/gio-api.xml $(top_builddir)/pango/pango-api.xml $(top_builddir)/atk/atk-api.xml $(top_builddir)/gdk/gdk-api.xml
METADATA = Gtk.metadata
references = $(top_builddir)/glib/glib-sharp.dll $(top_builddir)/cairo/cairo-sharp.dll $(top_builddir)/gio/gio-sharp.dll $(top_builddir)/pango/pango-sharp.dll $(top_builddir)/atk/atk-sharp.dll $(top_builddir)/gdk/gdk-sharp.dll
glue_includes = gtk/gtk.h
sources = \
Accel.cs \
AccelKey.cs \
Action.cs \
ActionEntry.cs \
ActionGroup.cs \
Adjustment.cs \
Application.cs \
ArrayExtensions.cs \
Bin.cs \
BindingAttribute.cs \
Builder.cs \
Button.cs \
Calendar.cs \
CellAreaBox.cs \
CellLayoutAdapter.cs \
CellRenderer.cs \
CellView.cs \
CheckMenuItem.cs \
ChildPropertyAttribute.cs \
Clipboard.cs \
ColorSelection.cs \
ComboBox.cs \
ComboBoxText.cs \
Container.cs \
Dialog.cs \
Drag.cs \
Entry.cs \
EntryCompletion.cs \
FileChooserDialog.cs \
FileChooserNative.cs \
Frame.cs \
Global.cs \
HBox.cs \
HScale.cs \
ICellLayout.cs \
IconFactory.cs \
IconSet.cs \
IconTheme.cs \
IconView.cs \
Image.cs \
ImageMenuItem.cs \
Init.cs \
ITreeModel.cs \
ITreeNode.cs \
Key.cs \
Label.cs \
ListStore.cs \
Menu.cs \
MenuItem.cs \
MessageDialog.cs \
NativeDialog.cs \
NodeCellDataFunc.cs \
NodeSelection.cs \
NodeStore.cs \
NodeView.cs \
Notebook.cs \
PaperSize.cs \
Plug.cs \
Printer.cs \
RadioAction.cs \
RadioActionEntry.cs \
RadioButton.cs \
RadioMenuItem.cs \
RadioToolButton.cs \
RecentManager.cs \
RowsReorderedHandler.cs \
ScrolledWindow.cs \
SelectionData.cs \
Settings.cs \
SpinButton.cs \
StatusIcon.cs \
Stock.cs \
StockItem.cs \
StockManager.cs \
Style.cs \
StyleContext.cs \
StyleProviderPriority.cs \
Target.cs \
TargetEntry.cs \
TargetList.cs \
TextAttributes.cs \
TextBuffer.cs \
TextChildAnchor.cs \
TextIter.cs \
TextMark.cs \
TextTag.cs \
TextView.cs \
ThreadNotify.cs \
ToggleActionEntry.cs \
TreeEnumerator.cs \
TreeIter.cs \
TreeMenu.cs \
TreeModelAdapter.cs \
TreeModelFilter.cs \
TreeModelSort.cs \
TreeNode.cs \
TreeNodeAttribute.cs \
TreeNodeValueAttribute.cs \
TreePath.cs \
TreeSelection.cs \
TreeStore.cs \
TreeView.cs \
TreeViewColumn.cs \
UIManager.cs \
VBox.cs \
Viewport.cs \
VScale.cs \
Widget.cs \
Window.cs
add_dist = gtk-sharp-3.0.pc.in
include $(top_srcdir)/Makefile.include