[Monodevelop-patches-list] r1260 - in trunk/MonoDevelop/src/Main/Base: . Gui/Dialogs
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Mar 26 17:19:47 EST 2004
Author: jluke
Date: 2004-03-26 17:19:47 -0500 (Fri, 26 Mar 2004)
New Revision: 1260
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs
Log:
* Gui/Dialogs/SharpDevelopAboutPanels.cs:
enable copy button for assembly version info
fixes bug #55955
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-03-26 21:06:58 UTC (rev 1259)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-03-26 22:19:47 UTC (rev 1260)
@@ -1,3 +1,9 @@
+2004-03-26 John Luke <jluke at cfl.rr.com>
+
+ * Gui/Dialogs/SharpDevelopAboutPanels.cs:
+ enable copy button for assembly version info
+ fixes bug #55955
+
2004-03-25 Todd Berman <tberman at sevenl.net>
* Makefile.am:
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs 2004-03-26 21:06:58 UTC (rev 1259)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/SharpDevelopAboutPanels.cs 2004-03-26 22:19:47 UTC (rev 1260)
@@ -154,6 +154,7 @@
private TreeView listView;
private Button button;
private TreeStore store;
+ private Clipboard clipboard;
public static new GLib.GType GType
{
@@ -168,7 +169,7 @@
public VersionInformationTabPage() : base (GType)
{
ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
-
+
TreeView listView = new TreeView ();
listView.RulesHint = true;
listView.AppendColumn (resourceService.GetString("Dialog.About.VersionInfoTabName.NameColumn"), new CellRendererText (), "text", 0);
@@ -214,6 +215,8 @@
void CopyButtonClick(object o, EventArgs args)
{
+ clipboard = Clipboard.Get (Gdk.Atom.Intern ("CLIPBOARD", false));
+
StringBuilder versionInfo = new StringBuilder();
foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies()) {
AssemblyName name = asm.GetName();
@@ -230,7 +233,7 @@
versionInfo.Append(Environment.NewLine);
}
- //Clipboard.SetDataObject(new DataObject(System.Windows.Forms.DataFormats.Text, versionInfo.ToString()), true);
+ clipboard.SetText (versionInfo.ToString ());
}
}
}
More information about the Monodevelop-patches-list
mailing list