GtkSharp/gtk
Andrés G. Aragoneses 7ce1457c13 gtk: Fix a KeyNotFoundException regression in Destroyed event
The migration to generic collections [1] caused another regression: a
KeyNotFoundException was being thrown (instead of returning null like
HashTable did) when using the Destroyed event of the Gtk.Widget class.

[1] 6850b343ca

A particular example of this problem is Banshee's Import Media feature,
which was generating the following stacktrace:

[1 Debug 23:24:36.898] Starting - Importing Media
Marshaling activate signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException
to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Collections.Generic.KeyNotFoundException: The given key was not
present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.IntPtr,System.Delegate].get_Item
(IntPtr key) [0x00000] in <filename unknown>:0
  at Gtk.Widget.add_Destroyed (System.EventHandler value) [0x00000] in
/home/knocte/gtk-sharp/gtk/Widget.cs:333
  at Hyena.Widgets.AnimatedWidget..ctor (Gtk.Widget widget, UInt32
duration, Easing easing, Blocking blocking, Boolean horizontal)
[0x0004d] in /home/knocte/banshee/src/Hyena/Hyena.Gui/Hyena.Widgets/AnimatedWidget.cs:78
2013-09-24 18:58:33 +02:00
..
glue
gui-thread-check
.gitignore
Accel.cs
AccelKey.cs
Action.cs
ActionEntry.cs
ActionGroup.cs
Adjustment.cs
Application.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
Frame.cs
Global.cs
gtk-api.raw
gtk-sharp-3.0.pc.in
gtk-sharp.dll.config.in
gtk-symbols.xml
gtk.csproj
Gtk.metadata
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
Makefile.am
Menu.cs
MenuItem.cs
MessageDialog.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
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 gtk: Add license header in TreeModelFilter.cs 2012-08-05 19:06:18 +02:00
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