From 50da743482ffd6d387220d4999de22d3ffa373a5 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 7 May 2004 19:04:03 +0000 Subject: [PATCH] 2004-05-07 Mike Kestner * gtk/Gtk.metadata : hide HScale and VScale with_range ctors. * gtk/Makefile.am : add new customs. * gtk/HScale.custom : implement with_range ctor for subclassing. * gtk/VScale.custom : implement with_range ctor for subclassing. svn path=/trunk/gtk-sharp/; revision=26940 --- ChangeLog | 7 +++++++ gtk/Gtk.metadata | 2 ++ gtk/HScale.custom | 27 +++++++++++++++++++++++++++ gtk/Makefile.am | 2 ++ gtk/VScale.custom | 27 +++++++++++++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 gtk/HScale.custom create mode 100644 gtk/VScale.custom diff --git a/ChangeLog b/ChangeLog index ab9dd270b..6d3bbb4d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-07 Mike Kestner + + * gtk/Gtk.metadata : hide HScale and VScale with_range ctors. + * gtk/Makefile.am : add new customs. + * gtk/HScale.custom : implement with_range ctor for subclassing. + * gtk/VScale.custom : implement with_range ctor for subclassing. + 2004-05-07 Mike Kestner * gtk/Gtk.metadata : map AccelLabel ctor parm to prop and hide diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 3294f3317..7c111c8a4 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -108,6 +108,7 @@ 1 1 1 + 1 1 1 1 @@ -252,6 +253,7 @@ 1 ScrollAdjustmentsSet 1 + 1 1 out 1 diff --git a/gtk/HScale.custom b/gtk/HScale.custom new file mode 100644 index 000000000..6f72e66b2 --- /dev/null +++ b/gtk/HScale.custom @@ -0,0 +1,27 @@ +// Gtk.HScale.custom - Gtk HScale class customizations +// +// Author: Mike Kestner +// +// 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_hscale_new_with_range (double min, double max, double step); + + public HScale (double min, double max, double step) : base (IntPtr.Zero) + { + if (GetType() != typeof (HScale)) { + Adjustment adj = new Adjustment (min, min, max, step, 10 * step, 0); + string[] names = new string [1]; + GLib.Value[] vals = new GLib.Value [1]; + names [0] = "adjustment"; + vals [0] = new GLib.Value (adj); + CreateNativeObject (names, vals); + vals [0].Dispose (); + return; + } + + Raw = gtk_hscale_new_with_range (min, max, step); + } + diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 610d88006..e11c50d0a 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -44,6 +44,7 @@ customs = \ FileSelection.custom \ Frame.custom \ HBox.custom \ + HScale.custom \ IconFactory.custom \ IconSet.custom \ ImageMenuItem.custom \ @@ -77,6 +78,7 @@ customs = \ TreeViewColumn.custom \ TreeView.custom \ VBox.custom \ + VScale.custom \ Viewport.custom \ Widget.custom \ Window.custom diff --git a/gtk/VScale.custom b/gtk/VScale.custom new file mode 100644 index 000000000..2bf382cbf --- /dev/null +++ b/gtk/VScale.custom @@ -0,0 +1,27 @@ +// Gtk.VScale.custom - Gtk VScale class customizations +// +// Author: Mike Kestner +// +// 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_vscale_new_with_range (double min, double max, double step); + + public VScale (double min, double max, double step) : base (IntPtr.Zero) + { + if (GetType() != typeof (VScale)) { + Adjustment adj = new Adjustment (min, min, max, step, 10 * step, 0); + string[] names = new string [1]; + GLib.Value[] vals = new GLib.Value [1]; + names [0] = "adjustment"; + vals [0] = new GLib.Value (adj); + CreateNativeObject (names, vals); + vals [0].Dispose (); + return; + } + + Raw = gtk_vscale_new_with_range (min, max, step); + } +