mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 14:55:30 +00:00
2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide SpinButton with_range ctor. * gtk/Makefile.am : add new custom. * gtk/SpinButton.custom : implement with_range ctor for subclassing. svn path=/trunk/gtk-sharp/; revision=26942
This commit is contained in:
parent
50d266b30b
commit
6b46f2fb3a
|
@ -1,3 +1,9 @@
|
||||||
|
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
|
* gtk/Gtk.metadata : hide SpinButton with_range ctor.
|
||||||
|
* gtk/Makefile.am : add new custom.
|
||||||
|
* gtk/SpinButton.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 : hide ListStore and TreeStore newv ctors.
|
* gtk/Gtk.metadata : hide ListStore and TreeStore newv ctors.
|
||||||
|
|
|
@ -172,6 +172,7 @@
|
||||||
<attr path="/api/namespace/object[@cname='GtkScrolledWindow']/constructor[@cname='gtk_scrolled_window_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkScrolledWindow']/constructor[@cname='gtk_scrolled_window_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkScrolledWindow']/method[@name='GetPolicy']/*/*[@type='GtkPolicyType*']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkScrolledWindow']/method[@name='GetPolicy']/*/*[@type='GtkPolicyType*']" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkSpinButton']/constructor[@cname='gtk_spin_button_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkSpinButton']/constructor[@cname='gtk_spin_button_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkSpinButton']/constructor[@cname='gtk_spin_button_new_with_range']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkSpinButton']/method[@name='Configure']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkSpinButton']/method[@name='Configure']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTable']/method[@name='AttachDefaults']" name="name">Attach</attr>
|
<attr path="/api/namespace/object[@cname='GtkTable']/method[@name='AttachDefaults']" name="name">Attach</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTable']/method[@name='SetColSpacings']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkTable']/method[@name='SetColSpacings']" name="hidden">1</attr>
|
||||||
|
|
|
@ -60,6 +60,7 @@ customs = \
|
||||||
RadioMenuItem.custom \
|
RadioMenuItem.custom \
|
||||||
ScrolledWindow.custom \
|
ScrolledWindow.custom \
|
||||||
SelectionData.custom \
|
SelectionData.custom \
|
||||||
|
SpinButton.custom \
|
||||||
Stock.custom \
|
Stock.custom \
|
||||||
Style.custom \
|
Style.custom \
|
||||||
Table.custom \
|
Table.custom \
|
||||||
|
|
27
gtk/SpinButton.custom
Normal file
27
gtk/SpinButton.custom
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
// Gtk.SpinButton.custom - Gtk SpinButton 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_spin_button_new_with_range (double min, double max, double step);
|
||||||
|
|
||||||
|
public SpinButton (double min, double max, double step) : base (IntPtr.Zero)
|
||||||
|
{
|
||||||
|
if (GetType() != typeof (SpinButton)) {
|
||||||
|
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_spin_button_new_with_range (min, max, step);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue