2004-05-07 Mike Kestner <mkestner@ximian.com>

* gtk/Gtk.metadata : hide HScale and VScale with_range ctors.
	* gtk/Makefile.am : add new customs.
	* gtk/HScale.custom : implement with_range ctor for subclassing.
	* gtk/VScale.custom : implement with_range ctor for subclassing.

svn path=/trunk/gtk-sharp/; revision=26940
This commit is contained in:
Mike Kestner 2004-05-07 19:04:03 +00:00
parent 50c0b90864
commit 50da743482
5 changed files with 65 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide HScale and VScale with_range ctors.
* gtk/Makefile.am : add new customs.
* gtk/HScale.custom : implement with_range ctor for subclassing.
* gtk/VScale.custom : implement with_range ctor for subclassing.
2004-05-07 Mike Kestner <mkestner@ximian.com> 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : map AccelLabel ctor parm to prop and hide * gtk/Gtk.metadata : map AccelLabel ctor parm to prop and hide

View file

@ -108,6 +108,7 @@
<attr path="/api/namespace/object[@cname='GtkFrame']/method[@name='SetLabelAlign']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkFrame']/method[@name='SetLabelAlign']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkHandleBox']/property[@name='ShadowType']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkHandleBox']/property[@name='ShadowType']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkHScale']/constructor[@cname='gtk_hscale_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr> <attr path="/api/namespace/object[@cname='GtkHScale']/constructor[@cname='gtk_hscale_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkHScale']/constructor[@cname='gtk_hscale_new_with_range']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkHScrollbar']/constructor[@cname='gtk_hscrollbar_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr> <attr path="/api/namespace/object[@cname='GtkHScrollbar']/constructor[@cname='gtk_hscrollbar_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkImageMenuItem']/constructor[@cname='gtk_image_menu_item_new_with_mnemonic']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkImageMenuItem']/constructor[@cname='gtk_image_menu_item_new_with_mnemonic']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkImageMenuItem']/constructor[@cname='gtk_image_menu_item_new_with_label']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkImageMenuItem']/constructor[@cname='gtk_image_menu_item_new_with_label']" name="hidden">1</attr>
@ -252,6 +253,7 @@
<attr path="/api/namespace/object[@cname='GtkViewport']/method[@name='SetVadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr> <attr path="/api/namespace/object[@cname='GtkViewport']/method[@name='SetVadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkViewport']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr> <attr path="/api/namespace/object[@cname='GtkViewport']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr>
<attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr> <attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new_with_range']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkVScrollbar']/constructor[@cname='gtk_vscrollbar_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr> <attr path="/api/namespace/object[@cname='GtkVScrollbar']/constructor[@cname='gtk_vscrollbar_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ClassPath']/*/*[@type='gchar**']" name="pass_as">out</attr> <attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ClassPath']/*/*[@type='gchar**']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Destroyed']" name="hidden">1</attr> <attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Destroyed']" name="hidden">1</attr>

27
gtk/HScale.custom Normal file
View file

@ -0,0 +1,27 @@
// Gtk.HScale.custom - Gtk HScale class customizations
//
// Author: Mike Kestner <mkestner@ximian.com>
//
// Copyright (C) 2004 Novell, Inc.
//
// This code is inserted after the automatically generated code.
[DllImport ("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_hscale_new_with_range (double min, double max, double step);
public HScale (double min, double max, double step) : base (IntPtr.Zero)
{
if (GetType() != typeof (HScale)) {
Adjustment adj = new Adjustment (min, min, max, step, 10 * step, 0);
string[] names = new string [1];
GLib.Value[] vals = new GLib.Value [1];
names [0] = "adjustment";
vals [0] = new GLib.Value (adj);
CreateNativeObject (names, vals);
vals [0].Dispose ();
return;
}
Raw = gtk_hscale_new_with_range (min, max, step);
}

View file

@ -44,6 +44,7 @@ customs = \
FileSelection.custom \ FileSelection.custom \
Frame.custom \ Frame.custom \
HBox.custom \ HBox.custom \
HScale.custom \
IconFactory.custom \ IconFactory.custom \
IconSet.custom \ IconSet.custom \
ImageMenuItem.custom \ ImageMenuItem.custom \
@ -77,6 +78,7 @@ customs = \
TreeViewColumn.custom \ TreeViewColumn.custom \
TreeView.custom \ TreeView.custom \
VBox.custom \ VBox.custom \
VScale.custom \
Viewport.custom \ Viewport.custom \
Widget.custom \ Widget.custom \
Window.custom Window.custom

27
gtk/VScale.custom Normal file
View file

@ -0,0 +1,27 @@
// Gtk.VScale.custom - Gtk VScale class customizations
//
// Author: Mike Kestner <mkestner@ximian.com>
//
// Copyright (C) 2004 Novell, Inc.
//
// This code is inserted after the automatically generated code.
[DllImport ("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_vscale_new_with_range (double min, double max, double step);
public VScale (double min, double max, double step) : base (IntPtr.Zero)
{
if (GetType() != typeof (VScale)) {
Adjustment adj = new Adjustment (min, min, max, step, 10 * step, 0);
string[] names = new string [1];
GLib.Value[] vals = new GLib.Value [1];
names [0] = "adjustment";
vals [0] = new GLib.Value (adj);
CreateNativeObject (names, vals);
vals [0].Dispose ();
return;
}
Raw = gtk_vscale_new_with_range (min, max, step);
}