Created
July 21, 2016 09:16
-
-
Save Therzok/22ebd51501225e108099fd5d59e6b0b2 to your computer and use it in GitHub Desktop.
Gtk# generator change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git b/atk/generated/AtkSharp.KeySnoopFuncNative.cs a/atk/generated/AtkSharp.KeySnoopFuncNative.cs | |
index c85953b..62b1716 100644 | |
--- b/atk/generated/AtkSharp.KeySnoopFuncNative.cs | |
+++ a/atk/generated/AtkSharp.KeySnoopFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace AtkSharp { | |
{ | |
IntPtr native_evnt = GLib.Marshaller.StructureToPtrAlloc (evnt); | |
int result = native_cb (native_evnt, __data); | |
- evnt = Atk.KeyEventStruct.New (native_evnt); | |
Marshal.FreeHGlobal (native_evnt); | |
return result; | |
} | |
diff --git b/atk/generated/AtkSharp.PropertyChangeHandlerNative.cs a/atk/generated/AtkSharp.PropertyChangeHandlerNative.cs | |
index 9f3f3f5..70b51cd 100644 | |
--- b/atk/generated/AtkSharp.PropertyChangeHandlerNative.cs | |
+++ a/atk/generated/AtkSharp.PropertyChangeHandlerNative.cs | |
@@ -44,7 +44,6 @@ namespace AtkSharp { | |
{ | |
IntPtr native_arg2 = GLib.Marshaller.StructureToPtrAlloc (arg2); | |
native_cb (arg1 == null ? IntPtr.Zero : arg1.Handle, native_arg2); | |
- arg2 = Atk.PropertyValues.New (native_arg2); | |
Marshal.FreeHGlobal (native_arg2); | |
} | |
} | |
diff --git b/atk/generated/NoOpObject.cs a/atk/generated/NoOpObject.cs | |
index 4f49f05..59dd220 100644 | |
--- b/atk/generated/NoOpObject.cs | |
+++ a/atk/generated/NoOpObject.cs | |
@@ -671,7 +671,6 @@ namespace Atk { | |
IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc (rect); | |
IntPtr raw_ret = atk_text_get_bounded_ranges(Handle, native_rect, (int) coord_type, (int) x_clip_type, (int) y_clip_type); | |
Atk.TextRange ret = Atk.TextRange.New (raw_ret); | |
- rect = Atk.TextRectangle.New (native_rect); | |
Marshal.FreeHGlobal (native_rect); | |
return ret; | |
} | |
@@ -965,7 +964,6 @@ namespace Atk { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
bool raw_ret = atk_value_set_current_value(Handle, native_value); | |
bool ret = raw_ret; | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
return ret; | |
} | |
diff --git b/atk/generated/Object.cs a/atk/generated/Object.cs | |
index d9d052c..3b199ba 100644 | |
--- b/atk/generated/Object.cs | |
+++ a/atk/generated/Object.cs | |
@@ -420,7 +420,6 @@ namespace Atk { | |
{ | |
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values); | |
atksharp_object_base_property_change (Handle, native_values); | |
- values = Atk.PropertyValues.New (native_values); | |
Marshal.FreeHGlobal (native_values); | |
} | |
diff --git b/atk/generated/TextAdapter.cs a/atk/generated/TextAdapter.cs | |
index 5f0be0a..4e06d9e 100644 | |
--- b/atk/generated/TextAdapter.cs | |
+++ a/atk/generated/TextAdapter.cs | |
@@ -623,7 +623,6 @@ namespace Atk { | |
public static void FreeRanges(Atk.TextRange ranges) { | |
IntPtr native_ranges = GLib.Marshaller.StructureToPtrAlloc (ranges); | |
atk_text_free_ranges(native_ranges); | |
- ranges = Atk.TextRange.New (native_ranges); | |
Marshal.FreeHGlobal (native_ranges); | |
} | |
@@ -734,7 +733,6 @@ namespace Atk { | |
IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc (rect); | |
IntPtr raw_ret = atk_text_get_bounded_ranges(Handle, native_rect, (int) coord_type, (int) x_clip_type, (int) y_clip_type); | |
Atk.TextRange ret = Atk.TextRange.New (raw_ret); | |
- rect = Atk.TextRectangle.New (native_rect); | |
Marshal.FreeHGlobal (native_rect); | |
return ret; | |
} | |
diff --git b/atk/generated/ValueAdapter.cs a/atk/generated/ValueAdapter.cs | |
index 6769418..f76c55c 100644 | |
--- b/atk/generated/ValueAdapter.cs | |
+++ a/atk/generated/ValueAdapter.cs | |
@@ -201,7 +201,6 @@ namespace Atk { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
bool raw_ret = atk_value_set_current_value(Handle, native_value); | |
bool ret = raw_ret; | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
return ret; | |
} | |
diff --git b/gdk/generated/CairoHelper.cs a/gdk/generated/CairoHelper.cs | |
index 97f0831..f69d361 100644 | |
--- b/gdk/generated/CairoHelper.cs | |
+++ a/gdk/generated/CairoHelper.cs | |
@@ -22,7 +22,6 @@ namespace Gdk { | |
public static void SetSourceColor(Cairo.Context cr, Gdk.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
gdk_cairo_set_source_color(cr == null ? IntPtr.Zero : cr.Handle, native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
@@ -55,7 +54,6 @@ namespace Gdk { | |
public static void Rectangle(Cairo.Context cr, Gdk.Rectangle rectangle) { | |
IntPtr native_rectangle = GLib.Marshaller.StructureToPtrAlloc (rectangle); | |
gdk_cairo_rectangle(cr == null ? IntPtr.Zero : cr.Handle, native_rectangle); | |
- rectangle = Gdk.Rectangle.New (native_rectangle); | |
Marshal.FreeHGlobal (native_rectangle); | |
} | |
diff --git b/gdk/generated/Char.cs a/gdk/generated/Char.cs | |
index 14259bf..048a5b8 100644 | |
--- b/gdk/generated/Char.cs | |
+++ a/gdk/generated/Char.cs | |
@@ -17,7 +17,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
int raw_ret = gdk_char_height(native_font, GLib.Marshaller.StringToPtrGStrdup(character)); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
return ret; | |
} | |
@@ -30,7 +29,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
int raw_ret = gdk_char_width(native_font, GLib.Marshaller.StringToPtrGStrdup(character)); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
return ret; | |
} | |
@@ -43,7 +41,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
int raw_ret = gdk_char_measure(native_font, GLib.Marshaller.StringToPtrGStrdup(character)); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
return ret; | |
} | |
@@ -56,7 +53,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
int raw_ret = gdk_char_width_wc(native_font, character); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
return ret; | |
} | |
diff --git b/gdk/generated/Color.cs a/gdk/generated/Color.cs | |
index 5c90357..5b5fb22 100644 | |
--- b/gdk/generated/Color.cs | |
+++ a/gdk/generated/Color.cs | |
@@ -32,7 +32,6 @@ namespace Gdk { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
int raw_ret = gdk_color_black(colormap == null ? IntPtr.Zero : colormap.Handle, native_color); | |
int ret = raw_ret; | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
return ret; | |
} | |
@@ -59,7 +58,6 @@ namespace Gdk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- colorb = Gdk.Color.New (native_colorb); | |
Marshal.FreeHGlobal (native_colorb); | |
return ret; | |
} | |
@@ -72,7 +70,6 @@ namespace Gdk { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
int raw_ret = gdk_color_change(colormap == null ? IntPtr.Zero : colormap.Handle, native_color); | |
int ret = raw_ret; | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
return ret; | |
} | |
@@ -85,7 +82,6 @@ namespace Gdk { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
int raw_ret = gdk_color_alloc(colormap == null ? IntPtr.Zero : colormap.Handle, native_color); | |
int ret = raw_ret; | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
return ret; | |
} | |
@@ -112,7 +108,6 @@ namespace Gdk { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
int raw_ret = gdk_color_white(colormap == null ? IntPtr.Zero : colormap.Handle, native_color); | |
int ret = raw_ret; | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
return ret; | |
} | |
diff --git b/gdk/generated/Cursor.cs a/gdk/generated/Cursor.cs | |
index 599fbec..5304e42 100644 | |
--- b/gdk/generated/Cursor.cs | |
+++ a/gdk/generated/Cursor.cs | |
@@ -107,9 +107,7 @@ namespace Gdk { | |
IntPtr native_fg = GLib.Marshaller.StructureToPtrAlloc (fg); | |
IntPtr native_bg = GLib.Marshaller.StructureToPtrAlloc (bg); | |
Raw = gdk_cursor_new_from_pixmap(source == null ? IntPtr.Zero : source.Handle, mask == null ? IntPtr.Zero : mask.Handle, native_fg, native_bg, x, y); | |
- fg = Gdk.Color.New (native_fg); | |
Marshal.FreeHGlobal (native_fg); | |
- bg = Gdk.Color.New (native_bg); | |
Marshal.FreeHGlobal (native_bg); | |
} | |
diff --git b/gdk/generated/Display.cs a/gdk/generated/Display.cs | |
index 5a26b1e..c8647d1 100644 | |
--- b/gdk/generated/Display.cs | |
+++ a/gdk/generated/Display.cs | |
@@ -285,7 +285,6 @@ namespace Gdk { | |
IntPtr native_new_hooks = GLib.Marshaller.StructureToPtrAlloc (new_hooks); | |
IntPtr raw_ret = gdk_display_set_pointer_hooks(Handle, native_new_hooks); | |
Gdk.DisplayPointerHooks ret = Gdk.DisplayPointerHooks.New (raw_ret); | |
- new_hooks = Gdk.DisplayPointerHooks.New (native_new_hooks); | |
Marshal.FreeHGlobal (native_new_hooks); | |
return ret; | |
} | |
diff --git b/gdk/generated/Drawable.cs a/gdk/generated/Drawable.cs | |
index 98e13d6..2b2131d 100644 | |
--- b/gdk/generated/Drawable.cs | |
+++ a/gdk/generated/Drawable.cs | |
@@ -104,7 +104,6 @@ namespace Gdk { | |
public void DrawTrapezoids(Gdk.GC gc, Gdk.Trapezoid trapezoids, int n_trapezoids) { | |
IntPtr native_trapezoids = GLib.Marshaller.StructureToPtrAlloc (trapezoids); | |
gdk_draw_trapezoids(Handle, gc == null ? IntPtr.Zero : gc.Handle, native_trapezoids, n_trapezoids); | |
- trapezoids = Gdk.Trapezoid.New (native_trapezoids); | |
Marshal.FreeHGlobal (native_trapezoids); | |
} | |
@@ -143,7 +142,6 @@ namespace Gdk { | |
public void DrawSegments(Gdk.GC gc, Gdk.Segment segs, int nsegs) { | |
IntPtr native_segs = GLib.Marshaller.StructureToPtrAlloc (segs); | |
gdk_draw_segments(Handle, gc == null ? IntPtr.Zero : gc.Handle, native_segs, nsegs); | |
- segs = Gdk.Segment.New (native_segs); | |
Marshal.FreeHGlobal (native_segs); | |
} | |
@@ -209,9 +207,7 @@ namespace Gdk { | |
IntPtr native_foreground = GLib.Marshaller.StructureToPtrAlloc (foreground); | |
IntPtr native_background = GLib.Marshaller.StructureToPtrAlloc (background); | |
gdk_draw_layout_line_with_colors(Handle, gc == null ? IntPtr.Zero : gc.Handle, x, y, line == null ? IntPtr.Zero : line.Handle, native_foreground, native_background); | |
- foreground = Gdk.Color.New (native_foreground); | |
Marshal.FreeHGlobal (native_foreground); | |
- background = Gdk.Color.New (native_background); | |
Marshal.FreeHGlobal (native_background); | |
} | |
@@ -268,7 +264,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text); | |
gdk_draw_text(Handle, native_font, gc == null ? IntPtr.Zero : gc.Handle, x, y, native_text, System.Text.Encoding.UTF8.GetByteCount (text)); | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
GLib.Marshaller.Free (native_text); | |
} | |
@@ -312,7 +307,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng); | |
gdk_draw_string(Handle, native_font, gc == null ? IntPtr.Zero : gc.Handle, x, y, native_str1ng); | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
GLib.Marshaller.Free (native_str1ng); | |
} | |
@@ -325,7 +319,6 @@ namespace Gdk { | |
uint text; | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
gdk_draw_text_wc(Handle, native_font, gc == null ? IntPtr.Zero : gc.Handle, x, y, out text, text_length); | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
return text; | |
} | |
@@ -336,7 +329,6 @@ namespace Gdk { | |
public void DrawGlyphsTransformed(Gdk.GC gc, Pango.Matrix matrix, Pango.Font font, int x, int y, Pango.GlyphString glyphs) { | |
IntPtr native_matrix = GLib.Marshaller.StructureToPtrAlloc (matrix); | |
gdk_draw_glyphs_transformed(Handle, gc == null ? IntPtr.Zero : gc.Handle, native_matrix, font == null ? IntPtr.Zero : font.Handle, x, y, glyphs == null ? IntPtr.Zero : glyphs.Handle); | |
- matrix = Pango.Matrix.New (native_matrix); | |
Marshal.FreeHGlobal (native_matrix); | |
} | |
@@ -386,9 +378,7 @@ namespace Gdk { | |
IntPtr native_foreground = GLib.Marshaller.StructureToPtrAlloc (foreground); | |
IntPtr native_background = GLib.Marshaller.StructureToPtrAlloc (background); | |
gdk_draw_layout_with_colors(Handle, gc == null ? IntPtr.Zero : gc.Handle, x, y, layout == null ? IntPtr.Zero : layout.Handle, native_foreground, native_background); | |
- foreground = Gdk.Color.New (native_foreground); | |
Marshal.FreeHGlobal (native_foreground); | |
- background = Gdk.Color.New (native_background); | |
Marshal.FreeHGlobal (native_background); | |
} | |
diff --git b/gdk/generated/Font.cs a/gdk/generated/Font.cs | |
index 79d9cde..286ffed 100644 | |
--- b/gdk/generated/Font.cs | |
+++ a/gdk/generated/Font.cs | |
@@ -70,7 +70,6 @@ namespace Gdk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- fontb = Gdk.Font.New (native_fontb); | |
Marshal.FreeHGlobal (native_fontb); | |
return ret; | |
} | |
diff --git b/gdk/generated/GC.cs a/gdk/generated/GC.cs | |
index 03d1677..0da49bc 100644 | |
--- b/gdk/generated/GC.cs | |
+++ a/gdk/generated/GC.cs | |
@@ -35,7 +35,6 @@ namespace Gdk { | |
} | |
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values); | |
Raw = gdk_gc_new_with_values(drawable == null ? IntPtr.Zero : drawable.Handle, native_values, (int) values_mask); | |
- values = Gdk.GCValues.New (native_values); | |
Marshal.FreeHGlobal (native_values); | |
} | |
@@ -103,7 +102,6 @@ namespace Gdk { | |
public void SetValues(Gdk.GCValues values, Gdk.GCValuesMask values_mask) { | |
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values); | |
gdk_gc_set_values(Handle, native_values, (int) values_mask); | |
- values = Gdk.GCValues.New (native_values); | |
Marshal.FreeHGlobal (native_values); | |
} | |
@@ -131,7 +129,6 @@ namespace Gdk { | |
public void GetValues(Gdk.GCValues values) { | |
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values); | |
gdk_gc_get_values(Handle, native_values); | |
- values = Gdk.GCValues.New (native_values); | |
Marshal.FreeHGlobal (native_values); | |
} | |
@@ -204,7 +201,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_gc_set_background(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -217,7 +213,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_gc_set_font(Handle, native_value); | |
- value = Gdk.Font.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -229,7 +224,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_gc_set_rgb_bg_color(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -266,7 +260,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_gc_set_foreground(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -278,7 +271,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_gc_set_clip_rectangle(Handle, native_value); | |
- value = Gdk.Rectangle.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -290,7 +282,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_gc_set_rgb_fg_color(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/gdk/generated/GdkSharp.SpanFuncNative.cs a/gdk/generated/GdkSharp.SpanFuncNative.cs | |
index 4ac3c9d..ce10f23 100644 | |
--- b/gdk/generated/GdkSharp.SpanFuncNative.cs | |
+++ a/gdk/generated/GdkSharp.SpanFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GdkSharp { | |
{ | |
IntPtr native_span = GLib.Marshaller.StructureToPtrAlloc (span); | |
native_cb (native_span, __data); | |
- span = Gdk.Span.New (native_span); | |
Marshal.FreeHGlobal (native_span); | |
} | |
} | |
diff --git b/gdk/generated/Global.cs a/gdk/generated/Global.cs | |
index c833b9d..560c51c 100644 | |
--- b/gdk/generated/Global.cs | |
+++ a/gdk/generated/Global.cs | |
@@ -82,7 +82,6 @@ namespace Gdk { | |
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng); | |
int raw_ret = gdk_string_width(native_font, native_str1ng); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
GLib.Marshaller.Free (native_str1ng); | |
return ret; | |
@@ -97,7 +96,6 @@ namespace Gdk { | |
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng); | |
int raw_ret = gdk_string_height(native_font, native_str1ng); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
GLib.Marshaller.Free (native_str1ng); | |
return ret; | |
@@ -111,7 +109,6 @@ namespace Gdk { | |
IntPtr native_font = GLib.Marshaller.StructureToPtrAlloc (font); | |
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng); | |
gdk_string_extents(native_font, native_str1ng, out lbearing, out rbearing, out width, out ascent, out descent); | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
GLib.Marshaller.Free (native_str1ng); | |
} | |
@@ -123,7 +120,6 @@ namespace Gdk { | |
IntPtr native_new_hooks = GLib.Marshaller.StructureToPtrAlloc (new_hooks); | |
IntPtr raw_ret = gdk_set_pointer_hooks(native_new_hooks); | |
Gdk.PointerHooks ret = Gdk.PointerHooks.New (raw_ret); | |
- new_hooks = Gdk.PointerHooks.New (native_new_hooks); | |
Marshal.FreeHGlobal (native_new_hooks); | |
return ret; | |
} | |
@@ -154,7 +150,6 @@ namespace Gdk { | |
bool raw_ret = gdk_setting_get(native_name, native_value); | |
bool ret = raw_ret; | |
GLib.Marshaller.Free (native_name); | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
return ret; | |
} | |
@@ -217,7 +212,6 @@ namespace Gdk { | |
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng); | |
int raw_ret = gdk_string_measure(native_font, native_str1ng); | |
int ret = raw_ret; | |
- font = Gdk.Font.New (native_font); | |
Marshal.FreeHGlobal (native_font); | |
GLib.Marshaller.Free (native_str1ng); | |
return ret; | |
diff --git b/gdk/generated/Keymap.cs a/gdk/generated/Keymap.cs | |
index 6771728..5cc1a55 100644 | |
--- b/gdk/generated/Keymap.cs | |
+++ a/gdk/generated/Keymap.cs | |
@@ -140,7 +140,6 @@ namespace Gdk { | |
IntPtr native_key = GLib.Marshaller.StructureToPtrAlloc (key); | |
uint raw_ret = gdk_keymap_lookup_key(Handle, native_key); | |
uint ret = raw_ret; | |
- key = Gdk.KeymapKey.New (native_key); | |
Marshal.FreeHGlobal (native_key); | |
return ret; | |
} | |
diff --git b/gdk/generated/PangoAttrEmbossColor.cs a/gdk/generated/PangoAttrEmbossColor.cs | |
index ec4d4fb..83452df 100644 | |
--- b/gdk/generated/PangoAttrEmbossColor.cs | |
+++ a/gdk/generated/PangoAttrEmbossColor.cs | |
@@ -38,7 +38,6 @@ namespace Gdk { | |
{ | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
Raw = gdk_pango_attr_emboss_color_new(native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
diff --git b/gdk/generated/PangoRenderer.cs a/gdk/generated/PangoRenderer.cs | |
index 29a1e50..02c58b8 100644 | |
--- b/gdk/generated/PangoRenderer.cs | |
+++ a/gdk/generated/PangoRenderer.cs | |
@@ -93,7 +93,6 @@ namespace Gdk { | |
public void SetOverrideColor(Pango.RenderPart part, Gdk.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
gdk_pango_renderer_set_override_color(Handle, (int) part, native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
diff --git b/gdk/generated/Pixbuf.cs a/gdk/generated/Pixbuf.cs | |
index 32cf6c2..6fdd442 100644 | |
--- b/gdk/generated/Pixbuf.cs | |
+++ a/gdk/generated/Pixbuf.cs | |
@@ -237,7 +237,6 @@ namespace Gdk { | |
IntPtr error = IntPtr.Zero; | |
IntPtr raw_ret = gdk_pixbuf_from_pixdata(native_pixdata, copy_pixels, out error); | |
Gdk.Pixbuf ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixbuf; | |
- pixdata = Gdk.Pixdata.New (native_pixdata); | |
Marshal.FreeHGlobal (native_pixdata); | |
if (error != IntPtr.Zero) throw new GLib.GException (error); | |
return ret; | |
diff --git b/gdk/generated/PixbufGifAnim.cs a/gdk/generated/PixbufGifAnim.cs | |
index 78cffda..9f96a35 100644 | |
--- b/gdk/generated/PixbufGifAnim.cs | |
+++ a/gdk/generated/PixbufGifAnim.cs | |
@@ -25,7 +25,6 @@ namespace Gdk { | |
public void FrameComposite(Gdk.PixbufFrame frame) { | |
IntPtr native_frame = GLib.Marshaller.StructureToPtrAlloc (frame); | |
gdk_pixbuf_gif_anim_frame_composite(Handle, native_frame); | |
- frame = Gdk.PixbufFrame.New (native_frame); | |
Marshal.FreeHGlobal (native_frame); | |
} | |
diff --git b/gdk/generated/Pixmap.cs a/gdk/generated/Pixmap.cs | |
index 5e19fa8..01485aa 100644 | |
--- b/gdk/generated/Pixmap.cs | |
+++ a/gdk/generated/Pixmap.cs | |
@@ -58,7 +58,6 @@ namespace Gdk { | |
IntPtr raw_ret = gdk_pixmap_create_from_xpm_d(drawable == null ? IntPtr.Zero : drawable.Handle, out native_mask, native_transparent_color, native_data); | |
Gdk.Pixmap ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixmap; | |
mask = GLib.Object.GetObject(native_mask) as Gdk.Pixmap; | |
- transparent_color = Gdk.Color.New (native_transparent_color); | |
Marshal.FreeHGlobal (native_transparent_color); | |
return ret; | |
} | |
@@ -91,7 +90,6 @@ namespace Gdk { | |
IntPtr raw_ret = gdk_pixmap_colormap_create_from_xpm(drawable == null ? IntPtr.Zero : drawable.Handle, colormap == null ? IntPtr.Zero : colormap.Handle, out native_mask, native_transparent_color, native_filename); | |
Gdk.Pixmap ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixmap; | |
mask = GLib.Object.GetObject(native_mask) as Gdk.Pixmap; | |
- transparent_color = Gdk.Color.New (native_transparent_color); | |
Marshal.FreeHGlobal (native_transparent_color); | |
GLib.Marshaller.Free (native_filename); | |
return ret; | |
@@ -118,7 +116,6 @@ namespace Gdk { | |
IntPtr raw_ret = gdk_pixmap_create_from_xpm(drawable == null ? IntPtr.Zero : drawable.Handle, out native_mask, native_transparent_color, native_filename); | |
Gdk.Pixmap ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixmap; | |
mask = GLib.Object.GetObject(native_mask) as Gdk.Pixmap; | |
- transparent_color = Gdk.Color.New (native_transparent_color); | |
Marshal.FreeHGlobal (native_transparent_color); | |
GLib.Marshaller.Free (native_filename); | |
return ret; | |
@@ -146,7 +143,6 @@ namespace Gdk { | |
IntPtr raw_ret = gdk_pixmap_colormap_create_from_xpm_d(drawable == null ? IntPtr.Zero : drawable.Handle, colormap == null ? IntPtr.Zero : colormap.Handle, out native_mask, native_transparent_color, native_data); | |
Gdk.Pixmap ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixmap; | |
mask = GLib.Object.GetObject(native_mask) as Gdk.Pixmap; | |
- transparent_color = Gdk.Color.New (native_transparent_color); | |
Marshal.FreeHGlobal (native_transparent_color); | |
return ret; | |
} | |
@@ -161,9 +157,7 @@ namespace Gdk { | |
IntPtr raw_ret = gdk_pixmap_create_from_data(drawable == null ? IntPtr.Zero : drawable.Handle, native_data, width, height, depth, native_fg, native_bg); | |
Gdk.Pixmap ret = GLib.Object.GetObject(raw_ret) as Gdk.Pixmap; | |
GLib.Marshaller.Free (native_data); | |
- fg = Gdk.Color.New (native_fg); | |
Marshal.FreeHGlobal (native_fg); | |
- bg = Gdk.Color.New (native_bg); | |
Marshal.FreeHGlobal (native_bg); | |
return ret; | |
} | |
diff --git b/gdk/generated/Rectangle.cs a/gdk/generated/Rectangle.cs | |
index 32ae056..03c04e0 100644 | |
--- b/gdk/generated/Rectangle.cs | |
+++ a/gdk/generated/Rectangle.cs | |
@@ -36,7 +36,6 @@ namespace Gdk { | |
gdk_rectangle_union(this_as_native, native_src2, native_dest); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- src2 = Gdk.Rectangle.New (native_src2); | |
Marshal.FreeHGlobal (native_src2); | |
dest = Gdk.Rectangle.New (native_dest); | |
Marshal.FreeHGlobal (native_dest); | |
@@ -66,7 +65,6 @@ namespace Gdk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- src2 = Gdk.Rectangle.New (native_src2); | |
Marshal.FreeHGlobal (native_src2); | |
dest = Gdk.Rectangle.New (native_dest); | |
Marshal.FreeHGlobal (native_dest); | |
diff --git b/gdk/generated/Region.cs a/gdk/generated/Region.cs | |
index a3a6b9e..9383bc7 100644 | |
--- b/gdk/generated/Region.cs | |
+++ a/gdk/generated/Region.cs | |
@@ -24,7 +24,6 @@ namespace Gdk { | |
IntPtr native_spans = GLib.Marshaller.StructureToPtrAlloc (spans); | |
GdkSharp.SpanFuncWrapper function_wrapper = new GdkSharp.SpanFuncWrapper (function); | |
gdk_region_spans_intersect_foreach(Handle, native_spans, n_spans, sorted, function_wrapper.NativeDelegate, IntPtr.Zero); | |
- spans = Gdk.Span.New (native_spans); | |
Marshal.FreeHGlobal (native_spans); | |
} | |
@@ -49,7 +48,6 @@ namespace Gdk { | |
IntPtr native_rectangle = GLib.Marshaller.StructureToPtrAlloc (rectangle); | |
IntPtr raw_ret = gdk_region_rectangle(native_rectangle); | |
Gdk.Region ret = raw_ret == IntPtr.Zero ? null : (Gdk.Region) GLib.Opaque.GetOpaque (raw_ret, typeof (Gdk.Region), false); | |
- rectangle = Gdk.Rectangle.New (native_rectangle); | |
Marshal.FreeHGlobal (native_rectangle); | |
return ret; | |
} | |
@@ -93,7 +91,6 @@ namespace Gdk { | |
IntPtr native_rectangle = GLib.Marshaller.StructureToPtrAlloc (rectangle); | |
int raw_ret = gdk_region_rect_in(Handle, native_rectangle); | |
Gdk.OverlapType ret = (Gdk.OverlapType) raw_ret; | |
- rectangle = Gdk.Rectangle.New (native_rectangle); | |
Marshal.FreeHGlobal (native_rectangle); | |
return ret; | |
} | |
@@ -136,7 +133,6 @@ namespace Gdk { | |
public void UnionWithRect(Gdk.Rectangle rect) { | |
IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc (rect); | |
gdk_region_union_with_rect(Handle, native_rect); | |
- rect = Gdk.Rectangle.New (native_rect); | |
Marshal.FreeHGlobal (native_rect); | |
} | |
diff --git b/gdk/generated/Screen.cs a/gdk/generated/Screen.cs | |
index 7ad35de..b25ab65 100644 | |
--- b/gdk/generated/Screen.cs | |
+++ a/gdk/generated/Screen.cs | |
@@ -377,7 +377,6 @@ namespace Gdk { | |
bool raw_ret = gdk_screen_get_setting(Handle, native_name, native_value); | |
bool ret = raw_ret; | |
GLib.Marshaller.Free (native_name); | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
return ret; | |
} | |
diff --git b/gdk/generated/Window.cs a/gdk/generated/Window.cs | |
index fdd0af8..151842c 100644 | |
--- b/gdk/generated/Window.cs | |
+++ a/gdk/generated/Window.cs | |
@@ -24,7 +24,6 @@ namespace Gdk { | |
} | |
IntPtr native_attributes = GLib.Marshaller.StructureToPtrAlloc (attributes); | |
Raw = gdk_window_new(parent == null ? IntPtr.Zero : parent.Handle, native_attributes, attributes_mask); | |
- attributes = Gdk.WindowAttr.New (native_attributes); | |
Marshal.FreeHGlobal (native_attributes); | |
} | |
@@ -97,7 +96,6 @@ namespace Gdk { | |
public static void ConstrainSize(Gdk.Geometry geometry, uint flags, int width, int height, out int new_width, out int new_height) { | |
IntPtr native_geometry = GLib.Marshaller.StructureToPtrAlloc (geometry); | |
gdk_window_constrain_size(native_geometry, flags, width, height, out new_width, out new_height); | |
- geometry = Gdk.Geometry.New (native_geometry); | |
Marshal.FreeHGlobal (native_geometry); | |
} | |
@@ -376,7 +374,6 @@ namespace Gdk { | |
public void SetGeometryHints(Gdk.Geometry geometry, Gdk.WindowHints geom_mask) { | |
IntPtr native_geometry = GLib.Marshaller.StructureToPtrAlloc (geometry); | |
gdk_window_set_geometry_hints(Handle, native_geometry, (int) geom_mask); | |
- geometry = Gdk.Geometry.New (native_geometry); | |
Marshal.FreeHGlobal (native_geometry); | |
} | |
@@ -654,7 +651,6 @@ namespace Gdk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gdk_window_set_background(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -686,7 +682,6 @@ namespace Gdk { | |
public void InvalidateRect(Gdk.Rectangle rect, bool invalidate_children) { | |
IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc (rect); | |
gdk_window_invalidate_rect(Handle, native_rect, invalidate_children); | |
- rect = Gdk.Rectangle.New (native_rect); | |
Marshal.FreeHGlobal (native_rect); | |
} | |
@@ -805,7 +800,6 @@ namespace Gdk { | |
public void BeginPaintRect(Gdk.Rectangle rectangle) { | |
IntPtr native_rectangle = GLib.Marshaller.StructureToPtrAlloc (rectangle); | |
gdk_window_begin_paint_rect(Handle, native_rectangle); | |
- rectangle = Gdk.Rectangle.New (native_rectangle); | |
Marshal.FreeHGlobal (native_rectangle); | |
} | |
diff --git b/generator/Parameters.cs a/generator/Parameters.cs | |
index 75dd68f..b3a0abb 100644 | |
--- b/generator/Parameters.cs | |
+++ a/generator/Parameters.cs | |
@@ -488,9 +488,12 @@ namespace GtkSharp.Generation { | |
public override string[] Finish { | |
get { | |
- string[] result = new string [2]; | |
- result [0] = CallName + " = " + FromNative ("native_" + CallName) + ";"; | |
- result [1] = (Generatable as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";"; | |
+ string[] result = new string [PassAs == string.Empty ? 1 : 2]; | |
+ int i = 0; | |
+ if (PassAs != string.Empty) { | |
+ result [i++] = CallName + " = " + FromNative ("native_" + CallName) + ";"; | |
+ } | |
+ result [i++] = (Generatable as IManualMarshaler).ReleaseNative ("native_" + CallName) + ";"; | |
return result; | |
} | |
} | |
diff --git b/gtk/generated/AccelMap.cs a/gtk/generated/AccelMap.cs | |
index 7484158..c813fbd 100644 | |
--- b/gtk/generated/AccelMap.cs | |
+++ a/gtk/generated/AccelMap.cs | |
@@ -187,7 +187,6 @@ namespace Gtk { | |
bool raw_ret = gtk_accel_map_lookup_entry(native_accel_path, native_key); | |
bool ret = raw_ret; | |
GLib.Marshaller.Free (native_accel_path); | |
- key = Gtk.AccelKey.New (native_key); | |
Marshal.FreeHGlobal (native_key); | |
return ret; | |
} | |
diff --git b/gtk/generated/CellRenderer.cs a/gtk/generated/CellRenderer.cs | |
index c676254..11090e4 100644 | |
--- b/gtk/generated/CellRenderer.cs | |
+++ a/gtk/generated/CellRenderer.cs | |
@@ -334,9 +334,7 @@ namespace Gtk { | |
bool raw_ret = gtk_cell_renderer_activate(Handle, evnt == null ? IntPtr.Zero : evnt.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_path, native_background_area, native_cell_area, (int) flags); | |
bool ret = raw_ret; | |
GLib.Marshaller.Free (native_path); | |
- background_area = Gdk.Rectangle.New (native_background_area); | |
Marshal.FreeHGlobal (native_background_area); | |
- cell_area = Gdk.Rectangle.New (native_cell_area); | |
Marshal.FreeHGlobal (native_cell_area); | |
return ret; | |
} | |
@@ -349,11 +347,8 @@ namespace Gtk { | |
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area); | |
IntPtr native_expose_area = GLib.Marshaller.StructureToPtrAlloc (expose_area); | |
gtk_cell_renderer_render(Handle, window == null ? IntPtr.Zero : window.Handle, widget == null ? IntPtr.Zero : widget.Handle, native_background_area, native_cell_area, native_expose_area, (int) flags); | |
- background_area = Gdk.Rectangle.New (native_background_area); | |
Marshal.FreeHGlobal (native_background_area); | |
- cell_area = Gdk.Rectangle.New (native_cell_area); | |
Marshal.FreeHGlobal (native_cell_area); | |
- expose_area = Gdk.Rectangle.New (native_expose_area); | |
Marshal.FreeHGlobal (native_expose_area); | |
} | |
diff --git b/gtk/generated/CellView.cs a/gtk/generated/CellView.cs | |
index 84b590c..f3c3a60 100644 | |
--- b/gtk/generated/CellView.cs | |
+++ a/gtk/generated/CellView.cs | |
@@ -119,7 +119,6 @@ namespace Gtk { | |
IntPtr native_requisition = GLib.Marshaller.StructureToPtrAlloc (requisition); | |
bool raw_ret = gtk_cell_view_get_size_of_row(Handle, path == null ? IntPtr.Zero : path.Handle, native_requisition); | |
bool ret = raw_ret; | |
- requisition = Gtk.Requisition.New (native_requisition); | |
Marshal.FreeHGlobal (native_requisition); | |
return ret; | |
} | |
@@ -142,7 +141,6 @@ namespace Gtk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_cell_view_set_background_color(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/gtk/generated/Clipboard.cs a/gtk/generated/Clipboard.cs | |
index b50dd0b..d655f35 100644 | |
--- b/gtk/generated/Clipboard.cs | |
+++ a/gtk/generated/Clipboard.cs | |
@@ -195,7 +195,6 @@ namespace Gtk { | |
public void SetCanStore(Gtk.TargetEntry targets, int n_targets) { | |
IntPtr native_targets = GLib.Marshaller.StructureToPtrAlloc (targets); | |
gtk_clipboard_set_can_store(Handle, native_targets, n_targets); | |
- targets = Gtk.TargetEntry.New (native_targets); | |
Marshal.FreeHGlobal (native_targets); | |
} | |
diff --git b/gtk/generated/ColorButton.cs a/gtk/generated/ColorButton.cs | |
index 859bce3..e4e28b8 100644 | |
--- b/gtk/generated/ColorButton.cs | |
+++ a/gtk/generated/ColorButton.cs | |
@@ -41,7 +41,6 @@ namespace Gtk { | |
} | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
Raw = gtk_color_button_new_with_color(native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
@@ -64,7 +63,6 @@ namespace Gtk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_color_button_set_color(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/gtk/generated/ColorSelection.cs a/gtk/generated/ColorSelection.cs | |
index 4083b05..bb603a9 100644 | |
--- b/gtk/generated/ColorSelection.cs | |
+++ a/gtk/generated/ColorSelection.cs | |
@@ -45,7 +45,6 @@ namespace Gtk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_color_selection_set_current_color(Handle, native_value); | |
- value = Gdk.Color.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/gtk/generated/ComboBox.cs a/gtk/generated/ComboBox.cs | |
index 8000815..c262bbe 100644 | |
--- b/gtk/generated/ComboBox.cs | |
+++ a/gtk/generated/ComboBox.cs | |
@@ -276,7 +276,6 @@ namespace Gtk { | |
public void SetActiveIter(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_combo_box_set_active_iter(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/Container.cs a/gtk/generated/Container.cs | |
index c1099e1..5cc0dd0 100644 | |
--- b/gtk/generated/Container.cs | |
+++ a/gtk/generated/Container.cs | |
@@ -358,7 +358,6 @@ namespace Gtk { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_container_child_set_property(Handle, child == null ? IntPtr.Zero : child.Handle, native_property_name, native_value); | |
GLib.Marshaller.Free (native_property_name); | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
} | |
diff --git b/gtk/generated/Draw.cs a/gtk/generated/Draw.cs | |
index feda826..70b413a 100644 | |
--- b/gtk/generated/Draw.cs | |
+++ a/gtk/generated/Draw.cs | |
@@ -120,7 +120,6 @@ namespace Gtk { | |
public static void Polygon(Gtk.Style style, Gdk.Window window, Gtk.StateType state_type, Gtk.ShadowType shadow_type, Gdk.Point points, int npoints, bool fill) { | |
IntPtr native_points = GLib.Marshaller.StructureToPtrAlloc (points); | |
gtk_draw_polygon(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_points, npoints, fill); | |
- points = Gdk.Point.New (native_points); | |
Marshal.FreeHGlobal (native_points); | |
} | |
@@ -131,9 +130,7 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_location = GLib.Marshaller.StructureToPtrAlloc (location); | |
gtk_draw_insertion_cursor(widget == null ? IntPtr.Zero : widget.Handle, drawable == null ? IntPtr.Zero : drawable.Handle, native_area, native_location, is_primary, (int) direction, draw_arrow); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
- location = Gdk.Rectangle.New (native_location); | |
Marshal.FreeHGlobal (native_location); | |
} | |
diff --git b/gtk/generated/EntryCompletion.cs a/gtk/generated/EntryCompletion.cs | |
index ec31f09..b183aa5 100644 | |
--- b/gtk/generated/EntryCompletion.cs | |
+++ a/gtk/generated/EntryCompletion.cs | |
@@ -205,7 +205,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool __ret = gtksharp_entrycompletion_base_cursor_on_match (Handle, model == null ? IntPtr.Zero : model.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return __ret; | |
} | |
@@ -257,7 +256,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool __ret = gtksharp_entrycompletion_base_match_selected (Handle, model == null ? IntPtr.Zero : model.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return __ret; | |
} | |
diff --git b/gtk/generated/FileFilter.cs a/gtk/generated/FileFilter.cs | |
index 66857b0..4817132 100644 | |
--- b/gtk/generated/FileFilter.cs | |
+++ a/gtk/generated/FileFilter.cs | |
@@ -33,7 +33,6 @@ namespace Gtk { | |
IntPtr native_filter_info = GLib.Marshaller.StructureToPtrAlloc (filter_info); | |
bool raw_ret = gtk_file_filter_filter(Handle, native_filter_info); | |
bool ret = raw_ret; | |
- filter_info = Gtk.FileFilterInfo.New (native_filter_info); | |
Marshal.FreeHGlobal (native_filter_info); | |
return ret; | |
} | |
diff --git b/gtk/generated/Gc.cs a/gtk/generated/Gc.cs | |
index 980097f..752fad0 100644 | |
--- b/gtk/generated/Gc.cs | |
+++ a/gtk/generated/Gc.cs | |
@@ -16,7 +16,6 @@ namespace Gtk { | |
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values); | |
IntPtr raw_ret = gtk_gc_get(depth, colormap == null ? IntPtr.Zero : colormap.Handle, native_values, (int) values_mask); | |
Gdk.GC ret = GLib.Object.GetObject(raw_ret) as Gdk.GC; | |
- values = Gdk.GCValues.New (native_values); | |
Marshal.FreeHGlobal (native_values); | |
return ret; | |
} | |
diff --git b/gtk/generated/Global.cs a/gtk/generated/Global.cs | |
index 4b535d8..c941659 100644 | |
--- b/gtk/generated/Global.cs | |
+++ a/gtk/generated/Global.cs | |
@@ -121,7 +121,6 @@ namespace Gtk { | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng); | |
gtk_paint_string(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, native_str1ng); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
GLib.Marshaller.Free (native_str1ng); | |
diff --git b/gtk/generated/GtkSharp.AccelGroupFindFuncNative.cs a/gtk/generated/GtkSharp.AccelGroupFindFuncNative.cs | |
index 21352bc..30b2328 100644 | |
--- b/gtk/generated/GtkSharp.AccelGroupFindFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.AccelGroupFindFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_key = GLib.Marshaller.StructureToPtrAlloc (key); | |
bool result = native_cb (native_key, closure, __data); | |
- key = Gtk.AccelKey.New (native_key); | |
Marshal.FreeHGlobal (native_key); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.CallbackMarshalNative.cs a/gtk/generated/GtkSharp.CallbackMarshalNative.cs | |
index 6376606..303275e 100644 | |
--- b/gtk/generated/GtkSharp.CallbackMarshalNative.cs | |
+++ a/gtk/generated/GtkSharp.CallbackMarshalNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_args = GLib.Marshaller.StructureToPtrAlloc (args); | |
native_cb (objekt == null ? IntPtr.Zero : objekt.Handle, __data, n_args, native_args); | |
- args = Gtk.Arg.New (native_args); | |
Marshal.FreeHGlobal (native_args); | |
} | |
} | |
diff --git b/gtk/generated/GtkSharp.CellLayoutDataFuncNative.cs a/gtk/generated/GtkSharp.CellLayoutDataFuncNative.cs | |
index f427059..dc8855f 100644 | |
--- b/gtk/generated/GtkSharp.CellLayoutDataFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.CellLayoutDataFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
native_cb (cell_layout == null ? IntPtr.Zero : cell_layout.Handle, cell == null ? IntPtr.Zero : cell.Handle, tree_model == null ? IntPtr.Zero : tree_model.Handle, native_iter, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
} | |
diff --git b/gtk/generated/GtkSharp.ColorSelectionChangePaletteFuncNative.cs a/gtk/generated/GtkSharp.ColorSelectionChangePaletteFuncNative.cs | |
index 74d874b..aecce50 100644 | |
--- b/gtk/generated/GtkSharp.ColorSelectionChangePaletteFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.ColorSelectionChangePaletteFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_colors = GLib.Marshaller.StructureToPtrAlloc (colors); | |
native_cb (native_colors, n_colors); | |
- colors = Gdk.Color.New (native_colors); | |
Marshal.FreeHGlobal (native_colors); | |
} | |
} | |
diff --git b/gtk/generated/GtkSharp.ColorSelectionChangePaletteWithScreenFuncNative.cs a/gtk/generated/GtkSharp.ColorSelectionChangePaletteWithScreenFuncNative.cs | |
index 4e12c05..864bdad 100644 | |
--- b/gtk/generated/GtkSharp.ColorSelectionChangePaletteWithScreenFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.ColorSelectionChangePaletteWithScreenFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_colors = GLib.Marshaller.StructureToPtrAlloc (colors); | |
native_cb (screen == null ? IntPtr.Zero : screen.Handle, native_colors, n_colors); | |
- colors = Gdk.Color.New (native_colors); | |
Marshal.FreeHGlobal (native_colors); | |
} | |
} | |
diff --git b/gtk/generated/GtkSharp.EntryCompletionMatchFuncNative.cs a/gtk/generated/GtkSharp.EntryCompletionMatchFuncNative.cs | |
index 5a0240a..97d5e72 100644 | |
--- b/gtk/generated/GtkSharp.EntryCompletionMatchFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.EntryCompletionMatchFuncNative.cs | |
@@ -46,7 +46,6 @@ namespace GtkSharp { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool result = native_cb (completion == null ? IntPtr.Zero : completion.Handle, native_key, native_iter, __data); | |
GLib.Marshaller.Free (native_key); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.FileFilterFuncNative.cs a/gtk/generated/GtkSharp.FileFilterFuncNative.cs | |
index a1aee70..3106214 100644 | |
--- b/gtk/generated/GtkSharp.FileFilterFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.FileFilterFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_filter_info = GLib.Marshaller.StructureToPtrAlloc (filter_info); | |
bool result = native_cb (native_filter_info, __data); | |
- filter_info = Gtk.FileFilterInfo.New (native_filter_info); | |
Marshal.FreeHGlobal (native_filter_info); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.RcPropertyParserNative.cs a/gtk/generated/GtkSharp.RcPropertyParserNative.cs | |
index 9cf816e..951047b 100644 | |
--- b/gtk/generated/GtkSharp.RcPropertyParserNative.cs | |
+++ a/gtk/generated/GtkSharp.RcPropertyParserNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_property_value = GLib.Marshaller.StructureToPtrAlloc (property_value); | |
bool result = native_cb (pspec, new GLib.GString (rc_string).Handle, native_property_value); | |
- property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_property_value); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.RecentFilterFuncNative.cs a/gtk/generated/GtkSharp.RecentFilterFuncNative.cs | |
index d541aa2..526c3e2 100644 | |
--- b/gtk/generated/GtkSharp.RecentFilterFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.RecentFilterFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_filter_info = GLib.Marshaller.StructureToPtrAlloc (filter_info); | |
bool result = native_cb (native_filter_info, __data); | |
- filter_info = Gtk.RecentFilterInfo.New (native_filter_info); | |
Marshal.FreeHGlobal (native_filter_info); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.TextBufferDeserializeFuncNative.cs a/gtk/generated/GtkSharp.TextBufferDeserializeFuncNative.cs | |
index 0846266..38d9126 100644 | |
--- b/gtk/generated/GtkSharp.TextBufferDeserializeFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TextBufferDeserializeFuncNative.cs | |
@@ -45,7 +45,6 @@ namespace GtkSharp { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr error = IntPtr.Zero; | |
bool result = native_cb (register_buffer == null ? IntPtr.Zero : register_buffer.Handle, content_buffer == null ? IntPtr.Zero : content_buffer.Handle, native_iter, data, new UIntPtr (length), create_tags, __data, out error); | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeCellDataFuncNative.cs a/gtk/generated/GtkSharp.TreeCellDataFuncNative.cs | |
index feb06d4..baab039 100644 | |
--- b/gtk/generated/GtkSharp.TreeCellDataFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeCellDataFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
native_cb (tree_column == null ? IntPtr.Zero : tree_column.Handle, cell == null ? IntPtr.Zero : cell.Handle, tree_model == null ? IntPtr.Zero : tree_model.Handle, native_iter, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeIterCompareFuncNative.cs a/gtk/generated/GtkSharp.TreeIterCompareFuncNative.cs | |
index ebcee88..f77a20e 100644 | |
--- b/gtk/generated/GtkSharp.TreeIterCompareFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeIterCompareFuncNative.cs | |
@@ -45,9 +45,7 @@ namespace GtkSharp { | |
IntPtr native_a = GLib.Marshaller.StructureToPtrAlloc (a); | |
IntPtr native_b = GLib.Marshaller.StructureToPtrAlloc (b); | |
int result = native_cb (model == null ? IntPtr.Zero : model.Handle, native_a, native_b, __data); | |
- a = Gtk.TreeIter.New (native_a); | |
Marshal.FreeHGlobal (native_a); | |
- b = Gtk.TreeIter.New (native_b); | |
Marshal.FreeHGlobal (native_b); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeModelFilterModifyFuncNative.cs a/gtk/generated/GtkSharp.TreeModelFilterModifyFuncNative.cs | |
index 2b17798..fccc014 100644 | |
--- b/gtk/generated/GtkSharp.TreeModelFilterModifyFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeModelFilterModifyFuncNative.cs | |
@@ -45,7 +45,6 @@ namespace GtkSharp { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
native_cb (model == null ? IntPtr.Zero : model.Handle, native_iter, native_value, column, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
diff --git b/gtk/generated/GtkSharp.TreeModelFilterVisibleFuncNative.cs a/gtk/generated/GtkSharp.TreeModelFilterVisibleFuncNative.cs | |
index 7838785..24b3626 100644 | |
--- b/gtk/generated/GtkSharp.TreeModelFilterVisibleFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeModelFilterVisibleFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool result = native_cb (model == null ? IntPtr.Zero : model.Handle, native_iter, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeModelForeachFuncNative.cs a/gtk/generated/GtkSharp.TreeModelForeachFuncNative.cs | |
index d4696e8..1271aae 100644 | |
--- b/gtk/generated/GtkSharp.TreeModelForeachFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeModelForeachFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool result = native_cb (model == null ? IntPtr.Zero : model.Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeSelectionForeachFuncNative.cs a/gtk/generated/GtkSharp.TreeSelectionForeachFuncNative.cs | |
index 5b95c8e..6df7698 100644 | |
--- b/gtk/generated/GtkSharp.TreeSelectionForeachFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeSelectionForeachFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
native_cb (model == null ? IntPtr.Zero : model.Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeViewRowSeparatorFuncNative.cs a/gtk/generated/GtkSharp.TreeViewRowSeparatorFuncNative.cs | |
index e293b88..7ef78bd 100644 | |
--- b/gtk/generated/GtkSharp.TreeViewRowSeparatorFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeViewRowSeparatorFuncNative.cs | |
@@ -44,7 +44,6 @@ namespace GtkSharp { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool result = native_cb (model == null ? IntPtr.Zero : model.Handle, native_iter, __data); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return result; | |
} | |
diff --git b/gtk/generated/GtkSharp.TreeViewSearchEqualFuncNative.cs a/gtk/generated/GtkSharp.TreeViewSearchEqualFuncNative.cs | |
index 52e480c..c23574c 100644 | |
--- b/gtk/generated/GtkSharp.TreeViewSearchEqualFuncNative.cs | |
+++ a/gtk/generated/GtkSharp.TreeViewSearchEqualFuncNative.cs | |
@@ -46,7 +46,6 @@ namespace GtkSharp { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool result = native_cb (model == null ? IntPtr.Zero : model.Handle, column, native_key, native_iter, __data); | |
GLib.Marshaller.Free (native_key); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return result; | |
} | |
diff --git b/gtk/generated/IMContext.cs a/gtk/generated/IMContext.cs | |
index 5f8bd5d..db2bca9 100644 | |
--- b/gtk/generated/IMContext.cs | |
+++ a/gtk/generated/IMContext.cs | |
@@ -350,7 +350,6 @@ namespace Gtk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_im_context_set_cursor_location(Handle, native_value); | |
- value = Gdk.Rectangle.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/gtk/generated/IconInfo.cs a/gtk/generated/IconInfo.cs | |
index d29febb..44b3589 100644 | |
--- b/gtk/generated/IconInfo.cs | |
+++ a/gtk/generated/IconInfo.cs | |
@@ -48,7 +48,6 @@ namespace Gtk { | |
IntPtr native_rectangle = GLib.Marshaller.StructureToPtrAlloc (rectangle); | |
bool raw_ret = gtk_icon_info_get_embedded_rect(Handle, native_rectangle); | |
bool ret = raw_ret; | |
- rectangle = Gdk.Rectangle.New (native_rectangle); | |
Marshal.FreeHGlobal (native_rectangle); | |
return ret; | |
} | |
@@ -123,7 +122,6 @@ namespace Gtk { | |
IntPtr native_points = GLib.Marshaller.StructureToPtrAlloc (points); | |
bool raw_ret = gtk_icon_info_get_attach_points(Handle, native_points, out n_points); | |
bool ret = raw_ret; | |
- points = Gdk.Point.New (native_points); | |
Marshal.FreeHGlobal (native_points); | |
return ret; | |
} | |
diff --git b/gtk/generated/ItemFactory.cs a/gtk/generated/ItemFactory.cs | |
index 43ebf06..e365a91 100644 | |
--- b/gtk/generated/ItemFactory.cs | |
+++ a/gtk/generated/ItemFactory.cs | |
@@ -54,7 +54,6 @@ namespace Gtk { | |
public void CreateItemsAc(uint n_entries, Gtk.ItemFactoryEntry entries, IntPtr callback_data, uint callback_type) { | |
IntPtr native_entries = GLib.Marshaller.StructureToPtrAlloc (entries); | |
gtk_item_factory_create_items_ac(Handle, n_entries, native_entries, callback_data, callback_type); | |
- entries = Gtk.ItemFactoryEntry.New (native_entries); | |
Marshal.FreeHGlobal (native_entries); | |
} | |
@@ -64,7 +63,6 @@ namespace Gtk { | |
public void DeleteEntry(Gtk.ItemFactoryEntry entry) { | |
IntPtr native_entry = GLib.Marshaller.StructureToPtrAlloc (entry); | |
gtk_item_factory_delete_entry(Handle, native_entry); | |
- entry = Gtk.ItemFactoryEntry.New (native_entry); | |
Marshal.FreeHGlobal (native_entry); | |
} | |
@@ -110,7 +108,6 @@ namespace Gtk { | |
public static void CreateMenuEntries(uint n_entries, Gtk.MenuEntry entries) { | |
IntPtr native_entries = GLib.Marshaller.StructureToPtrAlloc (entries); | |
gtk_item_factory_create_menu_entries(n_entries, native_entries); | |
- entries = Gtk.MenuEntry.New (native_entries); | |
Marshal.FreeHGlobal (native_entries); | |
} | |
@@ -177,7 +174,6 @@ namespace Gtk { | |
public void CreateItems(uint n_entries, Gtk.ItemFactoryEntry entries, IntPtr callback_data) { | |
IntPtr native_entries = GLib.Marshaller.StructureToPtrAlloc (entries); | |
gtk_item_factory_create_items(Handle, n_entries, native_entries, callback_data); | |
- entries = Gtk.ItemFactoryEntry.New (native_entries); | |
Marshal.FreeHGlobal (native_entries); | |
} | |
@@ -216,7 +212,6 @@ namespace Gtk { | |
public void DeleteEntries(uint n_entries, Gtk.ItemFactoryEntry entries) { | |
IntPtr native_entries = GLib.Marshaller.StructureToPtrAlloc (entries); | |
gtk_item_factory_delete_entries(Handle, n_entries, native_entries); | |
- entries = Gtk.ItemFactoryEntry.New (native_entries); | |
Marshal.FreeHGlobal (native_entries); | |
} | |
@@ -226,7 +221,6 @@ namespace Gtk { | |
public void CreateItem(Gtk.ItemFactoryEntry entry, IntPtr callback_data, uint callback_type) { | |
IntPtr native_entry = GLib.Marshaller.StructureToPtrAlloc (entry); | |
gtk_item_factory_create_item(Handle, native_entry, callback_data, callback_type); | |
- entry = Gtk.ItemFactoryEntry.New (native_entry); | |
Marshal.FreeHGlobal (native_entry); | |
} | |
diff --git b/gtk/generated/ListStore.cs a/gtk/generated/ListStore.cs | |
index a87ed62..d9182c8 100644 | |
--- b/gtk/generated/ListStore.cs | |
+++ a/gtk/generated/ListStore.cs | |
@@ -38,9 +38,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_position = GLib.Marshaller.StructureToPtrAlloc (position); | |
gtk_list_store_move_before(Handle, native_iter, native_position); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- position = Gtk.TreeIter.New (native_position); | |
Marshal.FreeHGlobal (native_position); | |
} | |
@@ -50,7 +48,6 @@ namespace Gtk { | |
public void SetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_list_store_set_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -71,7 +68,6 @@ namespace Gtk { | |
gtk_list_store_insert_before(Handle, native_iter, native_sibling); | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- sibling = Gtk.TreeIter.New (native_sibling); | |
Marshal.FreeHGlobal (native_sibling); | |
return iter; | |
} | |
@@ -85,9 +81,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_values = GLib.Marshaller.StructureToPtrAlloc (values); | |
gtk_list_store_insert_with_valuesv(Handle, native_iter, position, out columns, native_values, n_values); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- values = (GLib.Value) Marshal.PtrToStructure (native_values, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_values); | |
return columns; | |
} | |
@@ -99,9 +93,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_list_store_set_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
} | |
@@ -112,9 +104,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_position = GLib.Marshaller.StructureToPtrAlloc (position); | |
gtk_list_store_move_after(Handle, native_iter, native_position); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- position = Gtk.TreeIter.New (native_position); | |
Marshal.FreeHGlobal (native_position); | |
} | |
@@ -159,7 +149,6 @@ namespace Gtk { | |
gtk_list_store_insert_after(Handle, native_iter, native_sibling); | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- sibling = Gtk.TreeIter.New (native_sibling); | |
Marshal.FreeHGlobal (native_sibling); | |
return iter; | |
} | |
@@ -195,9 +184,7 @@ namespace Gtk { | |
IntPtr native_a = GLib.Marshaller.StructureToPtrAlloc (a); | |
IntPtr native_b = GLib.Marshaller.StructureToPtrAlloc (b); | |
gtk_list_store_swap(Handle, native_a, native_b); | |
- a = Gtk.TreeIter.New (native_a); | |
Marshal.FreeHGlobal (native_a); | |
- b = Gtk.TreeIter.New (native_b); | |
Marshal.FreeHGlobal (native_b); | |
} | |
@@ -208,7 +195,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_list_store_iter_is_valid(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -251,7 +237,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_path(Handle, native_iter); | |
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -266,7 +251,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- child = Gtk.TreeIter.New (native_child); | |
Marshal.FreeHGlobal (native_child); | |
return ret; | |
} | |
@@ -277,7 +261,6 @@ namespace Gtk { | |
public void RefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_ref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -288,7 +271,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tree_model_get_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
@@ -301,7 +283,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
int raw_ret = gtk_tree_model_iter_n_children(Handle, native_iter); | |
int ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -324,7 +305,6 @@ namespace Gtk { | |
public void EmitRowChanged(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_changed(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -335,7 +315,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_string_from_iter(Handle, native_iter); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -359,7 +338,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_model_iter_has_child(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -374,7 +352,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -417,7 +394,6 @@ namespace Gtk { | |
public void EmitRowHasChildToggled(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_has_child_toggled(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -427,7 +403,6 @@ namespace Gtk { | |
public void GetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_get_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -437,7 +412,6 @@ namespace Gtk { | |
public void EmitRowsReordered(Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_rows_reordered(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, new_order); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -447,7 +421,6 @@ namespace Gtk { | |
public void EmitRowInserted(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_inserted(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -461,7 +434,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -472,7 +444,6 @@ namespace Gtk { | |
public void UnrefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_unref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/PrintSettings.cs a/gtk/generated/PrintSettings.cs | |
index a7a1453..51516f1 100644 | |
--- b/gtk/generated/PrintSettings.cs | |
+++ a/gtk/generated/PrintSettings.cs | |
@@ -312,7 +312,6 @@ namespace Gtk { | |
public void SetPageRanges(Gtk.PageRange page_ranges, int num_ranges) { | |
IntPtr native_page_ranges = GLib.Marshaller.StructureToPtrAlloc (page_ranges); | |
gtk_print_settings_set_page_ranges(Handle, native_page_ranges, num_ranges); | |
- page_ranges = Gtk.PageRange.New (native_page_ranges); | |
Marshal.FreeHGlobal (native_page_ranges); | |
} | |
diff --git b/gtk/generated/RcProperty.cs a/gtk/generated/RcProperty.cs | |
index dabb486..0c79a81 100644 | |
--- b/gtk/generated/RcProperty.cs | |
+++ a/gtk/generated/RcProperty.cs | |
@@ -31,7 +31,6 @@ namespace Gtk { | |
IntPtr native_property_value = GLib.Marshaller.StructureToPtrAlloc (property_value); | |
bool raw_ret = gtk_rc_property_parse_enum(pspec, new GLib.GString (gstring).Handle, native_property_value); | |
bool ret = raw_ret; | |
- property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_property_value); | |
return ret; | |
} | |
@@ -43,7 +42,6 @@ namespace Gtk { | |
IntPtr native_property_value = GLib.Marshaller.StructureToPtrAlloc (property_value); | |
bool raw_ret = gtk_rc_property_parse_border(pspec, new GLib.GString (gstring).Handle, native_property_value); | |
bool ret = raw_ret; | |
- property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_property_value); | |
return ret; | |
} | |
@@ -55,7 +53,6 @@ namespace Gtk { | |
IntPtr native_property_value = GLib.Marshaller.StructureToPtrAlloc (property_value); | |
bool raw_ret = gtk_rc_property_parse_color(pspec, new GLib.GString (gstring).Handle, native_property_value); | |
bool ret = raw_ret; | |
- property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_property_value); | |
return ret; | |
} | |
@@ -67,7 +64,6 @@ namespace Gtk { | |
IntPtr native_property_value = GLib.Marshaller.StructureToPtrAlloc (property_value); | |
bool raw_ret = gtk_rc_property_parse_requisition(pspec, new GLib.GString (gstring).Handle, native_property_value); | |
bool ret = raw_ret; | |
- property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_property_value); | |
return ret; | |
} | |
@@ -79,7 +75,6 @@ namespace Gtk { | |
IntPtr native_property_value = GLib.Marshaller.StructureToPtrAlloc (property_value); | |
bool raw_ret = gtk_rc_property_parse_flags(pspec, new GLib.GString (gstring).Handle, native_property_value); | |
bool ret = raw_ret; | |
- property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_property_value); | |
return ret; | |
} | |
diff --git b/gtk/generated/RecentFilter.cs a/gtk/generated/RecentFilter.cs | |
index 136a131..24df641 100644 | |
--- b/gtk/generated/RecentFilter.cs | |
+++ a/gtk/generated/RecentFilter.cs | |
@@ -33,7 +33,6 @@ namespace Gtk { | |
IntPtr native_filter_info = GLib.Marshaller.StructureToPtrAlloc (filter_info); | |
bool raw_ret = gtk_recent_filter_filter(Handle, native_filter_info); | |
bool ret = raw_ret; | |
- filter_info = Gtk.RecentFilterInfo.New (native_filter_info); | |
Marshal.FreeHGlobal (native_filter_info); | |
return ret; | |
} | |
diff --git b/gtk/generated/RecentManager.cs a/gtk/generated/RecentManager.cs | |
index 39fa830..17c7dac 100644 | |
--- b/gtk/generated/RecentManager.cs | |
+++ a/gtk/generated/RecentManager.cs | |
@@ -130,7 +130,6 @@ namespace Gtk { | |
bool raw_ret = gtk_recent_manager_add_full(Handle, native_uri, native_recent_data); | |
bool ret = raw_ret; | |
GLib.Marshaller.Free (native_uri); | |
- recent_data = Gtk.RecentData.New (native_recent_data); | |
Marshal.FreeHGlobal (native_recent_data); | |
return ret; | |
} | |
diff --git b/gtk/generated/Selection.cs a/gtk/generated/Selection.cs | |
index 51c87bb..4004732 100644 | |
--- b/gtk/generated/Selection.cs | |
+++ a/gtk/generated/Selection.cs | |
@@ -24,7 +24,6 @@ namespace Gtk { | |
public static void AddTargets(Gtk.Widget widget, Gdk.Atom selection, Gtk.TargetEntry targets, uint ntargets) { | |
IntPtr native_targets = GLib.Marshaller.StructureToPtrAlloc (targets); | |
gtk_selection_add_targets(widget == null ? IntPtr.Zero : widget.Handle, selection == null ? IntPtr.Zero : selection.Handle, native_targets, ntargets); | |
- targets = Gtk.TargetEntry.New (native_targets); | |
Marshal.FreeHGlobal (native_targets); | |
} | |
diff --git b/gtk/generated/Settings.cs a/gtk/generated/Settings.cs | |
index ef22533..da61ab0 100644 | |
--- b/gtk/generated/Settings.cs | |
+++ a/gtk/generated/Settings.cs | |
@@ -38,7 +38,6 @@ namespace Gtk { | |
IntPtr native_svalue = GLib.Marshaller.StructureToPtrAlloc (svalue); | |
gtk_settings_set_property_value(Handle, native_name, native_svalue); | |
GLib.Marshaller.Free (native_name); | |
- svalue = Gtk.SettingsValue.New (native_svalue); | |
Marshal.FreeHGlobal (native_svalue); | |
} | |
diff --git b/gtk/generated/Style.cs a/gtk/generated/Style.cs | |
index dc6f140..a7fb9f3 100644 | |
--- b/gtk/generated/Style.cs | |
+++ a/gtk/generated/Style.cs | |
@@ -200,7 +200,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_focus(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -220,7 +219,6 @@ namespace Gtk { | |
public void ApplyDefaultBackground(Gdk.Window window, bool set_bg, Gtk.StateType state_type, Gdk.Rectangle area, int x, int y, int width, int height) { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
gtk_style_apply_default_background(Handle, window == null ? IntPtr.Zero : window.Handle, set_bg, (int) state_type, native_area, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
} | |
@@ -231,7 +229,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_hline(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x1, x2, y); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -252,7 +249,6 @@ namespace Gtk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_style_set_font(Handle, native_value); | |
- value = Gdk.Font.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -264,7 +260,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_expander(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, (int) expander_style); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -275,7 +270,6 @@ namespace Gtk { | |
public static void PaintExtension(Gtk.Style style, Gdk.Drawable window, Gtk.StateType state_type, Gtk.ShadowType shadow_type, Gdk.Rectangle area, Gtk.Widget widget, string detail, int x, int y, int width, int height, Gtk.PositionType gap_side) { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
gtk_paint_extension(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, GLib.Marshaller.StringToPtrGStrdup(detail), x, y, width, height, (int) gap_side); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
} | |
@@ -286,7 +280,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_option(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -298,7 +291,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_resize_grip(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, (int) edge, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -309,7 +301,6 @@ namespace Gtk { | |
public static void PaintBoxGap(Gtk.Style style, Gdk.Drawable window, Gtk.StateType state_type, Gtk.ShadowType shadow_type, Gdk.Rectangle area, Gtk.Widget widget, string detail, int x, int y, int width, int height, Gtk.PositionType gap_side, int gap_x, int gap_width) { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
gtk_paint_box_gap(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, GLib.Marshaller.StringToPtrGStrdup(detail), x, y, width, height, (int) gap_side, gap_x, gap_width); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
} | |
@@ -320,7 +311,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_vline(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, y1_, y2_, x); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -332,7 +322,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_flat_box(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -344,7 +333,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_shadow(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -363,7 +351,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_layout(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, use_text, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, layout == null ? IntPtr.Zero : layout.Handle); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -375,7 +362,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_diamond(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -387,7 +373,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_check(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -398,7 +383,6 @@ namespace Gtk { | |
public static void PaintShadowGap(Gtk.Style style, Gdk.Drawable window, Gtk.StateType state_type, Gtk.ShadowType shadow_type, Gdk.Rectangle area, Gtk.Widget widget, string detail, int x, int y, int width, int height, Gtk.PositionType gap_side, int gap_x, int gap_width) { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
gtk_paint_shadow_gap(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, GLib.Marshaller.StringToPtrGStrdup(detail), x, y, width, height, (int) gap_side, gap_x, gap_width); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
} | |
@@ -461,7 +445,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_arrow(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, (int) arrow_type, fill, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -473,7 +456,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_polygon(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, points, (points == null ? 0 : points.Length), fill); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -496,7 +478,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_tab(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -508,7 +489,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_handle(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height, (int) orientation); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -520,7 +500,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_slider(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height, (int) orientation); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
@@ -532,7 +511,6 @@ namespace Gtk { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
IntPtr native_detail = GLib.Marshaller.StringToPtrGStrdup (detail); | |
gtk_paint_box(style == null ? IntPtr.Zero : style.Handle, window == null ? IntPtr.Zero : window.Handle, (int) state_type, (int) shadow_type, native_area, widget == null ? IntPtr.Zero : widget.Handle, native_detail, x, y, width, height); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
GLib.Marshaller.Free (native_detail); | |
} | |
diff --git b/gtk/generated/Target.cs a/gtk/generated/Target.cs | |
index 5886b48..046b9d2 100644 | |
--- b/gtk/generated/Target.cs | |
+++ a/gtk/generated/Target.cs | |
@@ -24,7 +24,6 @@ namespace Gtk { | |
public static void TableFree(Gtk.TargetEntry targets, int n_targets) { | |
IntPtr native_targets = GLib.Marshaller.StructureToPtrAlloc (targets); | |
gtk_target_table_free(native_targets, n_targets); | |
- targets = Gtk.TargetEntry.New (native_targets); | |
Marshal.FreeHGlobal (native_targets); | |
} | |
diff --git b/gtk/generated/TextBuffer.cs a/gtk/generated/TextBuffer.cs | |
index 6f05488..f04ba0c 100644 | |
--- b/gtk/generated/TextBuffer.cs | |
+++ a/gtk/generated/TextBuffer.cs | |
@@ -155,7 +155,6 @@ namespace Gtk { | |
{ | |
IntPtr native_location = GLib.Marshaller.StructureToPtrAlloc (location); | |
gtksharp_textbuffer_base_mark_set (Handle, native_location, mark == null ? IntPtr.Zero : mark.Handle); | |
- location = Gtk.TextIter.New (native_location); | |
Marshal.FreeHGlobal (native_location); | |
} | |
@@ -251,9 +250,7 @@ namespace Gtk { | |
IntPtr native_start = GLib.Marshaller.StructureToPtrAlloc (start); | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
gtksharp_textbuffer_base_delete_range (Handle, native_start, native_end); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -303,7 +300,6 @@ namespace Gtk { | |
IntPtr native_pos = GLib.Marshaller.StructureToPtrAlloc (pos); | |
IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text); | |
gtksharp_textbuffer_base_insert_text (Handle, native_pos, native_text, System.Text.Encoding.UTF8.GetByteCount (text)); | |
- pos = Gtk.TextIter.New (native_pos); | |
Marshal.FreeHGlobal (native_pos); | |
GLib.Marshaller.Free (native_text); | |
} | |
@@ -399,7 +395,6 @@ namespace Gtk { | |
{ | |
IntPtr native_pos = GLib.Marshaller.StructureToPtrAlloc (pos); | |
gtksharp_textbuffer_base_insert_pixbuf (Handle, native_pos, pixbuf == null ? IntPtr.Zero : pixbuf.Handle); | |
- pos = Gtk.TextIter.New (native_pos); | |
Marshal.FreeHGlobal (native_pos); | |
} | |
@@ -587,9 +582,7 @@ namespace Gtk { | |
IntPtr native_start_char = GLib.Marshaller.StructureToPtrAlloc (start_char); | |
IntPtr native_end_char = GLib.Marshaller.StructureToPtrAlloc (end_char); | |
gtksharp_textbuffer_base_apply_tag (Handle, tag == null ? IntPtr.Zero : tag.Handle, native_start_char, native_end_char); | |
- start_char = Gtk.TextIter.New (native_start_char); | |
Marshal.FreeHGlobal (native_start_char); | |
- end_char = Gtk.TextIter.New (native_end_char); | |
Marshal.FreeHGlobal (native_end_char); | |
} | |
@@ -638,7 +631,6 @@ namespace Gtk { | |
{ | |
IntPtr native_pos = GLib.Marshaller.StructureToPtrAlloc (pos); | |
gtksharp_textbuffer_base_insert_child_anchor (Handle, native_pos, anchor == null ? IntPtr.Zero : anchor.Handle); | |
- pos = Gtk.TextIter.New (native_pos); | |
Marshal.FreeHGlobal (native_pos); | |
} | |
@@ -688,9 +680,7 @@ namespace Gtk { | |
IntPtr native_start_char = GLib.Marshaller.StructureToPtrAlloc (start_char); | |
IntPtr native_end_char = GLib.Marshaller.StructureToPtrAlloc (end_char); | |
gtksharp_textbuffer_base_remove_tag (Handle, tag == null ? IntPtr.Zero : tag.Handle, native_start_char, native_end_char); | |
- start_char = Gtk.TextIter.New (native_start_char); | |
Marshal.FreeHGlobal (native_start_char); | |
- end_char = Gtk.TextIter.New (native_end_char); | |
Marshal.FreeHGlobal (native_end_char); | |
} | |
@@ -739,9 +729,7 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -818,9 +806,7 @@ namespace Gtk { | |
IntPtr native_ins = GLib.Marshaller.StructureToPtrAlloc (ins); | |
IntPtr native_bound = GLib.Marshaller.StructureToPtrAlloc (bound); | |
gtk_text_buffer_select_range(Handle, native_ins, native_bound); | |
- ins = Gtk.TextIter.New (native_ins); | |
Marshal.FreeHGlobal (native_ins); | |
- bound = Gtk.TextIter.New (native_bound); | |
Marshal.FreeHGlobal (native_bound); | |
} | |
@@ -831,9 +817,7 @@ namespace Gtk { | |
IntPtr native_start = GLib.Marshaller.StructureToPtrAlloc (start); | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
gtk_text_buffer_apply_tag(Handle, tag == null ? IntPtr.Zero : tag.Handle, native_start, native_end); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -891,7 +875,6 @@ namespace Gtk { | |
public void AddMark(Gtk.TextMark mark, Gtk.TextIter wh3r3) { | |
IntPtr native_wh3r3 = GLib.Marshaller.StructureToPtrAlloc (wh3r3); | |
gtk_text_buffer_add_mark(Handle, mark == null ? IntPtr.Zero : mark.Handle, native_wh3r3); | |
- wh3r3 = Gtk.TextIter.New (native_wh3r3); | |
Marshal.FreeHGlobal (native_wh3r3); | |
} | |
@@ -918,7 +901,6 @@ namespace Gtk { | |
public void PlaceCursor(Gtk.TextIter wh3r3) { | |
IntPtr native_wh3r3 = GLib.Marshaller.StructureToPtrAlloc (wh3r3); | |
gtk_text_buffer_place_cursor(Handle, native_wh3r3); | |
- wh3r3 = Gtk.TextIter.New (native_wh3r3); | |
Marshal.FreeHGlobal (native_wh3r3); | |
} | |
@@ -935,7 +917,6 @@ namespace Gtk { | |
public void MoveMark(Gtk.TextMark mark, Gtk.TextIter wh3r3) { | |
IntPtr native_wh3r3 = GLib.Marshaller.StructureToPtrAlloc (wh3r3); | |
gtk_text_buffer_move_mark(Handle, mark == null ? IntPtr.Zero : mark.Handle, native_wh3r3); | |
- wh3r3 = Gtk.TextIter.New (native_wh3r3); | |
Marshal.FreeHGlobal (native_wh3r3); | |
} | |
@@ -1004,9 +985,7 @@ namespace Gtk { | |
gtk_text_buffer_insert_range(Handle, native_iter, native_start, native_end); | |
iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -1019,9 +998,7 @@ namespace Gtk { | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
gtk_text_buffer_apply_tag_by_name(Handle, native_name, native_start, native_end); | |
GLib.Marshaller.Free (native_name); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -1106,9 +1083,7 @@ namespace Gtk { | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
gtk_text_buffer_remove_tag_by_name(Handle, native_name, native_start, native_end); | |
GLib.Marshaller.Free (native_name); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -1146,9 +1121,7 @@ namespace Gtk { | |
IntPtr native_start = GLib.Marshaller.StructureToPtrAlloc (start); | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
gtk_text_buffer_remove_tag(Handle, tag == null ? IntPtr.Zero : tag.Handle, native_start, native_end); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -1181,9 +1154,7 @@ namespace Gtk { | |
IntPtr native_start = GLib.Marshaller.StructureToPtrAlloc (start); | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
gtk_text_buffer_remove_all_tags(Handle, native_start, native_end); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
} | |
@@ -1207,9 +1178,7 @@ namespace Gtk { | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
IntPtr raw_ret = gtk_text_buffer_get_slice(Handle, native_start, native_end, include_hidden_chars); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -1241,7 +1210,6 @@ namespace Gtk { | |
IntPtr raw_ret = gtk_text_buffer_create_mark(Handle, native_mark_name, native_wh3r3, left_gravity); | |
Gtk.TextMark ret = GLib.Object.GetObject(raw_ret) as Gtk.TextMark; | |
GLib.Marshaller.Free (native_mark_name); | |
- wh3r3 = Gtk.TextIter.New (native_wh3r3); | |
Marshal.FreeHGlobal (native_wh3r3); | |
return ret; | |
} | |
@@ -1261,7 +1229,6 @@ namespace Gtk { | |
IntPtr native_wh3r3 = GLib.Marshaller.StructureToPtrAlloc (wh3r3); | |
gtk_text_buffer_move_mark_by_name(Handle, native_name, native_wh3r3); | |
GLib.Marshaller.Free (native_name); | |
- wh3r3 = Gtk.TextIter.New (native_wh3r3); | |
Marshal.FreeHGlobal (native_wh3r3); | |
} | |
@@ -1273,9 +1240,7 @@ namespace Gtk { | |
IntPtr native_end = GLib.Marshaller.StructureToPtrAlloc (end); | |
IntPtr raw_ret = gtk_text_buffer_get_text(Handle, native_start, native_end, include_hidden_chars); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
diff --git b/gtk/generated/TextIter.cs a/gtk/generated/TextIter.cs | |
index 6f52e4a..6514c1d 100644 | |
--- b/gtk/generated/TextIter.cs | |
+++ a/gtk/generated/TextIter.cs | |
@@ -162,7 +162,6 @@ namespace Gtk { | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -270,7 +269,6 @@ namespace Gtk { | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -495,7 +493,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- limit = Gtk.TextIter.New (native_limit); | |
Marshal.FreeHGlobal (native_limit); | |
return ret; | |
} | |
@@ -550,7 +547,6 @@ namespace Gtk { | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -595,7 +591,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- limit = Gtk.TextIter.New (native_limit); | |
Marshal.FreeHGlobal (native_limit); | |
return ret; | |
} | |
@@ -653,7 +648,6 @@ namespace Gtk { | |
gtk_text_iter_order(this_as_native, native_second); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- second = Gtk.TextIter.New (native_second); | |
Marshal.FreeHGlobal (native_second); | |
} | |
@@ -823,7 +817,6 @@ namespace Gtk { | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -853,9 +846,7 @@ namespace Gtk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- start = Gtk.TextIter.New (native_start); | |
Marshal.FreeHGlobal (native_start); | |
- end = Gtk.TextIter.New (native_end); | |
Marshal.FreeHGlobal (native_end); | |
return ret; | |
} | |
@@ -905,7 +896,6 @@ namespace Gtk { | |
Marshal.FreeHGlobal (native_match_start); | |
match_end = Gtk.TextIter.New (native_match_end); | |
Marshal.FreeHGlobal (native_match_end); | |
- limit = Gtk.TextIter.New (native_limit); | |
Marshal.FreeHGlobal (native_limit); | |
return ret; | |
} | |
@@ -921,7 +911,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- rhs = Gtk.TextIter.New (native_rhs); | |
Marshal.FreeHGlobal (native_rhs); | |
return ret; | |
} | |
@@ -952,7 +941,6 @@ namespace Gtk { | |
int ret = raw_ret; | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- rhs = Gtk.TextIter.New (native_rhs); | |
Marshal.FreeHGlobal (native_rhs); | |
return ret; | |
} | |
@@ -1131,7 +1119,6 @@ namespace Gtk { | |
Marshal.FreeHGlobal (native_match_start); | |
match_end = Gtk.TextIter.New (native_match_end); | |
Marshal.FreeHGlobal (native_match_end); | |
- limit = Gtk.TextIter.New (native_limit); | |
Marshal.FreeHGlobal (native_limit); | |
return ret; | |
} | |
diff --git b/gtk/generated/TextTag.cs a/gtk/generated/TextTag.cs | |
index 1fc5ad1..9f5e684 100644 | |
--- b/gtk/generated/TextTag.cs | |
+++ a/gtk/generated/TextTag.cs | |
@@ -1006,7 +1006,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool __ret = gtksharp_texttag_base_event (Handle, event_object == null ? IntPtr.Zero : event_object.Handle, evnt == null ? IntPtr.Zero : evnt.Handle, native_iter); | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return __ret; | |
} | |
@@ -1030,7 +1029,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_text_tag_event(Handle, event_object == null ? IntPtr.Zero : event_object.Handle, evnt == null ? IntPtr.Zero : evnt.Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
diff --git b/gtk/generated/TextView.cs a/gtk/generated/TextView.cs | |
index 04e2be1..357079e 100644 | |
--- b/gtk/generated/TextView.cs | |
+++ a/gtk/generated/TextView.cs | |
@@ -839,7 +839,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_text_view_scroll_to_iter(Handle, native_iter, within_margin, use_align, xalign, yalign); | |
bool ret = raw_ret; | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -879,7 +878,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_text_view_starts_display_line(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -904,7 +902,6 @@ namespace Gtk { | |
public void GetLineYrange(Gtk.TextIter iter, out int y, out int height) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_text_view_get_line_yrange(Handle, native_iter, out y, out height); | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -923,7 +920,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_location = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gdk.Rectangle))); | |
gtk_text_view_get_iter_location(Handle, native_iter, native_location); | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
location = Gdk.Rectangle.New (native_location); | |
Marshal.FreeHGlobal (native_location); | |
@@ -1093,7 +1089,6 @@ namespace Gtk { | |
int trailing; | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_text_view_get_iter_at_position(Handle, native_iter, out trailing, x, y); | |
- iter = Gtk.TextIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return trailing; | |
} | |
diff --git b/gtk/generated/Tooltip.cs a/gtk/generated/Tooltip.cs | |
index 327d09b..9240536 100644 | |
--- b/gtk/generated/Tooltip.cs | |
+++ a/gtk/generated/Tooltip.cs | |
@@ -82,7 +82,6 @@ namespace Gtk { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tooltip_set_tip_area(Handle, native_value); | |
- value = Gdk.Rectangle.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/gtk/generated/TreeModelAdapter.cs a/gtk/generated/TreeModelAdapter.cs | |
index c277041..481d5b2 100644 | |
--- b/gtk/generated/TreeModelAdapter.cs | |
+++ a/gtk/generated/TreeModelAdapter.cs | |
@@ -441,7 +441,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_path(Handle, native_iter); | |
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -456,7 +455,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- child = Gtk.TreeIter.New (native_child); | |
Marshal.FreeHGlobal (native_child); | |
return ret; | |
} | |
@@ -467,7 +465,6 @@ namespace Gtk { | |
public void RefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_ref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -478,7 +475,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tree_model_get_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
@@ -491,7 +487,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
int raw_ret = gtk_tree_model_iter_n_children(Handle, native_iter); | |
int ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -514,7 +509,6 @@ namespace Gtk { | |
public void EmitRowChanged(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_changed(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -525,7 +519,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_string_from_iter(Handle, native_iter); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -549,7 +542,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_model_iter_has_child(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -564,7 +556,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -607,7 +598,6 @@ namespace Gtk { | |
public void EmitRowHasChildToggled(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_has_child_toggled(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -617,7 +607,6 @@ namespace Gtk { | |
public void GetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_get_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -627,7 +616,6 @@ namespace Gtk { | |
public void EmitRowsReordered(Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_rows_reordered(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, new_order); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -637,7 +625,6 @@ namespace Gtk { | |
public void EmitRowInserted(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_inserted(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -651,7 +638,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -662,7 +648,6 @@ namespace Gtk { | |
public void UnrefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_unref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/TreeModelFilter.cs a/gtk/generated/TreeModelFilter.cs | |
index bf8c1c6..69dd69b 100644 | |
--- b/gtk/generated/TreeModelFilter.cs | |
+++ a/gtk/generated/TreeModelFilter.cs | |
@@ -66,7 +66,6 @@ namespace Gtk { | |
gtk_tree_model_filter_convert_iter_to_child_iter(Handle, native_child_iter, native_filter_iter); | |
child_iter = Gtk.TreeIter.New (native_child_iter); | |
Marshal.FreeHGlobal (native_child_iter); | |
- filter_iter = Gtk.TreeIter.New (native_filter_iter); | |
Marshal.FreeHGlobal (native_filter_iter); | |
return child_iter; | |
} | |
@@ -179,7 +178,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_path(Handle, native_iter); | |
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -194,7 +192,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- child = Gtk.TreeIter.New (native_child); | |
Marshal.FreeHGlobal (native_child); | |
return ret; | |
} | |
@@ -205,7 +202,6 @@ namespace Gtk { | |
public void RefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_ref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -216,7 +212,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tree_model_get_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
@@ -229,7 +224,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
int raw_ret = gtk_tree_model_iter_n_children(Handle, native_iter); | |
int ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -252,7 +246,6 @@ namespace Gtk { | |
public void EmitRowChanged(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_changed(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -263,7 +256,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_string_from_iter(Handle, native_iter); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -287,7 +279,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_model_iter_has_child(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -302,7 +293,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -345,7 +335,6 @@ namespace Gtk { | |
public void EmitRowHasChildToggled(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_has_child_toggled(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -355,7 +344,6 @@ namespace Gtk { | |
public void GetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_get_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -365,7 +353,6 @@ namespace Gtk { | |
public void EmitRowsReordered(Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_rows_reordered(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, new_order); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -375,7 +362,6 @@ namespace Gtk { | |
public void EmitRowInserted(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_inserted(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -389,7 +375,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -400,7 +385,6 @@ namespace Gtk { | |
public void UnrefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_unref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/TreeModelSort.cs a/gtk/generated/TreeModelSort.cs | |
index 6218d95..3d1de40 100644 | |
--- b/gtk/generated/TreeModelSort.cs | |
+++ a/gtk/generated/TreeModelSort.cs | |
@@ -54,7 +54,6 @@ namespace Gtk { | |
gtk_tree_model_sort_convert_child_iter_to_iter(Handle, native_sort_iter, native_child_iter); | |
sort_iter = Gtk.TreeIter.New (native_sort_iter); | |
Marshal.FreeHGlobal (native_sort_iter); | |
- child_iter = Gtk.TreeIter.New (native_child_iter); | |
Marshal.FreeHGlobal (native_child_iter); | |
return sort_iter; | |
} | |
@@ -69,7 +68,6 @@ namespace Gtk { | |
gtk_tree_model_sort_convert_iter_to_child_iter(Handle, native_child_iter, native_sorted_iter); | |
child_iter = Gtk.TreeIter.New (native_child_iter); | |
Marshal.FreeHGlobal (native_child_iter); | |
- sorted_iter = Gtk.TreeIter.New (native_sorted_iter); | |
Marshal.FreeHGlobal (native_sorted_iter); | |
return child_iter; | |
} | |
@@ -108,7 +106,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_model_sort_iter_is_valid(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -155,7 +152,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_path(Handle, native_iter); | |
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -170,7 +166,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- child = Gtk.TreeIter.New (native_child); | |
Marshal.FreeHGlobal (native_child); | |
return ret; | |
} | |
@@ -181,7 +176,6 @@ namespace Gtk { | |
public void RefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_ref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -192,7 +186,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tree_model_get_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
@@ -205,7 +198,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
int raw_ret = gtk_tree_model_iter_n_children(Handle, native_iter); | |
int ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -228,7 +220,6 @@ namespace Gtk { | |
public void EmitRowChanged(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_changed(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -239,7 +230,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_string_from_iter(Handle, native_iter); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -263,7 +253,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_model_iter_has_child(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -278,7 +267,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -321,7 +309,6 @@ namespace Gtk { | |
public void EmitRowHasChildToggled(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_has_child_toggled(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -331,7 +318,6 @@ namespace Gtk { | |
public void GetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_get_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -341,7 +327,6 @@ namespace Gtk { | |
public void EmitRowsReordered(Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_rows_reordered(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, new_order); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -351,7 +336,6 @@ namespace Gtk { | |
public void EmitRowInserted(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_inserted(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -365,7 +349,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -376,7 +359,6 @@ namespace Gtk { | |
public void UnrefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_unref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/TreeRowReference.cs a/gtk/generated/TreeRowReference.cs | |
index 47cd4bc..e339e38 100644 | |
--- b/gtk/generated/TreeRowReference.cs | |
+++ a/gtk/generated/TreeRowReference.cs | |
@@ -46,7 +46,6 @@ namespace Gtk { | |
int new_order; | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_row_reference_reordered(proxy == null ? IntPtr.Zero : proxy.Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, out new_order); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return new_order; | |
} | |
diff --git b/gtk/generated/TreeSelection.cs a/gtk/generated/TreeSelection.cs | |
index b26e3a6..ab25b81 100644 | |
--- b/gtk/generated/TreeSelection.cs | |
+++ a/gtk/generated/TreeSelection.cs | |
@@ -116,7 +116,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_selection_iter_is_selected(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -201,7 +200,6 @@ namespace Gtk { | |
public void SelectIter(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_selection_select_iter(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -235,7 +233,6 @@ namespace Gtk { | |
public void UnselectIter(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_selection_unselect_iter(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/TreeStore.cs a/gtk/generated/TreeStore.cs | |
index 6c76b78..a0ede90 100644 | |
--- b/gtk/generated/TreeStore.cs | |
+++ a/gtk/generated/TreeStore.cs | |
@@ -26,9 +26,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tree_store_set_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
} | |
@@ -39,9 +37,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_position = GLib.Marshaller.StructureToPtrAlloc (position); | |
gtk_tree_store_move_before(Handle, native_iter, native_position); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- position = Gtk.TreeIter.New (native_position); | |
Marshal.FreeHGlobal (native_position); | |
} | |
@@ -51,7 +47,6 @@ namespace Gtk { | |
public void SetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_store_set_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -62,7 +57,6 @@ namespace Gtk { | |
int new_order; | |
IntPtr native_parent = GLib.Marshaller.StructureToPtrAlloc (parent); | |
gtk_tree_store_reorder(Handle, native_parent, out new_order); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return new_order; | |
} | |
@@ -74,9 +68,7 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_position = GLib.Marshaller.StructureToPtrAlloc (position); | |
gtk_tree_store_move_after(Handle, native_iter, native_position); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- position = Gtk.TreeIter.New (native_position); | |
Marshal.FreeHGlobal (native_position); | |
} | |
@@ -119,7 +111,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
int raw_ret = gtk_tree_store_iter_depth(Handle, native_iter); | |
int ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -142,9 +133,7 @@ namespace Gtk { | |
IntPtr native_a = GLib.Marshaller.StructureToPtrAlloc (a); | |
IntPtr native_b = GLib.Marshaller.StructureToPtrAlloc (b); | |
gtk_tree_store_swap(Handle, native_a, native_b); | |
- a = Gtk.TreeIter.New (native_a); | |
Marshal.FreeHGlobal (native_a); | |
- b = Gtk.TreeIter.New (native_b); | |
Marshal.FreeHGlobal (native_b); | |
} | |
@@ -155,7 +144,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_store_iter_is_valid(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -168,9 +156,7 @@ namespace Gtk { | |
IntPtr native_descendant = GLib.Marshaller.StructureToPtrAlloc (descendant); | |
bool raw_ret = gtk_tree_store_is_ancestor(Handle, native_iter, native_descendant); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- descendant = Gtk.TreeIter.New (native_descendant); | |
Marshal.FreeHGlobal (native_descendant); | |
return ret; | |
} | |
@@ -201,7 +187,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_path(Handle, native_iter); | |
Gtk.TreePath ret = raw_ret == IntPtr.Zero ? null : (Gtk.TreePath) GLib.Opaque.GetOpaque (raw_ret, typeof (Gtk.TreePath), true); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -216,7 +201,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- child = Gtk.TreeIter.New (native_child); | |
Marshal.FreeHGlobal (native_child); | |
return ret; | |
} | |
@@ -227,7 +211,6 @@ namespace Gtk { | |
public void RefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_ref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -238,7 +221,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
gtk_tree_model_get_value(Handle, native_iter, column, native_value); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
value = (GLib.Value) Marshal.PtrToStructure (native_value, typeof (GLib.Value)); | |
Marshal.FreeHGlobal (native_value); | |
@@ -251,7 +233,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
int raw_ret = gtk_tree_model_iter_n_children(Handle, native_iter); | |
int ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -274,7 +255,6 @@ namespace Gtk { | |
public void EmitRowChanged(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_changed(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -285,7 +265,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
IntPtr raw_ret = gtk_tree_model_get_string_from_iter(Handle, native_iter); | |
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -309,7 +288,6 @@ namespace Gtk { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool raw_ret = gtk_tree_model_iter_has_child(Handle, native_iter); | |
bool ret = raw_ret; | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return ret; | |
} | |
@@ -324,7 +302,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -367,7 +344,6 @@ namespace Gtk { | |
public void EmitRowHasChildToggled(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_has_child_toggled(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -377,7 +353,6 @@ namespace Gtk { | |
public void GetValist(Gtk.TreeIter iter, IntPtr var_args) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_get_valist(Handle, native_iter, var_args); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -387,7 +362,6 @@ namespace Gtk { | |
public void EmitRowsReordered(Gtk.TreePath path, Gtk.TreeIter iter, int[] new_order) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_rows_reordered(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter, new_order); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -397,7 +371,6 @@ namespace Gtk { | |
public void EmitRowInserted(Gtk.TreePath path, Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_row_inserted(Handle, path == null ? IntPtr.Zero : path.Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -411,7 +384,6 @@ namespace Gtk { | |
bool ret = raw_ret; | |
iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
- parent = Gtk.TreeIter.New (native_parent); | |
Marshal.FreeHGlobal (native_parent); | |
return ret; | |
} | |
@@ -422,7 +394,6 @@ namespace Gtk { | |
public void UnrefNode(Gtk.TreeIter iter) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_model_unref_node(Handle, native_iter); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/TreeView.cs a/gtk/generated/TreeView.cs | |
index ccf6e44..91ca2d9 100644 | |
--- b/gtk/generated/TreeView.cs | |
+++ a/gtk/generated/TreeView.cs | |
@@ -853,7 +853,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool __ret = gtksharp_treeview_base_test_expand_row (Handle, native_iter, path == null ? IntPtr.Zero : path.Handle); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return __ret; | |
} | |
@@ -903,7 +902,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtksharp_treeview_base_row_collapsed (Handle, native_iter, path == null ? IntPtr.Zero : path.Handle); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -1098,7 +1096,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
bool __ret = gtksharp_treeview_base_test_collapse_row (Handle, native_iter, path == null ? IntPtr.Zero : path.Handle); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
return __ret; | |
} | |
@@ -1148,7 +1145,6 @@ namespace Gtk { | |
{ | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtksharp_treeview_base_row_expanded (Handle, native_iter, path == null ? IntPtr.Zero : path.Handle); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
diff --git b/gtk/generated/TreeViewColumn.cs a/gtk/generated/TreeViewColumn.cs | |
index 7fff2ab..69f0612 100644 | |
--- b/gtk/generated/TreeViewColumn.cs | |
+++ a/gtk/generated/TreeViewColumn.cs | |
@@ -411,7 +411,6 @@ namespace Gtk { | |
public void CellSetCellData(Gtk.TreeModel tree_model, Gtk.TreeIter iter, bool is_expander, bool is_expanded) { | |
IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc (iter); | |
gtk_tree_view_column_cell_set_cell_data(Handle, tree_model == null ? IntPtr.Zero : tree_model.Handle, native_iter, is_expander, is_expanded); | |
- iter = Gtk.TreeIter.New (native_iter); | |
Marshal.FreeHGlobal (native_iter); | |
} | |
@@ -439,7 +438,6 @@ namespace Gtk { | |
public void CellGetSize(Gdk.Rectangle cell_area, out int x_offset, out int y_offset, out int width, out int height) { | |
IntPtr native_cell_area = GLib.Marshaller.StructureToPtrAlloc (cell_area); | |
gtk_tree_view_column_cell_get_size(Handle, native_cell_area, out x_offset, out y_offset, out width, out height); | |
- cell_area = Gdk.Rectangle.New (native_cell_area); | |
Marshal.FreeHGlobal (native_cell_area); | |
} | |
diff --git b/gtk/generated/Widget.cs a/gtk/generated/Widget.cs | |
index 40cd515..88b5433 100644 | |
--- b/gtk/generated/Widget.cs | |
+++ a/gtk/generated/Widget.cs | |
@@ -1620,7 +1620,6 @@ namespace Gtk { | |
{ | |
IntPtr native_allocation = GLib.Marshaller.StructureToPtrAlloc (allocation); | |
gtksharp_widget_base_size_allocate (Handle, native_allocation); | |
- allocation = Gdk.Rectangle.New (native_allocation); | |
Marshal.FreeHGlobal (native_allocation); | |
} | |
@@ -3569,7 +3568,6 @@ namespace Gtk { | |
public void ModifyText(Gtk.StateType state, Gdk.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
gtk_widget_modify_text(Handle, (int) state, native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
@@ -3587,7 +3585,6 @@ namespace Gtk { | |
public void Draw(Gdk.Rectangle area) { | |
IntPtr native_area = GLib.Marshaller.StructureToPtrAlloc (area); | |
gtk_widget_draw(Handle, native_area); | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
} | |
@@ -3679,7 +3676,6 @@ namespace Gtk { | |
public void ModifyBase(Gtk.StateType state, Gdk.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
gtk_widget_modify_base(Handle, (int) state, native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
@@ -3689,7 +3685,6 @@ namespace Gtk { | |
public void SizeAllocate(Gdk.Rectangle allocation) { | |
IntPtr native_allocation = GLib.Marshaller.StructureToPtrAlloc (allocation); | |
gtk_widget_size_allocate(Handle, native_allocation); | |
- allocation = Gdk.Rectangle.New (native_allocation); | |
Marshal.FreeHGlobal (native_allocation); | |
} | |
@@ -3916,9 +3911,7 @@ namespace Gtk { | |
IntPtr native_primary = GLib.Marshaller.StructureToPtrAlloc (primary); | |
IntPtr native_secondary = GLib.Marshaller.StructureToPtrAlloc (secondary); | |
gtk_widget_modify_cursor(Handle, native_primary, native_secondary); | |
- primary = Gdk.Color.New (native_primary); | |
Marshal.FreeHGlobal (native_primary); | |
- secondary = Gdk.Color.New (native_secondary); | |
Marshal.FreeHGlobal (native_secondary); | |
} | |
@@ -4061,7 +4054,6 @@ namespace Gtk { | |
public void ModifyFg(Gtk.StateType state, Gdk.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
gtk_widget_modify_fg(Handle, (int) state, native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
@@ -4071,7 +4063,6 @@ namespace Gtk { | |
public void ModifyBg(Gtk.StateType state, Gdk.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
gtk_widget_modify_bg(Handle, (int) state, native_color); | |
- color = Gdk.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
@@ -4104,7 +4095,6 @@ namespace Gtk { | |
IntPtr native_intersection = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gdk.Rectangle))); | |
bool raw_ret = gtk_widget_intersect(Handle, native_area, native_intersection); | |
bool ret = raw_ret; | |
- area = Gdk.Rectangle.New (native_area); | |
Marshal.FreeHGlobal (native_area); | |
intersection = Gdk.Rectangle.New (native_intersection); | |
Marshal.FreeHGlobal (native_intersection); | |
diff --git b/gtk/generated/Window.cs a/gtk/generated/Window.cs | |
index c455b8c..587c7f5 100644 | |
--- b/gtk/generated/Window.cs | |
+++ a/gtk/generated/Window.cs | |
@@ -951,7 +951,6 @@ namespace Gtk { | |
public void SetGeometryHints(Gtk.Widget geometry_widget, Gdk.Geometry geometry, Gdk.WindowHints geom_mask) { | |
IntPtr native_geometry = GLib.Marshaller.StructureToPtrAlloc (geometry); | |
gtk_window_set_geometry_hints(Handle, geometry_widget == null ? IntPtr.Zero : geometry_widget.Handle, native_geometry, (int) geom_mask); | |
- geometry = Gdk.Geometry.New (native_geometry); | |
Marshal.FreeHGlobal (native_geometry); | |
} | |
diff --git b/pango/generated/Context.cs a/pango/generated/Context.cs | |
index cced592..ca2a1a7 100644 | |
--- b/pango/generated/Context.cs | |
+++ a/pango/generated/Context.cs | |
@@ -179,7 +179,6 @@ namespace Pango { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
pango_context_set_matrix(Handle, native_value); | |
- value = Pango.Matrix.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
diff --git b/pango/generated/Font.cs a/pango/generated/Font.cs | |
index c67b898..1d6d8b0 100644 | |
--- b/pango/generated/Font.cs | |
+++ a/pango/generated/Font.cs | |
@@ -75,9 +75,7 @@ namespace Pango { | |
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect); | |
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect); | |
pango_font_get_glyph_extents(Handle, glyph, native_ink_rect, native_logical_rect); | |
- ink_rect = Pango.Rectangle.New (native_ink_rect); | |
Marshal.FreeHGlobal (native_ink_rect); | |
- logical_rect = Pango.Rectangle.New (native_logical_rect); | |
Marshal.FreeHGlobal (native_logical_rect); | |
} | |
diff --git b/pango/generated/Global.cs a/pango/generated/Global.cs | |
index e8b2515..6701045 100644 | |
--- b/pango/generated/Global.cs | |
+++ a/pango/generated/Global.cs | |
@@ -16,7 +16,6 @@ namespace Pango { | |
IntPtr native_matrix = GLib.Marshaller.StructureToPtrAlloc (matrix); | |
int raw_ret = pango_gravity_get_for_matrix(native_matrix); | |
Pango.Gravity ret = (Pango.Gravity) raw_ret; | |
- matrix = Pango.Matrix.New (native_matrix); | |
Marshal.FreeHGlobal (native_matrix); | |
return ret; | |
} | |
@@ -69,7 +68,6 @@ namespace Pango { | |
IntPtr native_log_attrs = GLib.Marshaller.StructureToPtrAlloc (log_attrs); | |
pango_get_log_attrs(native_text, System.Text.Encoding.UTF8.GetByteCount (text), level, language == null ? IntPtr.Zero : language.Handle, native_log_attrs, attrs_len); | |
GLib.Marshaller.Free (native_text); | |
- log_attrs = Pango.LogAttr.New (native_log_attrs); | |
Marshal.FreeHGlobal (native_log_attrs); | |
} | |
diff --git b/pango/generated/GlyphItem.cs a/pango/generated/GlyphItem.cs | |
index e8575de..8cc884b 100644 | |
--- b/pango/generated/GlyphItem.cs | |
+++ a/pango/generated/GlyphItem.cs | |
@@ -76,7 +76,6 @@ namespace Pango { | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
GLib.Marshaller.Free (native_text); | |
- log_attrs = Pango.LogAttr.New (native_log_attrs); | |
Marshal.FreeHGlobal (native_log_attrs); | |
} | |
diff --git b/pango/generated/GlyphString.cs a/pango/generated/GlyphString.cs | |
index 616ef50..882084c 100644 | |
--- b/pango/generated/GlyphString.cs | |
+++ a/pango/generated/GlyphString.cs | |
@@ -36,7 +36,6 @@ namespace Pango { | |
int x_pos; | |
IntPtr native_analysis = GLib.Marshaller.StructureToPtrAlloc (analysis); | |
pango_glyph_string_index_to_x(Handle, GLib.Marshaller.StringToPtrGStrdup(text), System.Text.Encoding.UTF8.GetByteCount (text), native_analysis, index_, trailing, out x_pos); | |
- analysis = Pango.Analysis.New (native_analysis); | |
Marshal.FreeHGlobal (native_analysis); | |
return x_pos; | |
} | |
@@ -70,9 +69,7 @@ namespace Pango { | |
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect); | |
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect); | |
pango_glyph_string_extents_range(Handle, start, end, font == null ? IntPtr.Zero : font.Handle, native_ink_rect, native_logical_rect); | |
- ink_rect = Pango.Rectangle.New (native_ink_rect); | |
Marshal.FreeHGlobal (native_ink_rect); | |
- logical_rect = Pango.Rectangle.New (native_logical_rect); | |
Marshal.FreeHGlobal (native_logical_rect); | |
} | |
@@ -112,9 +109,7 @@ namespace Pango { | |
IntPtr native_ink_rect = GLib.Marshaller.StructureToPtrAlloc (ink_rect); | |
IntPtr native_logical_rect = GLib.Marshaller.StructureToPtrAlloc (logical_rect); | |
pango_glyph_string_extents(Handle, font == null ? IntPtr.Zero : font.Handle, native_ink_rect, native_logical_rect); | |
- ink_rect = Pango.Rectangle.New (native_ink_rect); | |
Marshal.FreeHGlobal (native_ink_rect); | |
- logical_rect = Pango.Rectangle.New (native_logical_rect); | |
Marshal.FreeHGlobal (native_logical_rect); | |
} | |
@@ -124,7 +119,6 @@ namespace Pango { | |
public void XToIndex(string text, Pango.Analysis analysis, int x_pos, out int index_, out int trailing) { | |
IntPtr native_analysis = GLib.Marshaller.StructureToPtrAlloc (analysis); | |
pango_glyph_string_x_to_index(Handle, GLib.Marshaller.StringToPtrGStrdup(text), System.Text.Encoding.UTF8.GetByteCount (text), native_analysis, x_pos, out index_, out trailing); | |
- analysis = Pango.Analysis.New (native_analysis); | |
Marshal.FreeHGlobal (native_analysis); | |
} | |
diff --git b/pango/generated/Matrix.cs a/pango/generated/Matrix.cs | |
index 3bfa9e1..c302e94 100644 | |
--- b/pango/generated/Matrix.cs | |
+++ a/pango/generated/Matrix.cs | |
@@ -36,7 +36,6 @@ namespace Pango { | |
pango_matrix_concat(this_as_native, native_new_matrix); | |
ReadNative (this_as_native, ref this); | |
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native); | |
- new_matrix = Pango.Matrix.New (native_new_matrix); | |
Marshal.FreeHGlobal (native_new_matrix); | |
} | |
diff --git b/pango/generated/Renderer.cs a/pango/generated/Renderer.cs | |
index 662ff1f..ca93690 100644 | |
--- b/pango/generated/Renderer.cs | |
+++ a/pango/generated/Renderer.cs | |
@@ -34,7 +34,6 @@ namespace Pango { | |
set { | |
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value); | |
pango_renderer_set_matrix(Handle, native_value); | |
- value = Pango.Matrix.New (native_value); | |
Marshal.FreeHGlobal (native_value); | |
} | |
} | |
@@ -80,7 +79,6 @@ namespace Pango { | |
public void SetColor(Pango.RenderPart part, Pango.Color color) { | |
IntPtr native_color = GLib.Marshaller.StructureToPtrAlloc (color); | |
pango_renderer_set_color(Handle, (int) part, native_color); | |
- color = Pango.Color.New (native_color); | |
Marshal.FreeHGlobal (native_color); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment