mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 01:35:31 +00:00
23464e6514
[Equal credit to Ettore Perazzoli <ettore@ximian.com> for fixing all the bugs in the initial patch] * */*.custom : fix incorrect usage of new Object (IntPtr) where Glib.Object.GetObject should've been used. add ref_owned param to GetObject calls. * generator/CallbackGen.cs : setup ref_owned in bodies * generator/ClassBase.cs : add ref_owned to GetObject FromNative call * generator/Method.cs : setup ref_owned in bodies * generator/Property.cs : setup ref_owned in bodies * generator/SignalHandler.cs : pass ref_owned to GetObject * generator/StructBase.cs : setup ref_owned in bodies * glib/Object.cs : kill Ref/Unref methods. Don't want it to be easy for users to screw with ref counts, or make it look like they should need to. (GetObject): add ref_owned param and ref/unref to remain at 1 * glib/Value.cs : pass ref_owned to GetObject svn path=/trunk/gtk-sharp/; revision=16581
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
//
|
|
// Gtk.Dialog.custom - Gtk Dialog class customizations
|
|
//
|
|
// Author: Duncan Mak (duncan@ximian.com)
|
|
// Mike Kestner (mkestner@speakeasy.net)
|
|
//
|
|
// Copyright (C) 2002 Ximian, Inc. and Mike Kestner
|
|
//
|
|
// This code is inserted after the automatically generated code.
|
|
//
|
|
|
|
// Manually wrap until we figure out how to gen ellipses.
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
static extern IntPtr gtk_dialog_new_with_buttons (string title, IntPtr i, int flags, IntPtr dummy);
|
|
public Dialog (string title, Gtk.Window parent, Gtk.DialogFlags flags) : base()
|
|
{
|
|
Raw = gtk_dialog_new_with_buttons (title, parent.Handle, (int) flags, IntPtr.Zero);
|
|
}
|
|
|
|
[DllImport("gtksharpglue")]
|
|
static extern IntPtr gtksharp_dialog_get_vbox (IntPtr i);
|
|
public Gtk.VBox VBox {
|
|
get { return GLib.Object.GetObject (gtksharp_dialog_get_vbox (this.Handle), false) as VBox; }
|
|
}
|
|
|
|
[DllImport("gtksharpglue")]
|
|
static extern IntPtr gtksharp_dialog_get_action_area (IntPtr i);
|
|
public Gtk.VBox ActionArea {
|
|
get { return GLib.Object.GetObject (gtksharp_dialog_get_action_area (this.Handle), false) as VBox; }
|
|
}
|
|
|