[Monodevelop-patches-list] r2206 - in trunk/MonoDevelop/Extras/MonoQuery: . Gui/SqlQueryView
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jan 31 15:05:02 EST 2005
Author: chergert
Date: 2005-01-31 15:05:02 -0500 (Mon, 31 Jan 2005)
New Revision: 2206
Modified:
trunk/MonoDevelop/Extras/MonoQuery/ChangeLog
trunk/MonoDevelop/Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs
Log:
* Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs: Updated to new
ToolItem system to remove compiler warning.
Modified: trunk/MonoDevelop/Extras/MonoQuery/ChangeLog
===================================================================
--- trunk/MonoDevelop/Extras/MonoQuery/ChangeLog 2005-01-31 19:36:21 UTC (rev 2205)
+++ trunk/MonoDevelop/Extras/MonoQuery/ChangeLog 2005-01-31 20:05:02 UTC (rev 2206)
@@ -1,3 +1,8 @@
+2005-01-31 Christian Hergert <chris at mosaix.net>
+
+ * Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs: Updated to new
+ ToolItem to fix compiler warning.
+
2005-01-26 Christian Hergert <chris at mosaix.net>
* Extras/MonoQuery/Gui/Abstract/AbstractMonoQueryNode.cs:
Modified: trunk/MonoDevelop/Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs
===================================================================
--- trunk/MonoDevelop/Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs 2005-01-31 19:36:21 UTC (rev 2205)
+++ trunk/MonoDevelop/Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs 2005-01-31 20:05:02 UTC (rev 2206)
@@ -8,6 +8,7 @@
using MonoQuery.Connection;
using MonoDevelop;
using MonoDevelop.Gui;
+using MonoDevelop.Services;
namespace MonoQuery.Gui.SqlQueryView
{
@@ -105,7 +106,7 @@
catch ( Exception err )
{
this.logView.Buffer.Text +=
- "\n Exception caught during query. "
+ "\n Exception caught during query."
+ "\n " + err.StackTrace;
this.notebook.Page = 0;
}
@@ -126,14 +127,15 @@
public SqlQueryViewToolbar() : base()
{
- this.ToolbarStyle = ToolbarStyle.Icons;
- this.AppendItem (String.Empty, "Execute SQL Commands.",
- String.Empty,
- new Gtk.Image (Gtk.Stock.Execute, IconSize.SmallToolbar),
- new Gtk.SignalFunc ( OnRun ));
+ this.ToolbarStyle = ToolbarStyle.BothHoriz;
+ Tooltips tips = new Tooltips();
+ Gtk.ToolButton execute = new Gtk.ToolButton( Gtk.Stock.Execute );
+
+ execute.Clicked += new EventHandler( OnExecuteClicked );
+ Insert( execute, 0 );
}
- private void OnRun()
+ private void OnExecuteClicked( object sender, EventArgs args )
{
this.Run( this, new EventArgs() );
}
More information about the Monodevelop-patches-list
mailing list