| Newsgroups |
gmane.comp.gnome.mono.patches |
| Message-ID |
<00000141b2cf8006-b18550c1-c51e-4532-a266-573bee28a479-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/gtk-sharp
Compare: https://github.com/mono/gtk-sharp/compare/b15f2eede1ec...8b998861e17c
Commit: b2fb84d14b2970a2b3439f8cd8ab1a940b0fe98a
Author: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-13 16:38:33 GMT
URL: https://github.com/mono/gtk-sharp/commit/b2fb84d14b2970a2b3439f8cd8ab1a940b0fe98a
Clean up .gitignore files
Changed paths:
M .gitignore
M generator/.gitignore
M parser/.gitignore
Removed paths:
D atk/.gitignore
D doc/.gitignore
D gdk/.gitignore
D gio/.gitignore
D glib/.gitignore
D gtk/.gitignore
D pango/.gitignore
Modified: .gitignore
===================================================================
@@ -32,3 +32,4 @@ stamp-h1
AssemblyInfo.cs
Makefile
Makefile.in
+doc/gtk-sharp-3-docs.*
Removed: atk/.gitignore
===================================================================
@@ -1 +0,0 @@
-*.snk
Removed: doc/.gitignore
===================================================================
@@ -1,2 +0,0 @@
-gtk-sharp-docs.*
-gtk-sharp-3-docs.*
Removed: gdk/.gitignore
===================================================================
@@ -1 +0,0 @@
-*.snk
Modified: generator/.gitignore
===================================================================
@@ -1 +1,2 @@
+gapi*-fixup
gapi*-codegen
Removed: gio/.gitignore
===================================================================
@@ -1 +0,0 @@
-*.snk
Removed: glib/.gitignore
===================================================================
@@ -1 +0,0 @@
-*.snk
Removed: gtk/.gitignore
===================================================================
@@ -1 +0,0 @@
-*.snk
Removed: pango/.gitignore
===================================================================
@@ -1 +0,0 @@
-*.snk
Modified: parser/.gitignore
===================================================================
@@ -1,2 +1 @@
-gapi*-fixup
gapi*-parser
Commit: 8b998861e17c544bc4cb62b3f002158e6e7bd929
Author: Andrés G. Aragoneses <[email protected]> (knocte)
Committer: Bertrand Lorentz <[email protected]> (bl8)
Date: 2013-10-13 17:10:03 GMT
URL: https://github.com/mono/gtk-sharp/commit/8b998861e17c544bc4cb62b3f002158e6e7bd929
Convert some dynamic casts to static casts
There is no null check after these casts so if they fail they would
generate a NullReferenceException. By changing them to static casts
we would get a InvalidCastException which are much less misleading.
Changed paths:
M generator/GObjectVM.cs
M glib/ToggleRef.cs
M glib/Value.cs
Modified: generator/GObjectVM.cs
===================================================================
@@ -81,7 +81,7 @@ enum VMCodeType {
VMCodeType CodeType {
get {
- if (!(container_type as ObjectBase).CanGenerateClassStruct || force_glue_generation) {
+ if (!((ObjectBase)container_type).CanGenerateClassStruct || force_glue_generation) {
if (BlockGlue)
return VMCodeType.None;
else
Modified: glib/ToggleRef.cs
===================================================================
@@ -52,7 +52,7 @@ public ToggleRef (GLib.Object target)
else if (reference is GLib.Object)
return reference as GLib.Object;
- WeakReference weak = reference as WeakReference;
+ WeakReference weak = (WeakReference)reference;
return weak.Target as GLib.Object;
}
}
@@ -108,7 +108,7 @@ static void RefToggled (IntPtr data, IntPtr handle, bool is_last_ref)
{
try {
GCHandle gch = (GCHandle) data;
- ToggleRef tref = gch.Target as ToggleRef;
+ ToggleRef tref = (ToggleRef)gch.Target;
tref.Toggle (is_last_ref);
} catch (Exception e) {
ExceptionManager.RaiseUnhandledException (e, false);
Modified: glib/Value.cs
===================================================================
@@ -534,7 +534,7 @@ public object Val
if(value is GLib.Object)
g_value_set_object (ref this, (value as GLib.Object).Handle);
else
- g_value_set_object (ref this, (value as GLib.GInterfaceAdapter).Handle);
+ g_value_set_object (ref this, ((GInterfaceAdapter)value).Handle);
else if (GType.Is (type, GType.Boxed)) {
if (value is IWrapper) {
g_value_set_boxed (ref this, ((IWrapper)value).Handle);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches