Make samples able to compile

This commit is contained in:
Mikkel Kruse Johnsen 2014-11-03 15:53:22 +01:00
parent d33628d632
commit 33722f0f15
4 changed files with 6 additions and 7 deletions

View file

@ -203,13 +203,13 @@ class CustomScrollableWidget<T> : CustomBase, IScrollableImplementor {
} }
} }
private void OnHadjustmentChanged (object o, EventArgs args) private void OnHadjustmentChanged (object o, System.EventArgs args)
{ {
UpdateAdjustments (); UpdateAdjustments ();
QueueDraw (); QueueDraw ();
} }
private void OnVadjustmentChanged (object o, EventArgs args) private void OnVadjustmentChanged (object o, System.EventArgs args)
{ {
UpdateAdjustments (); UpdateAdjustments ();
QueueDraw (); QueueDraw ();

View file

@ -46,13 +46,13 @@ namespace GtkDemo
sw.Add (treeView); sw.Add (treeView);
// expand all rows after the treeview widget has been realized // expand all rows after the treeview widget has been realized
treeView.Realized += new EventHandler (ExpandRows); treeView.Realized += new System.EventHandler (ExpandRows);
SetDefaultSize (650, 400); SetDefaultSize (650, 400);
ShowAll (); ShowAll ();
} }
private void ExpandRows (object obj, EventArgs args) private void ExpandRows (object obj, System.EventArgs args)
{ {
TreeView treeView = obj as TreeView; TreeView treeView = obj as TreeView;

View file

@ -21,7 +21,6 @@ sources = \
DemoButtonBox.cs \ DemoButtonBox.cs \
DemoClipboard.cs \ DemoClipboard.cs \
DemoColorSelection.cs \ DemoColorSelection.cs \
DemoCssBasics.cs \
DemoDialog.cs \ DemoDialog.cs \
DemoDrawingArea.cs \ DemoDrawingArea.cs \
DemoEditableCells.cs \ DemoEditableCells.cs \

View file

@ -46,14 +46,14 @@ public class TestMount
Window w = new Window ("test"); Window w = new Window ("test");
operation = new Gtk.MountOperation (w); operation = new Gtk.MountOperation (w);
Button b = new Button ("Mount"); Button b = new Button ("Mount");
b.Clicked += new EventHandler (HandleButtonClicked); b.Clicked += new System.EventHandler (HandleButtonClicked);
b.Show (); b.Show ();
w.Add (b); w.Add (b);
w.Show (); w.Show ();
Gtk.Application.Run (); Gtk.Application.Run ();
} }
static void HandleButtonClicked (object sender, EventArgs args) static void HandleButtonClicked (object sender, System.EventArgs args)
{ {
System.Console.WriteLine ("clicked"); System.Console.WriteLine ("clicked");
file.MountEnclosingVolume (0, operation, null, new GLib.AsyncReadyCallback (HandleMountFinished)); file.MountEnclosingVolume (0, operation, null, new GLib.AsyncReadyCallback (HandleMountFinished));