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

* configure.in : Bump version to 0.93 and tag.

2004-05-31  Jeroen Zwartepoorte  <jeroen@xs4all.nl>

	* gtk/Gtk.metadata: unhide WidgetFlags.
	* gtk/Widget.custom: add setter for GdkWindow prop. Add Flags prop.
        * gtk/glue/widget.custom: setter for window, accessors for flags.
	[Fixes #59337]

svn path=/trunk/gtk-sharp/; revision=28578
This commit is contained in:
Mike Kestner 2004-05-31 18:48:25 +00:00
parent c4547468d8
commit 369a588e93
7 changed files with 80 additions and 15 deletions

View file

@ -1,3 +1,14 @@
2004-05-31 Mike Kestner <mkestner@ximian.com>
* configure.in : Bump version to 0.93 and tag.
2004-05-31 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/Gtk.metadata: unhide WidgetFlags.
* gtk/Widget.custom: add setter for GdkWindow prop. Add Flags prop.
* gtk/glue/widget.custom: setter for window, accessors for flags.
[Fixes #59337]
2004-05-31 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2004-05-31 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gdk/Gdk.metadata: fix membler names in WindowClass. * gdk/Gdk.metadata: fix membler names in WindowClass.

View file

@ -2,7 +2,7 @@
AC_INIT(README) AC_INIT(README)
AC_CANONICAL_SYSTEM AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gtk-sharp, 0.92.99) AM_INIT_AUTOMAKE(gtk-sharp, 0.93)
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
API_VERSION=1.0.0.0 API_VERSION=1.0.0.0

View file

@ -2,6 +2,7 @@
* en/Gdk/Rectangle.xml : docs for newly changed Isect and Union. * en/Gdk/Rectangle.xml : docs for newly changed Isect and Union.
* en/Gdk/WindowClass.xml : move existing docs to new member names. * en/Gdk/WindowClass.xml : move existing docs to new member names.
* en/Gtk/Widget.xml : run updater for Flags prop addition.
2004-05-28 Mike Kestner <mkestner@ximian.com> 2004-05-28 Mike Kestner <mkestner@ximian.com>

View file

@ -1182,18 +1182,6 @@
</remarks> </remarks>
</Docs> </Docs>
</Member> </Member>
<Member MemberName="GdkWindow">
<MemberSignature Language="C#" Value="public Gdk.Window GdkWindow { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Window</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gdk.Window'</returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Allocation"> <Member MemberName="Allocation">
<MemberSignature Language="C#" Value="public Gdk.Rectangle Allocation { get; };" /> <MemberSignature Language="C#" Value="public Gdk.Rectangle Allocation { get; };" />
<MemberType>Property</MemberType> <MemberType>Property</MemberType>
@ -4674,5 +4662,31 @@ handle focus grabs.</returns>
<remarks>To be added</remarks> <remarks>To be added</remarks>
</Docs> </Docs>
</Member> </Member>
<Member MemberName="GdkWindow">
<MemberSignature Language="C#" Value="public Gdk.Window GdkWindow { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Window</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gdk.Window" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Flags">
<MemberSignature Language="C#" Value="public int Flags { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:System.Int32" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members> </Members>
</Type> </Type>

View file

@ -41,7 +41,6 @@
<attr path="/api/namespace/enum[@cname='GtkRBNodeColor']" name="hidden">1</attr> <attr path="/api/namespace/enum[@cname='GtkRBNodeColor']" name="hidden">1</attr>
<attr path="/api/namespace/enum[@cname='GtkRcFlags']" name="hidden">1</attr> <attr path="/api/namespace/enum[@cname='GtkRcFlags']" name="hidden">1</attr>
<attr path="/api/namespace/enum[@cname='GtkToolbarSpaceStyle']" name="hidden">1</attr> <attr path="/api/namespace/enum[@cname='GtkToolbarSpaceStyle']" name="hidden">1</attr>
<attr path="/api/namespace/enum[@cname='GtkWidgetFlags']" name="hidden">1</attr>
<attr path="/api/namespace/interface[@cname='GtkCellEditable']/method[@name='EditingDone']" name="name">FinishEditing</attr> <attr path="/api/namespace/interface[@cname='GtkCellEditable']/method[@name='EditingDone']" name="name">FinishEditing</attr>
<attr path="/api/namespace/interface[@cname='GtkCellEditable']/signal[@name='RemoveWidget']" name="name">WidgetRemoved</attr> <attr path="/api/namespace/interface[@cname='GtkCellEditable']/signal[@name='RemoveWidget']" name="name">WidgetRemoved</attr>
<attr path="/api/namespace/interface[@cname='GtkEditable']/method[@name='GetEditable']" name="name">GetIsEditable</attr> <attr path="/api/namespace/interface[@cname='GtkEditable']/method[@name='GetEditable']" name="name">GetIsEditable</attr>

View file

@ -18,6 +18,8 @@ public Gdk.Rectangle Allocation {
[DllImport ("gtksharpglue")] [DllImport ("gtksharpglue")]
static extern IntPtr gtksharp_gtk_widget_get_window (IntPtr widget); static extern IntPtr gtksharp_gtk_widget_get_window (IntPtr widget);
[DllImport ("gtksharpglue")]
static extern void gtksharp_gtk_widget_set_window (IntPtr widget, IntPtr window);
public Gdk.Window GdkWindow { public Gdk.Window GdkWindow {
get { get {
IntPtr raw_ret = gtksharp_gtk_widget_get_window (Handle); IntPtr raw_ret = gtksharp_gtk_widget_get_window (Handle);
@ -28,6 +30,10 @@ public Gdk.Window GdkWindow {
} }
return null; return null;
} }
set {
Gdk.Window window = value as Gdk.Window;
gtksharp_gtk_widget_set_window (Handle, window.Handle);
}
} }
public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKey accel_key) public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKey accel_key)
@ -50,3 +56,18 @@ public Gtk.StateType State {
return (Gtk.StateType) gtksharp_gtk_widget_get_state (Handle); return (Gtk.StateType) gtksharp_gtk_widget_get_state (Handle);
} }
} }
[DllImport("gtksharpglue")]
static extern int gtksharp_gtk_widget_get_flags (IntPtr raw);
[DllImport("gtksharpglue")]
static extern void gtksharp_gtk_widget_set_flags (IntPtr raw, int flags);
public int Flags {
get {
return gtksharp_gtk_widget_get_flags (Handle);
}
set {
gtksharp_gtk_widget_set_flags (Handle, (int) value);
}
}

