diff --git a/ChangeLog b/ChangeLog index fff86064d..09df8698d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-01-27 John Luke + + * gtk/AccelKey.custom: add convenience ctor + * gtk/Gtk.metadata: revert previous Widget.AddAccelerator change, + fix AccelKey fields + * gtk/Widget.custom: add overload for AddAccelerator + * gtk/gtk-api.xml: regen + 2004-01-27 Mike Kestner * glib/Value.cs : only g_free values we allocate. diff --git a/gtk/AccelKey.custom b/gtk/AccelKey.custom new file mode 100644 index 000000000..49cc2a44a --- /dev/null +++ b/gtk/AccelKey.custom @@ -0,0 +1,8 @@ +public Gdk.Key Key; + +public AccelKey (Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags) +{ + this.Key = key; + this.accel_mods = mods; + this.accel_flags = flags; +} diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 98b13c0f3..811132a07 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -1,5 +1,8 @@ + GdkKey + GdkModifierType + GtkAccelFlags 1 1 1 @@ -261,7 +264,6 @@ SizeRequested Unmapped Unrealized - GtkAccelKey out out out diff --git a/gtk/Widget.custom b/gtk/Widget.custom index f0e1c0d0a..ac2ea79d5 100644 --- a/gtk/Widget.custom +++ b/gtk/Widget.custom @@ -44,3 +44,8 @@ public System.Drawing.Size RequestSize { } } +public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKey accel_key) +{ + this.AddAccelerator (accel_signal, accel_group, (uint) accel_key.Key, accel_key.accel_mods, accel_key.accel_flags); + +} diff --git a/gtk/gtk-api.xml b/gtk/gtk-api.xml index e3f418d88..59b097f24 100644 --- a/gtk/gtk-api.xml +++ b/gtk/gtk-api.xml @@ -9893,7 +9893,7 @@ - + @@ -10970,9 +10970,9 @@ - + - +