2004-01-09 20:52:27 +00:00
|
|
|
// Notebook.custom - customization for Gtk.Notebook
|
|
|
|
//
|
|
|
|
// Authors: Xavier Amado (xavier@blackbloodstudios.com)
|
|
|
|
// Mike Kestner (mkestner@ximian.com)
|
|
|
|
//
|
|
|
|
// <c> 2004 Novel, Inc.
|
2003-08-06 04:40:02 +00:00
|
|
|
|
|
|
|
public Widget CurrentPageWidget {
|
|
|
|
get {
|
|
|
|
return GetNthPage (CurrentPage);
|
|
|
|
}
|
|
|
|
}
|
2004-01-09 20:52:27 +00:00
|
|
|
|
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
|
|
static extern int gtk_notebook_page_num (IntPtr handle, IntPtr child);
|
|
|
|
|
|
|
|
public int PageNum (Widget child)
|
|
|
|
{
|
|
|
|
return gtk_notebook_page_num (Handle, child.Handle);
|
|
|
|
}
|