2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* sample/Fifteen.cs: work-around for bug 106145 in gnome bugzilla.
	* sample/DbClient/client.cs: updated to make it compile again.

svn path=/trunk/gtk-sharp/; revision=12752
This commit is contained in:
Gonzalo Paniagua Javier 2003-03-22 17:48:43 +00:00
parent d7a08db9f6
commit a02e962425
3 changed files with 19 additions and 12 deletions

View file

@ -1,3 +1,8 @@
2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/Fifteen.cs: work-around for bug 106145 in gnome bugzilla.
* sample/DbClient/client.cs: updated to make it compile again.
2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* glue/adjustment.c:

View file

@ -44,7 +44,7 @@ class Client {
PackToolbar ();
box.PackStart (toolbar, false, false, 0);
UpdateView (null);
UpdateView ();
status = new Statusbar ();
box.PackEnd (status, false, false, 0);
@ -100,7 +100,7 @@ class Client {
args.RetVal = true;
}
static void UpdateView (Gtk.Object o)
static void UpdateView ()
{
if (tableau != null)
tableau.Destroy ();
@ -195,7 +195,7 @@ class Client {
dialog.ShowAll ();
}
static void Db_Remove (Gtk.Object o)
static void Db_Remove ()
{
if (dialog != null) {
return;
@ -259,7 +259,7 @@ class Client {
return hbox ;
}
static void Db_Update (Gtk.Object o)
static void Db_Update ()
{
if (dialog != null) {
return;
@ -288,7 +288,7 @@ class Client {
dialog.ShowAll ();
}
static void Quit (Gtk.Object o)
static void Quit ()
{
Application.Quit ();
}
@ -297,7 +297,7 @@ class Client {
{
try {
Conn.Insert (UInt32.Parse (id_entry.Text), name_entry.Text, address_entry.Text);
UpdateView (o as Gtk.Object);
UpdateView ();
} catch (Exception e) {
PushMessage (e.Message);
}
@ -309,7 +309,7 @@ class Client {
{
try {
Conn.Delete (UInt32.Parse (id_entry.Text));
UpdateView (o as Gtk.Object);
UpdateView ();
} catch (Exception e) {
PushMessage (e.Message);
}
@ -321,7 +321,7 @@ class Client {
{
try {
Conn.Update (UInt32.Parse (id_entry.Text), name_entry.Text, address_entry.Text);
UpdateView (o as Gtk.Object);
UpdateView ();
} catch (Exception e) {
PushMessage (e.Message);
}
@ -452,8 +452,7 @@ class IdConnection : IDisposable
public IdConnection ()
{
cnc = new SqlConnection ();
string connectionString = "" +
"" +
string connectionString = "hostaddr=127.0.0.1;" +
"user=monotest;" +
"dbname=monotest";

View file

@ -248,10 +248,12 @@ public class BoardPiece : Gnome.CanvasGroup
switch (args.Event.Type) {
case EventType.EnterNotify:
piece.Text.FillColor = "white";
args.RetVal = true;
break;
case EventType.LeaveNotify:
piece.Text.FillColor = "black";
args.RetVal = true;
break;
case EventType.ButtonPress:
@ -286,16 +288,17 @@ public class BoardPiece : Gnome.CanvasGroup
piece.Board [piece.Position] = null;
piece.Position = new_position;
piece.Move (dx * PIECE_SIZE, dy * PIECE_SIZE);
canvas.UpdateNow ();
} else
Print_Position ("to", piece.Position, false);
args.RetVal = true;
break;
default:
args.RetVal = false;
break;
}
args.RetVal = false;
}
static void Print_Position (string text, int position, bool newLine)