View file

@ -10,6 +10,7 @@
/* Forward declarations */ /* Forward declarations */
GdkRectangle *gtksharp_gtk_widget_get_allocation (GtkWidget *widget); GdkRectangle *gtksharp_gtk_widget_get_allocation (GtkWidget *widget);
GdkWindow *gtksharp_gtk_widget_get_window (GtkWidget *widget); GdkWindow *gtksharp_gtk_widget_get_window (GtkWidget *widget);
void gtksharp_gtk_widget_set_window (GtkWidget *widget, GdkWindow *window);
int gtksharp_gtk_widget_get_state (GtkWidget *widget); int gtksharp_gtk_widget_get_state (GtkWidget *widget);
/* */ /* */
@ -25,8 +26,26 @@ gtksharp_gtk_widget_get_window (GtkWidget *widget)
return widget->window; return widget->window;
} }
void
gtksharp_gtk_widget_set_window (GtkWidget *widget, GdkWindow *window)
{
widget->window = window;
}
int int
gtksharp_gtk_widget_get_state (GtkWidget *widget) gtksharp_gtk_widget_get_state (GtkWidget *widget)
{ {
return GTK_WIDGET_STATE (widget); return GTK_WIDGET_STATE (widget);
} }
int
gtksharp_gtk_widget_get_flags (GtkWidget *widget)
{
return GTK_WIDGET_FLAGS (widget);
}
void
gtksharp_gtk_widget_set_flags (GtkWidget *widget, int flags)
{
GTK_WIDGET_SET_FLAGS (widget, flags);
}