diff --git a/api/gtk-api.xml b/api/gtk-api.xml
index c20e2a898..971c3aaaa 100644
--- a/api/gtk-api.xml
+++ b/api/gtk-api.xml
@@ -9477,8 +9477,8 @@
-
-
+
+
diff --git a/gtk/Widget.custom b/gtk/Widget.custom
index 4bc66f105..35139aa19 100644
--- a/gtk/Widget.custom
+++ b/gtk/Widget.custom
@@ -29,4 +29,19 @@ public Gdk.Window GdkWindow {
}
return null;
}
-}
\ No newline at end of file
+}
+
+public System.Drawing.Size RequestSize {
+ get {
+ int x, y;
+ GetSizeRequest (out x, out y);
+
+ return new System.Drawing.Size (x, y);
+ }
+ set {
+ int x = value.Width;
+ int y = value.Height;
+ SetSizeRequest (x, y);
+ }
+}
+
diff --git a/gtk/Window.custom b/gtk/Window.custom
index 69cc2fb6a..77ab6712c 100755
--- a/gtk/Window.custom
+++ b/gtk/Window.custom
@@ -40,17 +40,6 @@
}
}
- public System.Drawing.Size SizeRequest {
- get {
- return new System.Drawing.Size (
- DefaultWidth, DefaultHeight);
- }
- set {
- DefaultWidth = value.Width;
- DefaultHeight = value.Height;
- }
- }
-
public System.Drawing.Size Position {
get {
int x, y;
diff --git a/sources/Gtk.metadata b/sources/Gtk.metadata
index ebbb9c8db..4084adc97 100644
--- a/sources/Gtk.metadata
+++ b/sources/Gtk.metadata
@@ -1881,6 +1881,18 @@ z
+
+
+ GetSizeRequest
+
+
+
+ gint*
+ pass_as
+ out
+
+
+
SetSubmenu