2004-06-15 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide the button_new_from_stock ctor. * gtk/Button.custom : add a manual ctor implementation. svn path=/trunk/gtk-sharp/; revision=29598
This commit is contained in:
parent
592570d168
commit
38a7a49cfb
3 changed files with 31 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-06-15 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
|
* gtk/Gtk.metadata : hide the button_new_from_stock ctor.
|
||||||
|
* gtk/Button.custom : add a manual ctor implementation.
|
||||||
|
|
||||||
2004-06-14 Mike Kestner <mkestner@ximian.com>
|
2004-06-14 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* configure.in : another "really frozen this time" release.
|
* configure.in : another "really frozen this time" release.
|
||||||
|
|
|
@ -1,3 +1,28 @@
|
||||||
|
// Gtk.Button.custom - Gtk Button 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_button_new_from_stock(string stock_id);
|
||||||
|
|
||||||
|
public Button (string stock_id) : base (IntPtr.Zero)
|
||||||
|
{
|
||||||
|
if (GetType () != typeof (Button)) {
|
||||||
|
GLib.Value[] vals = new GLib.Value [2];
|
||||||
|
string[] names = new string [2];
|
||||||
|
names [0] = "label";
|
||||||
|
vals [0] = new GLib.Value (stock_id);
|
||||||
|
names [1] = "use_stock";
|
||||||
|
vals [1] = new GLib.Value (true);
|
||||||
|
CreateNativeObject (names, vals);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Raw = gtk_button_new_from_stock(stock_id);
|
||||||
|
}
|
||||||
|
|
||||||
[DllImport("gtksharpglue")]
|
[DllImport("gtksharpglue")]
|
||||||
static extern int gtksharp_button_get_in_button (IntPtr button);
|
static extern int gtksharp_button_get_in_button (IntPtr button);
|
||||||
|
|
|
@ -70,8 +70,7 @@
|
||||||
<attr path="/api/namespace/object[@cname='GtkBin']/method[@name='GetChild']" name="new_flag">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkBin']/method[@name='GetChild']" name="new_flag">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='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='GtkBox']/method[@name='PackStartDefaults']" name="name">PackStart</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkButton']/constructor[@cname='gtk_button_new_from_stock']" name="preferred">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkButton']/constructor[@cname='gtk_button_new_from_stock']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkButton']/constructor[@cname='gtk_button_new_from_stock']/*/*[@name='stock_id']" name="property_name">label</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Clicked']" name="name">Click</attr>
|
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Clicked']" name="name">Click</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Pressed']" name="name">Press</attr>
|
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Pressed']" name="name">Press</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Released']" name="name">Release</attr>
|
<attr path="/api/namespace/object[@cname='GtkButton']/method[@name='Released']" name="name">Release</attr>
|
||||||
|
|
Loading…
Reference in a new issue