2009-08-07 Mike Kestner <mkestner@novell.com>
* generator/ObjectGen.cs: kill GType ctor generation. * glib/InitiallyUnowned.cs: kill obsolete GType ctor. * glib/Object.cs: kill obsolete GType ctor. * gtk/Gtk.metadata: kill disable_gtype_ctor rules. * gtk/Widget.cs: kill obsolete GType ctor. svn path=/trunk/gtk-sharp/; revision=139600
This commit is contained in:
parent
6d885fc351
commit
10cae1b1cb
6 changed files with 8 additions and 30 deletions
|
@ -1,3 +1,11 @@
|
|||
2009-08-07 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* generator/ObjectGen.cs: kill GType ctor generation.
|
||||
* glib/InitiallyUnowned.cs: kill obsolete GType ctor.
|
||||
* glib/Object.cs: kill obsolete GType ctor.
|
||||
* gtk/Gtk.metadata: kill disable_gtype_ctor rules.
|
||||
* gtk/Widget.cs: kill obsolete GType ctor.
|
||||
|
||||
2009-08-07 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/Log.cs: rework the LogFunc marshaling and add SetDefaultHandler
|
||||
|
|
|
@ -97,12 +97,6 @@ namespace GtkSharp.Generation {
|
|||
}
|
||||
}
|
||||
|
||||
private bool DisableGTypeCtor {
|
||||
get {
|
||||
return Elem.HasAttribute ("disable_gtype_ctor");
|
||||
}
|
||||
}
|
||||
|
||||
private class DirectoryInfo {
|
||||
public string assembly_name;
|
||||
public Hashtable objects;
|
||||
|
@ -254,10 +248,6 @@ namespace GtkSharp.Generation {
|
|||
if (!Elem.HasAttribute("parent"))
|
||||
return;
|
||||
|
||||
if (!DisableGTypeCtor) {
|
||||
gen_info.Writer.WriteLine("\t\t[Obsolete]");
|
||||
gen_info.Writer.WriteLine("\t\tprotected " + Name + "(GLib.GType gtype) : base(gtype) {}");
|
||||
}
|
||||
gen_info.Writer.WriteLine("\t\tpublic " + Name + "(IntPtr raw) : base(raw) {}");
|
||||
if (ctors.Count == 0 && !DisableVoidCtor) {
|
||||
gen_info.Writer.WriteLine();
|
||||
|
|
|
@ -31,9 +31,6 @@ namespace GLib {
|
|||
|
||||
protected InitiallyUnowned (IntPtr raw) : base (raw) {}
|
||||
|
||||
[Obsolete]
|
||||
protected InitiallyUnowned (GType gtype) : base (gtype) {}
|
||||
|
||||
public new static GLib.GType GType {
|
||||
get {
|
||||
return GType.Object;
|
||||
|
|
|
@ -350,12 +350,6 @@ namespace GLib {
|
|||
[DllImport("libgobject-2.0-0.dll")]
|
||||
static extern IntPtr g_object_new (IntPtr gtype, IntPtr dummy);
|
||||
|
||||
[Obsolete]
|
||||
protected Object (GType gtype)
|
||||
{
|
||||
Raw = g_object_new (gtype.Val, IntPtr.Zero);
|
||||
}
|
||||
|
||||
struct GParameter {
|
||||
public IntPtr name;
|
||||
public GLib.Value val;
|
||||
|
|
|
@ -255,7 +255,6 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkBox']/field[@name='Children']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBox']/method[@name='PackEndDefaults']" name="name">PackEnd</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBox']/method[@name='PackStartDefaults']" name="name">PackStart</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBuilder']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBuilder']/method[@name='AddFromFile']/*/*[@name='filename']" name="type">const-gfilename*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBuilder']/method[@cname='gtk_builder_connect_signals']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBuilder']/method[@cname='gtk_builder_connect_signals_full']" name="hidden">1</attr>
|
||||
|
@ -577,11 +576,9 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkRcStyle']/field[@name='Base']" name="writeable">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkRcStyle']/field[@name='Xthickness']" name="writeable">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkRcStyle']/field[@name='Ythickness']" name="writeable">true</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkRecentAction']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkRecentChooserMenu']/method[@name='GetShowNumbers']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkRecentChooserMenu']/method[@name='SetShowNumbers']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkRecentChooserMenu']/property[@name='ShowNumbers']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkScaleButton']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkScaleButton']/constructor[@cname='gtk_scale_button_new']/*/*[@name='icons']" name="null_term_array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkScaleButton']/method[@name='SetIcons']/*/*[@name='icons']" name="null_term_array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkScaleButton']/signal[@name='Popup']" name="name">PoppedUp</attr>
|
||||
|
@ -707,7 +704,6 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkToolbar']/method[@name='PrependItem']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolItem']/method[@name='ToolbarReconfigured']" name="name">EmitToolbarReconfigured</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkToolItem']/signal[@name='SetTooltip']" name="name">TooltipSet</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTooltip']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTreeModelFilter']/constructor[@cname='gtk_tree_model_filter_new']/*/*[@name='root']" name="property_name">virtual-root</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTreeModelFilter']/method[@name='ConvertIterToChildIter']/*/*[@name='child_iter']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkTreeModelFilter']/method[@name='ConvertChildIterToIter']" name="hidden">1</attr>
|
||||
|
@ -782,10 +778,8 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkUIManager']/method[@cname='gtk_ui_manager_get_action_groups']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkUIManager']/method[@name='GetToplevels']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkViewport']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkVolumeButton']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new_with_range']" name="hidden">1</attr>
|
||||
<add-node path="/api/namespace/object[@cname='GtkWidget']"><custom-attribute>[GLib.TypeInitializer (typeof (Gtk.Widget), "ClassInit")]</custom-attribute></add-node>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']" name="disable_gtype_ctor">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/constructor[@cname='gtk_widget_new']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/field[@name='Allocation']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWidget']/field[@name='Requisition']" name="writeable">true</attr>
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[Obsolete]
|
||||
protected Widget (GLib.GType gtype) : base(gtype)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Destroy ()
|
||||
{
|
||||
base.Destroy ();
|
||||
|
|
Loading…
Reference in a new issue