2004-02-14 Todd Berman <tberman@sevenl.net>

* gtk/Gtk.metadata : hide Widget.SetState
	* gtk/Widget.custom : add State get; set; property
	* glue/widget.c : add glue for get_State ();
	* gtk/gtk-api.xml : regen

svn path=/trunk/gtk-sharp/; revision=23096
This commit is contained in:
Todd Berman 2004-02-14 17:28:11 +00:00
parent 8f14f27048
commit b44b408e52
5 changed files with 30 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-02-14 Todd Berman <tberman@sevenl.net>
* gtk/Gtk.metadata : hide Widget.SetState
* gtk/Widget.custom : add State get; set; property
* glue/widget.c : add glue for get_State ();
* gtk/gtk-api.xml : regen
2004-02-12 Mike Kestner <mkestner@ximian.com>
* sample/GladeViewer.cs : fix a broken api usage.

View file

@ -10,6 +10,7 @@
/* Forward declarations */
GdkRectangle *gtksharp_gtk_widget_get_allocation (GtkWidget *widget);
GdkWindow *gtksharp_gtk_widget_get_window (GtkWidget *widget);
int gtksharp_gtk_widget_get_state (GtkWidget *widget);
/* */
GdkRectangle*
@ -24,3 +25,8 @@ gtksharp_gtk_widget_get_window (GtkWidget *widget)
return widget->window;
}
int
gtksharp_gtk_widget_get_state (GtkWidget *widget)
{
return GTK_WIDGET_STATE (widget);
}

View file

@ -279,6 +279,7 @@
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='SizeRequest']" name="name">SizeRequested</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unmap']" name="name">Unmapped</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unrealize']" name="name">Unrealized</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetState']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultIconList']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultSize']/*/*[@type='gint*']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetIconList']" name="hidden">1</attr>

View file

@ -49,3 +49,18 @@ public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKe
this.AddAccelerator (accel_signal, accel_group, (uint) accel_key.Key, accel_key.AccelMods, accel_key.AccelFlags);
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_widget_set_state (IntPtr raw, int state);
[DllImport("gtksharpglue")]
static extern int gtksharp_gtk_widget_get_state (IntPtr raw);
public Gtk.StateType State {
set {
gtk_widget_set_state (Handle, (int) value);
}
get {
return (Gtk.StateType) gtksharp_gtk_widget_get_state (Handle);
}
}

View file

@ -10361,7 +10361,7 @@
<parameter type="gint" name="height" />
</parameters>
</method>
<method name="SetState" cname="gtk_widget_set_state">
<method name="SetState" cname="gtk_widget_set_state" hidden="1">
<return-type type="void" />
<parameters>
<parameter type="GtkStateType" name="state" />