Author: jacobilsoe
Date: 2006-09-19 11:38:20 -0400 (Tue, 19 Sep 2006)
New Revision: 65665
Added:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/generated.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/
trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/SearchCommands.cs
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
Log:
2006-09-19 Jacob Ils?\195?\184 Christensen <[EMAIL PROTECTED]>
* .: Added svn:ignore for MonoDevelop.Ide.pidb
* gtk-gui/generated.cs:
* gtk-gui/gui.stetic:
GUI code for GotoClassDialog.
* MonoDevelop.Ide.mdp:
* Makefile.am:
Added GotoClassDialog.
* MonoDevelop.Ide.Commands/SearchCommands.cs:
Added GotoClassCommand.
* MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs:
The GotoClassDialog.
* MonoDevelop.Ide.addin.xml:
Added menu item for the GotoClassDialog.
Property changes on: trunk/monodevelop/Core/src/MonoDevelop.Ide
___________________________________________________________________
Name: svn:ignore
- Makefile
Makefile.in
AssemblyInfo.cs
+ Makefile
Makefile.in
AssemblyInfo.cs
MonoDevelop.Ide.pidb
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2006-09-19
15:23:43 UTC (rev 65664)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog 2006-09-19
15:38:20 UTC (rev 65665)
@@ -1,3 +1,24 @@
+2006-09-19 Jacob Ilsø Christensen <[EMAIL PROTECTED]>
+
+ * .: Added svn:ignore for MonoDevelop.Ide.pidb
+
+ * gtk-gui/generated.cs:
+ * gtk-gui/gui.stetic:
+ GUI code for GotoClassDialog.
+
+ * MonoDevelop.Ide.mdp:
+ * Makefile.am:
+ Added GotoClassDialog.
+
+ * MonoDevelop.Ide.Commands/SearchCommands.cs:
+ Added GotoClassCommand.
+
+ * MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs:
+ The GotoClassDialog.
+
+ * MonoDevelop.Ide.addin.xml:
+ Added menu item for the GotoClassDialog.
+
2006-09-12 Levi Bard <[EMAIL PROTECTED]>
* MonoDevelop.Ide.Gui/ProjectOperations.cs: Win32 URI workaround.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am 2006-09-19
15:23:43 UTC (rev 65664)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/Makefile.am 2006-09-19
15:38:20 UTC (rev 65665)
@@ -127,6 +127,7 @@
MonoDevelop.Ide.Gui.Dialogs/GacReferencePanel.cs \
MonoDevelop.Ide.Gui.Dialogs/ProjectReferencePanel.cs \
MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs \
+MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs \
MonoDevelop.Ide.Gui.Pads/DefaultMonitorPad.cs \
MonoDevelop.Ide.Gui.Pads/OpenTaskView.cs \
MonoDevelop.Ide.Gui.Pads.ClassPad/ClassData.cs \
@@ -237,7 +238,8 @@
MonoDevelop.Ide/Services.cs \
MonoDevelop.Ide.Gui.Search/ISearchProgressMonitor.cs \
MonoDevelop.Ide.Gui.Search/SearchProgressMonitor.cs \
-MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs
+MonoDevelop.Ide.Gui.Pads/SearchResultPad.cs \
+gtk-gui/generated.cs
RES= \
templates/AppConfigFile.xft.xml \
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/SearchCommands.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/SearchCommands.cs
2006-09-19 15:23:43 UTC (rev 65664)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Commands/SearchCommands.cs
2006-09-19 15:38:20 UTC (rev 65665)
@@ -27,7 +27,8 @@
FindNextSelection,
FindPreviousSelection,
FindBox,
- ReplaceInFiles
+ ReplaceInFiles,
+ GotoClass
}
internal class FindInFilesHandler : CommandHandler
@@ -46,4 +47,22 @@
}
}
+ internal class GotoClassHandler : CommandHandler
+ {
+ protected override void Run()
+ {
+ if (IdeApp.ProjectOperations.CurrentOpenCombine == null)
+ {
+ return;
+ }
+
+ GotoClassDialog dialog = new GotoClassDialog();
+ dialog.Show();
+ }
+
+ protected override void Update(CommandInfo info)
+ {
+ info.Enabled = (IdeApp.ProjectOperations.CurrentOpenCombine !=
null);
+ }
+ }
}
Added:
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs
2006-09-19 15:23:43 UTC (rev 65664)
+++
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs
2006-09-19 15:38:20 UTC (rev 65665)
@@ -0,0 +1,132 @@
+/*
+Copyright (C) 2006 Jacob Ilsø Christensen
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+*/
+
+using System;
+using System.Collections;
+
+using MonoDevelop.Ide.Gui;
+using MonoDevelop.Projects;
+using MonoDevelop.Projects.Parser;
+
+using Gtk;
+
+namespace MonoDevelop.Ide.Gui.Dialogs
+{
+ public class GotoClassDialog : Gtk.Dialog
+ {
+ protected Gtk.TreeView treeview1;
+
+ public GotoClassDialog()
+ {
+ Stetic.Gui.Build(this, typeof(GotoClassDialog));
+ SetupTreeView();
+ }
+
+ private void SetupTreeView()
+ {
+ ListStore listStore = new ListStore(new Type[] {
typeof(string), typeof(string), typeof(IRegion) });
+ TreeModelSort treeModelSort = new
TreeModelSort(listStore);
+ treeview1.Model = treeModelSort;
+
+ TreeViewColumn classNameColumn = new TreeViewColumn();
+ classNameColumn.Title = "Class";
+ CellRendererText cellRenderer = new CellRendererText();
+ classNameColumn.PackStart(cellRenderer, true);
+ classNameColumn.AddAttribute(cellRenderer, "text", 0);
+ treeview1.AppendColumn(classNameColumn);
+
+ TreeViewColumn nameSpaceColumn = new TreeViewColumn();
+ nameSpaceColumn.Title = "Namespace";
+ cellRenderer = new CellRendererText();
+ nameSpaceColumn.PackStart(cellRenderer, true);
+ nameSpaceColumn.AddAttribute(cellRenderer, "text", 1);
+ treeview1.AppendColumn(nameSpaceColumn);
+
+ Combine entry =
IdeApp.ProjectOperations.CurrentOpenCombine;
+
+ if (entry.Entries.Count > 0)
+ {
+ AddClassesToTreeView(entry.Entries[0],
listStore);
+ }
+
+ treeModelSort.SetSortColumnId(0, SortType.Ascending);
+ treeModelSort.ChangeSortColumn();
+ }
+
+ private void AddClassesToTreeView(CombineEntry entry, ListStore
listStore)
+ {
+ if (entry is Combine)
+ {
+ foreach (CombineEntry ce in
((Combine)entry).Entries)
+ {
+ AddClassesToTreeView(ce, listStore);
+ }
+ }
+ else if (entry is Project)
+ {
+ Project project = entry as Project;
+ IParserContext ctx =
IdeApp.ProjectOperations.ParserDatabase.GetProjectParserContext(project);
+
+ foreach (IClass c in ctx.GetProjectContents())
+ {
+ listStore.AppendValues(c.Name,
c.Namespace, c.Region);
+ }
+ }
+ }
+
+ private void GotoClass()
+ {
+ IRegion region;
+ TreeIter iter;
+ TreeModel model;
+
+ if (treeview1.Selection.GetSelected(out model, out
iter))
+ {
+ region = (IRegion)model.GetValue(iter, 2);
+ }
+ else
+ {
+ return;
+ }
+
+ if (region.FileName == null)
+ {
+ return;
+ }
+
+ IdeApp.Workbench.OpenDocument(region.FileName,
Math.Max(1, region.BeginLine), 1, true);
+
+ Hide();
+ }
+
+ protected virtual void RowActivated(object o,
Gtk.RowActivatedArgs args)
+ {
+ GotoClass();
+ }
+
+ protected virtual void OkClicked(object sender,
System.EventArgs e)
+ {
+ GotoClass();
+ }
+
+ protected virtual void CancelClicked(object sender,
System.EventArgs e)
+ {
+ Hide();
+ }
+ }
+}
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
2006-09-19 15:23:43 UTC (rev 65664)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.addin.xml
2006-09-19 15:38:20 UTC (rev 65665)
@@ -471,7 +471,11 @@
_label = "R_eplace In Files..."
icon = "md-replace-in-files"
description = "Replace in files" />
-
+ <Command id =
"MonoDevelop.Ide.Commands.SearchCommands.GotoClass"
+ defaultHandler =
"MonoDevelop.Ide.Commands.GotoClassHandler"
+ _label = "Goto Class..."
+ shortcut = "Control|Shift|C" />
+
<!-- RefactoryCommands -->
<Command id =
"MonoDevelop.Ide.Commands.RefactoryCommands.CurrentRefactoryOperations"
@@ -902,6 +906,11 @@
</ItemSet>
</Extension>
+ <Extension path = "/SharpDevelop/Workbench/MainMenu/Search">
+ <CommandItem id =
"MonoDevelop.Ide.Commands.SearchCommands.GotoClass"
+ insertafter =
"MonoDevelop.SourceEditor.EditorCommands.GotoLineNumber" />
+ </Extension>
+
<Extension path =
"/SharpDevelop/DefaultEditor/SearchAndReplace/WildcardHelpPath">
<LocalCommandItem id = "@*Char" _label = "* Zero or more of any
character" />
<LocalCommandItem id = "@?Char" _label = "? Any single
character" />
Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
2006-09-19 15:23:43 UTC (rev 65664)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.mdp
2006-09-19 15:38:20 UTC (rev 65665)
@@ -246,6 +246,9 @@
<File name="./MonoDevelop.Ide.Gui.Dialogs/FileSelectorDialog.cs"
subtype="Code" buildaction="Compile" />
<File name="./MonoDevelop.Ide.Gui.Content/IEncodedTextContent.cs"
subtype="Code" buildaction="Compile" />
<File name="./MonoDevelop.Ide.addin.xml" subtype="Code"
buildaction="Nothing" />
+ <File name="./gtk-gui/gui.stetic" subtype="Code" buildaction="Exclude" />
+ <File name="./gtk-gui/generated.cs" subtype="Code" buildaction="Compile" />
+ <File name="./MonoDevelop.Ide.Gui.Dialogs/GotoClassDialog.cs"
subtype="Code" buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Project" localcopy="True" refto="MonoDevelop.Core"
/>
@@ -277,6 +280,9 @@
<ProjectReference type="Gac" localcopy="True" refto="Mono.GetOptions,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<ProjectReference type="Gac" localcopy="True"
refto="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />
</References>
+ <GtkDesignInfo>
+ <ExportedWidgets />
+ </GtkDesignInfo>
<DeploymentInformation strategy="File">
<excludeFiles />
</DeploymentInformation>
Added: trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/generated.cs
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/generated.cs
2006-09-19 15:23:43 UTC (rev 65664)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/generated.cs
2006-09-19 15:38:20 UTC (rev 65665)
@@ -0,0 +1,128 @@
+//
------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+// Mono Runtime Version: 2.0.50727.42
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+//
------------------------------------------------------------------------------
+
+namespace Stetic {
+
+
+ internal class Gui {
+
+ public static void Build(object obj, System.Type type) {
+ Stetic.Gui.Build(obj, type.FullName);
+ }
+
+ public static void Build(object obj, string id) {
+ System.Collections.Hashtable bindings = new
System.Collections.Hashtable();
+ if ((id == "MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog")) {
+ Gtk.Dialog cobj = ((Gtk.Dialog)(obj));
+ // Widget MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog
+ cobj.Title = "Goto Class";
+ cobj.WindowPosition = ((Gtk.WindowPosition)(4));
+ cobj.HasSeparator = false;
+ cobj.Events = ((Gdk.EventMask)(256));
+ cobj.Name = "MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog";
+ // Internal child
MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog.VBox
+ Gtk.VBox w1 = cobj.VBox;
+ w1.BorderWidth = ((uint)(2));
+ w1.Events = ((Gdk.EventMask)(256));
+ w1.Name = "dialog_VBox";
+ // Container child dialog_VBox.Gtk.Box+BoxChild
+ Gtk.ScrolledWindow w2 = new Gtk.ScrolledWindow();
+ w2.VscrollbarPolicy = ((Gtk.PolicyType)(1));
+ w2.HscrollbarPolicy = ((Gtk.PolicyType)(1));
+ w2.ShadowType = ((Gtk.ShadowType)(1));
+ w2.BorderWidth = ((uint)(12));
+ w2.CanFocus = true;
+ w2.Events = ((Gdk.EventMask)(0));
+ w2.Name = "scrolledwindow1";
+ // Container child scrolledwindow1.Gtk.Container+ContainerChild
+ Gtk.TreeView w3 = new Gtk.TreeView();
+ w3.CanFocus = true;
+ w3.Events = ((Gdk.EventMask)(0));
+ w3.Name = "treeview1";
+ bindings["treeview1"] = w3;
+ w2.Add(w3);
+ bindings["scrolledwindow1"] = w2;
+ w1.Add(w2);
+ Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w2]));
+ w5.Position = 0;
+ bindings["dialog_VBox"] = w1;
+ // Internal child
MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog.ActionArea
+ Gtk.HButtonBox w6 = cobj.ActionArea;
+ w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(4));
+ w6.Spacing = 10;
+ w6.BorderWidth = ((uint)(5));
+ w6.Events = ((Gdk.EventMask)(256));
+ w6.Name = "MonoDevelop.Ide.GotoClassDialog_ActionArea";
+ // Container child
MonoDevelop.Ide.GotoClassDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+ Gtk.Button w7 = new Gtk.Button();
+ w7.UseStock = true;
+ w7.UseUnderline = true;
+ w7.CanFocus = true;
+ w7.Events = ((Gdk.EventMask)(0));
+ w7.Name = "button1";
+ w7.CanDefault = true;
+ w7.Label = "gtk-cancel";
+ bindings["button1"] = w7;
+ cobj.AddActionWidget(w7, -6);
+ Gtk.ButtonBox.ButtonBoxChild w8 =
((Gtk.ButtonBox.ButtonBoxChild)(w6[w7]));
+ w8.Expand = false;
+ w8.Fill = false;
+ // Container child
MonoDevelop.Ide.GotoClassDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild
+ Gtk.Button w9 = new Gtk.Button();
+ w9.UseStock = true;
+ w9.UseUnderline = true;
+ w9.CanFocus = true;
+ w9.Events = ((Gdk.EventMask)(0));
+ w9.Name = "button4";
+ w9.CanDefault = true;
+ w9.Label = "gtk-ok";
+ bindings["button4"] = w9;
+ cobj.AddActionWidget(w9, -5);
+ Gtk.ButtonBox.ButtonBoxChild w10 =
((Gtk.ButtonBox.ButtonBoxChild)(w6[w9]));
+ w10.Position = 1;
+ w10.Expand = false;
+ w10.Fill = false;
+ bindings["MonoDevelop.Ide.GotoClassDialog_ActionArea"] = w6;
+ cobj.DefaultWidth = 400;
+ cobj.DefaultHeight = 300;
+ bindings["MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog"] = cobj;
+ w3.Show();
+ w2.Show();
+ w1.Show();
+ w7.Show();
+ w9.Show();
+ w6.Show();
+ cobj.Show();
+ w3.RowActivated +=
((Gtk.RowActivatedHandler)(System.Delegate.CreateDelegate(typeof(Gtk.RowActivatedHandler),
cobj, "RowActivated")));
+ w7.Clicked +=
((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler),
cobj, "CancelClicked")));
+ w9.Clicked +=
((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler),
cobj, "OkClicked")));
+ }
+ System.Reflection.FieldInfo[] fields =
obj.GetType().GetFields(((System.Reflection.BindingFlags.Public |
System.Reflection.BindingFlags.NonPublic) |
System.Reflection.BindingFlags.Instance));
+ for (int n = 0; (n < fields.Length); n = (n + 1)) {
+ System.Reflection.FieldInfo field = fields[n];
+ object widget = bindings[field.Name];
+ if (((widget != null) &&
field.FieldType.IsInstanceOfType(widget))) {
+ field.SetValue(obj, widget);
+ }
+ }
+ }
+ }
+
+ internal class ActionGroups {
+
+ public static Gtk.ActionGroup GetActionGroup(System.Type type) {
+ return Stetic.ActionGroups.GetActionGroup(type.FullName);
+ }
+
+ public static Gtk.ActionGroup GetActionGroup(string name) {
+ return null;
+ }
+ }
+}
Added: trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
2006-09-19 15:23:43 UTC (rev 65664)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/gtk-gui/gui.stetic
2006-09-19 15:38:20 UTC (rev 65665)
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<stetic-interface>
+ <widget class="Gtk.Dialog" id="MonoDevelop.Ide.Gui.Dialogs.GotoClassDialog"
design-size="400 300">
+ <property name="Title" translatable="yes">Goto Class</property>
+ <property name="Buttons">2</property>
+ <property name="HelpButton">False</property>
+ <property name="WindowPosition">CenterOnParent</property>
+ <property name="HasSeparator">False</property>
+ <property name="Events">ButtonPressMask</property>
+ <property name="MemberName" />
+ <child internal-child="VBox">
+ <widget class="Gtk.VBox" id="dialog_VBox">
+ <property name="BorderWidth">2</property>
+ <property name="Events">ButtonPressMask</property>
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.ScrolledWindow" id="scrolledwindow1">
+ <property name="VscrollbarPolicy">Automatic</property>
+ <property name="HscrollbarPolicy">Automatic</property>
+ <property name="ShadowType">In</property>
+ <property name="BorderWidth">12</property>
+ <property name="CanFocus">True</property>
+ <property name="Events">0</property>
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.TreeView" id="treeview1">
+ <property name="CanFocus">True</property>
+ <property name="Events">0</property>
+ <property name="MemberName">treeview1</property>
+ <signal name="RowActivated" handler="RowActivated" />
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ <child internal-child="ActionArea">
+ <widget class="Gtk.HButtonBox"
id="MonoDevelop.Ide.GotoClassDialog_ActionArea">
+ <property name="Size">2</property>
+ <property name="LayoutStyle">End</property>
+ <property name="Spacing">10</property>
+ <property name="BorderWidth">5</property>
+ <property name="Events">ButtonPressMask</property>
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Button" id="button1">
+ <property name="UseStock">True</property>
+ <property name="Type">StockItem</property>
+ <property name="StockId">gtk-cancel</property>
+ <property name="IsDialogButton">True</property>
+ <property name="ResponseId">-6</property>
+ <property name="CanFocus">True</property>
+ <property name="Events">0</property>
+ <property name="MemberName" />
+ <property name="CanDefault">True</property>
+ <signal name="Clicked" handler="CancelClicked" />
+ <property name="label">gtk-cancel</property>
+ </widget>
+ <packing>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Button" id="button4">
+ <property name="UseStock">True</property>
+ <property name="Type">StockItem</property>
+ <property name="StockId">gtk-ok</property>
+ <property name="IsDialogButton">True</property>
+ <property name="ResponseId">-5</property>
+ <property name="CanFocus">True</property>
+ <property name="Events">0</property>
+ <property name="MemberName" />
+ <property name="CanDefault">True</property>
+ <signal name="Clicked" handler="OkClicked" />
+ <property name="label">gtk-ok</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</stetic-interface>
\ No newline at end of file
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches