mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-31 04:27:02 +00:00
2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/Gnome.metadata: Hide Scores ctor. * gnome/Makefile.am: add Scores.custom. * gnome/Scores.custom: New custom for overridable ctor. svn path=/trunk/gtk-sharp/; revision=26958
This commit is contained in:
parent
ea63638f34
commit
864884b4f0
|
@ -1,3 +1,9 @@
|
|||
2004-05-07 Todd Berman <tberman@sevenl.net>
|
||||
|
||||
* gnome/Gnome.metadata: Hide Scores ctor.
|
||||
* gnome/Makefile.am: add Scores.custom.
|
||||
* gnome/Scores.custom: New custom for overridable ctor.
|
||||
|
||||
2004-05-07 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/Gtk.metadata : map some RadioButton ctor props.
|
||||
|
|
|
@ -107,4 +107,5 @@
|
|||
<attr path="/api/namespace/struct[@cname='GnomeCanvasPathDef']/method[@name='Split']/return-type" name="element_type">Gnome.CanvasPathDef</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GPFontEntry']/field[@cname='weight']" name="access">private</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GnomePrintPaper']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GnomeScores']/constructor[@cname='gnome_scores_new']" name="hidden">1</attr>
|
||||
</metadata>
|
||||
|
|
|
@ -65,7 +65,8 @@ customs = \
|
|||
Print.custom \
|
||||
PrintDialog.custom \
|
||||
PrintJob.custom \
|
||||
Program.custom
|
||||
Program.custom \
|
||||
Scores.custom
|
||||
|
||||
build_customs = $(addprefix $(srcdir)/, $(customs))
|
||||
|
||||
|
|
12
gnome/Scores.custom
Normal file
12
gnome/Scores.custom
Normal file
|
@ -0,0 +1,12 @@
|
|||
[DllImport("gnomeui-2")]
|
||||
static extern IntPtr gnome_scores_new(uint n_scores, string names, out float scores, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(GLib.time_t_CustomMarshaler))] System.DateTime times, bool clear);
|
||||
|
||||
public Scores (uint n_scores, string names, out float scores, System.DateTime times, bool clear) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Scores)) {
|
||||
CreateNativeObject (new string[0], new GLib.Value[0]);
|
||||
scores = Construct (n_scores, names, times, clear);
|
||||
return;
|
||||
}
|
||||
Raw = gnome_scores_new(n_scores, names, out scores, times, clear);
|
||||
}
|
Loading…
Reference in a new issue