<widget class="GnomeApp" id="main-window">
<property name="visible">True</property>
+ <property name="title" translatable="yes">Gtk-monodoc</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<widget class="GtkImageMenuItem" id="quit1">
<property name="visible">True</property>
<property name="stock_item">GNOMEUIINFO_MENU_EXIT_ITEM</property>
+ <signal name="activate" handler="OnQuitActivate" last_modification_time="Fri, 04 Oct 2002 21:11:57 GMT"/>
</widget>
</child>
</widget>
//
// Authors:
// Miguel de Icaza (miguel@ximian.com)
+// Duncan Mak (duncan@ximian.com)
//
// (C) 2002 Ximian, Inc.
+//
+
using GLib;
using Gtk;
using Gdk;
using Mono.Document.Library;
class DocumentationEditor {
+
static void Main (string[] args)
{
DocumentationEditor de = new DocumentationEditor (args);
fsel_window.ShowAll ();
}
+ void OnQuitActivate (object sender, EventArgs a)
+ {
+ program.Quit ();
+ }
+
void OnAboutActivate (object sender, EventArgs a)
{
Pixbuf pixbuf = new Pixbuf (null, "mono.png");
About about = new About ("Mono Documentation Editor", "0.1",
"Copyright (C) 2002 Ximian, Inc.",
"",
- new string [] { "Miguel de Icaza (miguel@ximian.com)" },
+ new string [] { "Miguel de Icaza (miguel@ximian.com)", "Duncan Mak (duncan@ximian.com" },
new string [] { },
"", pixbuf);
about.Run ();
// Pull out all the namespaces first
//
namespaces = new Hashtable ();
-
+
foreach (DocType type in parser.DocTypes){
string ns = type.Namespace;
Hashtable h;
+
if (!namespaces.Contains (ns)){
h = new Hashtable ();
namespaces [ns] = h;
void FileSelectionOk (object o, EventArgs args)
{
- string filename = fsel_window.SelectionEntry.Text;
+ string filename = fsel_window.Filename;
if (File.Exists (filename)){
DocParser parser = new DocParser (filename);