mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-11-25 16:56:18 +00:00
[ Patch from Ricardo Fernandez Pascual <rfp1@ono.com> for
libglade support (slightly modified) ]
* configure.in: Conditionally compile glade support.
* makefile: Add glade directory.
* glade/: Added.
* sample/makefile.in: Add (conditional) glade example.
* sample/GladeViewer.cs: Added.
* glue/gladexml.c: Added.
* glue/Makefile.am: Updated.
* parser/build.pl: Parse libglade-2.0.0.
* parser/README: Update requirements.
2002-08-12 Rachel Hestilow <hestilow@ximian.com>
* parser/gapi_pp.pl: Handle "typedef struct {...}" construct.
* glue/canvaspoints.c: Added.
* glue/Makefile.am: Updated.
* gnome/CanvasPoints.custom: Added. (Doesn't seem to work right yet,
looking into this.)
svn path=/trunk/gtk-sharp/; revision=6601
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
// XML.custom
|
|
//
|
|
// Author: Ricardo Fernández Pascual <ric@users.sourceforge.net>
|
|
//
|
|
// (c) 2002 Ricardo Fernández Pascual
|
|
//
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
|
|
[DllImport("gtksharpglue")]
|
|
static extern string gtksharp_glade_xml_get_filename (IntPtr raw);
|
|
|
|
/// <summary>Filename Property</summary>
|
|
/// <remarks>Gets the filename used to create this GladeXML object
|
|
/// </remarks>
|
|
public string Filename {
|
|
get {
|
|
string ret = gtksharp_glade_xml_get_filename (Handle);
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
/// <summary>Indexer of widgets</summary>
|
|
/// <remarks>Acts like GetWidget</remarks>
|
|
public Gtk.Widget this [string name] {
|
|
get {
|
|
return GetWidget (name);
|
|
}
|
|
}
|
|
|
|
[DllImport("glade-2.0")]
|
|
static extern string glade_get_widget_name (IntPtr widget);
|
|
|
|
static public string GetWidgetName (Gtk.Widget w) {
|
|
string ret = glade_get_widget_name (w.Handle);
|
|
return ret;
|
|
}
|
|
|
|
[DllImport("glade-2.0")]
|
|
static extern IntPtr glade_get_widget_tree (IntPtr widget);
|
|
|
|
static public Glade.XML GetWidgetTree (Gtk.Widget w) {
|
|
IntPtr ret_raw = glade_get_widget_tree (w.Handle);
|
|
Glade.XML ret = GLib.Object.GetObject (ret_raw) as Glade.XML;
|
|
return ret;
|
|
}
|
|
|
|
|